summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/DataLoader.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-10 22:27:26 +0200
committerAki <please@ignore.pl>2022-04-10 22:53:38 +0200
commit94ca59386cb94877ea15856a3c17c116c756a16d (patch)
tree30ece23c33d93624287a4c43fbc433942e245080 /StarsEx/DataLoader.h
parenta9401f2b085bbb576021ed844e941beb9bf14c0f (diff)
downloadstarshatter-94ca59386cb94877ea15856a3c17c116c756a16d.zip
starshatter-94ca59386cb94877ea15856a3c17c116c756a16d.tar.gz
starshatter-94ca59386cb94877ea15856a3c17c116c756a16d.tar.bz2
Switched to use FileSystemDataSource in DataLoader
Diffstat (limited to 'StarsEx/DataLoader.h')
-rw-r--r--StarsEx/DataLoader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/StarsEx/DataLoader.h b/StarsEx/DataLoader.h
index 81098e8..af8b3d5 100644
--- a/StarsEx/DataLoader.h
+++ b/StarsEx/DataLoader.h
@@ -52,7 +52,7 @@ public:
void SetDataPath(const char* path);
const char* GetDataPath() const { return datapath; }
- bool IsFileSystemEnabled() const { return use_file_system; }
+ bool IsFileSystemEnabled() const { return work_directory_source != nullptr; }
bool IsMediaLoadEnabled() const { return enable_media; }
bool FindFile(const char* fname);
@@ -79,11 +79,11 @@ private:
Text datapath;
Video* video;
- bool use_file_system;
bool enable_media;
List<DataArchive> archives;
List<DataSource> sources;
+ DataSource* work_directory_source;
static DataLoader* loader;
};