Skip to content

Commit

Permalink
Move UI_PATH back to XMLDocument.hpp
Browse files Browse the repository at this point in the history
Sorry....
  • Loading branch information
Xottab-DUTY committed Oct 17, 2018
1 parent e8200c8 commit 690ffbf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/xrCore/XML/XMLDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include "XMLDocument.hpp"

pcstr UI_PATH = "ui";

XMLDocument::XMLDocument() : m_root(), m_pLocalRoot() {}

XMLDocument::~XMLDocument() { ClearInternal(); }
Expand Down
2 changes: 2 additions & 0 deletions src/xrCore/XML/XMLDocument.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

// XXX: interesting idea is to have variable configs folder. Need we?
static constexpr pcstr CONFIG_PATH = _game_config_;
static constexpr pcstr UI_PATH_DEFAULT = "ui";
XRCORE_API extern pcstr UI_PATH;

class XML_NODE
{
Expand Down
2 changes: 0 additions & 2 deletions src/xrUICore/ui_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#include "ui_base.h"
#include "Cursor/UICursor.h"

pcstr UI_PATH = "ui";

CUICursor& GetUICursor() { return GEnv.UI->GetUICursor(); }
UICore& UI() { return *GEnv.UI; }
extern ENGINE_API Fvector2 g_current_font_scale;
Expand Down
3 changes: 0 additions & 3 deletions src/xrUICore/ui_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#include "xrCommon/xr_stack.h"
#include "xrUICore/FontManager/FontManager.h"

static constexpr pcstr UI_PATH_DEFAULT = "ui";
XRUICORE_API extern pcstr UI_PATH;

class CUICursor;
class CUIGameCustom;

Expand Down

0 comments on commit 690ffbf

Please sign in to comment.