summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/ModInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'StarsEx/ModInfo.cpp')
-rw-r--r--StarsEx/ModInfo.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/StarsEx/ModInfo.cpp b/StarsEx/ModInfo.cpp
index 271517c..d884dec 100644
--- a/StarsEx/ModInfo.cpp
+++ b/StarsEx/ModInfo.cpp
@@ -11,13 +11,13 @@
Information block for describing and deploying third party mods
*/
+#include <Archive.h>
#include "ModInfo.h"
#include "Campaign.h"
#include "ShipDesign.h"
#include "ParseUtil.h"
-#include "Archive.h"
#include "DataLoader.h"
#include "Pcx.h"
#include "Bitmap.h"
@@ -58,12 +58,12 @@ ModInfo::Load(const char* fname)
bool ok = false;
filename = fname;
- DataArchive a(filename);
+ ArchiveEx::Archive a(filename);
- int n = a.FindEntry("mod_info.def");
+ int n = a.Find("mod_info.def");
if (n > -1) {
BYTE* buf = 0;
- int len = a.ExpandEntry(n, buf, true);
+ int len = a.Extract(n, buf, true);
if (len > 0 && buf != 0) {
ok = ParseModInfo((const char*) buf);
@@ -76,10 +76,10 @@ ModInfo::Load(const char* fname)
logo = new Bitmap;
- n = a.FindEntry(logoname);
+ n = a.Find(logoname);
if (n > -1) {
BYTE* buf = 0;
- int len = a.ExpandEntry(n, buf, true);
+ int len = a.Extract(n, buf, true);
pcx.LoadBuffer(buf, len);
delete [] buf;