diff options
author | Aki <please@ignore.pl> | 2022-09-11 19:19:32 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-09-11 19:19:32 +0200 |
commit | 5310ea3564fe98b2940a63b72621b79de9290f77 (patch) | |
tree | 0d5b7a09d9cbef287d3af71f48f31f1935d0a075 /StarsEx/DataLoader.cpp | |
parent | eb1433d1c9d87470952a8ef626c790a8a60b8d76 (diff) | |
download | starshatter-5310ea3564fe98b2940a63b72621b79de9290f77.zip starshatter-5310ea3564fe98b2940a63b72621b79de9290f77.tar.gz starshatter-5310ea3564fe98b2940a63b72621b79de9290f77.tar.bz2 |
Replaced Datafile and StarsEx/Archive with dat and ArchiveEx
Diffstat (limited to 'StarsEx/DataLoader.cpp')
-rw-r--r-- | StarsEx/DataLoader.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/StarsEx/DataLoader.cpp b/StarsEx/DataLoader.cpp index b4ee74b..69bdb14 100644 --- a/StarsEx/DataLoader.cpp +++ b/StarsEx/DataLoader.cpp @@ -9,7 +9,6 @@ #include "DataLoader.h" #include "DataSource.h" -#include "Archive.h" #include "Color.h" #include "D3DXImage.h" #include "Bitmap.h" @@ -99,8 +98,8 @@ DataLoader::MountDatafile(const char* name, int pos) return FAILED; } fclose(f); - auto archive = new DataArchive(name); - if (!archive || archive->NumFiles() < 1) { + auto archive = new ArchiveEx::Archive(name); + if (!archive || archive->NumEntries() < 1) { last_error = Text::format("Invalid datafile '%s'", name); if (archive) delete archive; return FAILED; |