summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/DataLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'StarsEx/DataLoader.cpp')
-rw-r--r--StarsEx/DataLoader.cpp5
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;