Skip to content

Commit 690ffbf

Browse files
committed
Move UI_PATH back to XMLDocument.hpp
Sorry....
1 parent e8200c8 commit 690ffbf

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

src/xrCore/XML/XMLDocument.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
#include "XMLDocument.hpp"
55

6+
pcstr UI_PATH = "ui";
7+
68
XMLDocument::XMLDocument() : m_root(), m_pLocalRoot() {}
79

810
XMLDocument::~XMLDocument() { ClearInternal(); }

src/xrCore/XML/XMLDocument.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

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

1921
class XML_NODE
2022
{

src/xrUICore/ui_base.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#include "ui_base.h"
33
#include "Cursor/UICursor.h"
44

5-
pcstr UI_PATH = "ui";
6-
75
CUICursor& GetUICursor() { return GEnv.UI->GetUICursor(); }
86
UICore& UI() { return *GEnv.UI; }
97
extern ENGINE_API Fvector2 g_current_font_scale;

src/xrUICore/ui_base.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
#include "xrCommon/xr_stack.h"
77
#include "xrUICore/FontManager/FontManager.h"
88

9-
static constexpr pcstr UI_PATH_DEFAULT = "ui";
10-
XRUICORE_API extern pcstr UI_PATH;
11-
129
class CUICursor;
1310
class CUIGameCustom;
1411

0 commit comments

Comments
 (0)