diff options
author | Aki <please@ignore.pl> | 2022-04-14 00:28:37 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-14 00:28:37 +0200 |
commit | 341c93b0fb4aedd262581ce6e81b700a9bdc1423 (patch) | |
tree | fcade8d6163d000e534134e32b64db126d766c9b /StarsEx/DataLoader.h | |
parent | 92de53ac4747fe3caf2ee4c4fa3dcb2ec86a5ef2 (diff) | |
download | starshatter-341c93b0fb4aedd262581ce6e81b700a9bdc1423.zip starshatter-341c93b0fb4aedd262581ce6e81b700a9bdc1423.tar.gz starshatter-341c93b0fb4aedd262581ce6e81b700a9bdc1423.tar.bz2 |
Switched to use new Sources everywhere applicable in the Loader
Diffstat (limited to 'StarsEx/DataLoader.h')
-rw-r--r-- | StarsEx/DataLoader.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/StarsEx/DataLoader.h b/StarsEx/DataLoader.h index 820224a..a518a67 100644 --- a/StarsEx/DataLoader.h +++ b/StarsEx/DataLoader.h @@ -47,9 +47,6 @@ public: int MountDatafile(const char* name, Group group=Group::DEFAULT, int pos=-1); int UnmountSource(int src); - int EnableDatafile(const char* name); - int DisableDatafile(const char* name); - void SetDataPath(const char* path); const char* GetDataPath() const { return datapath; } @@ -58,7 +55,7 @@ public: bool FindFile(const char* fname); int ListFiles(const char* filter, List<Text>& list, bool recurse=false); - int ListArchiveFiles(const char* archive, const char* filter, List<Text>& list); + int ListArchiveFiles(int src, const char* filter, List<Text>& list); int LoadBuffer(const char* name, BYTE*& buf, bool null_terminate=false, bool optional=false); int LoadBitmap(const char* name, Bitmap& bmp, int type=0, bool optional=false); int CacheBitmap(const char* name, Bitmap*& bmp, int type=0, bool optional=false); @@ -74,7 +71,6 @@ private: int LoadHiColor(const char* name, Bitmap& bmp, int type); int LoadAlpha( const char* name, Bitmap& bmp, int type); - void ListFileSystem(const char* filter, List<Text>& list, Text base_path, bool recurse); int LoadPartialFile(const char* fname, BYTE*& buf, int max_load, bool optional=false); int LoadOggStream(const char* fname, Sound*& snd); @@ -83,7 +79,6 @@ private: Text last_error; - List<DataArchive> archives; List<DataSource> sources; DataSource* work_directory_source; static DataLoader* loader; |