Disable user template editing if directory not writable

This commit is contained in:
Jack Andersen
2019-05-26 20:38:29 -10:00
parent 28f96e91c2
commit 374d836154
7 changed files with 24 additions and 6 deletions

View File

@@ -13,6 +13,8 @@
using namespace tinyxml2;
TString gDataDir;
bool gResourcesWritable = false;
bool gTemplatesWritable = false;
CResourceStore *gpResourceStore = nullptr;
CResourceStore *gpEditorStore = nullptr;

View File

@@ -94,6 +94,8 @@ public:
};
extern TString gDataDir;
extern bool gResourcesWritable;
extern bool gTemplatesWritable;
extern CResourceStore *gpResourceStore;
extern CResourceStore *gpEditorStore;