From 5310ea3564fe98b2940a63b72621b79de9290f77 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 11 Sep 2022 19:19:32 +0200 Subject: Replaced Datafile and StarsEx/Archive with dat and ArchiveEx --- StarsEx/DataLoader.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'StarsEx/DataLoader.cpp') 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; -- cgit v1.1