summaryrefslogtreecommitdiffhomepage
path: root/Starserver
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-14 00:28:37 +0200
committerAki <please@ignore.pl>2022-04-14 00:28:37 +0200
commit341c93b0fb4aedd262581ce6e81b700a9bdc1423 (patch)
treefcade8d6163d000e534134e32b64db126d766c9b /Starserver
parent92de53ac4747fe3caf2ee4c4fa3dcb2ec86a5ef2 (diff)
downloadstarshatter-341c93b0fb4aedd262581ce6e81b700a9bdc1423.zip
starshatter-341c93b0fb4aedd262581ce6e81b700a9bdc1423.tar.gz
starshatter-341c93b0fb4aedd262581ce6e81b700a9bdc1423.tar.bz2
Switched to use new Sources everywhere applicable in the Loader
Diffstat (limited to 'Starserver')
-rw-r--r--Starserver/StarServer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Starserver/StarServer.cpp b/Starserver/StarServer.cpp
index ce83f81..0ed872f 100644
--- a/Starserver/StarServer.cpp
+++ b/Starserver/StarServer.cpp
@@ -63,13 +63,13 @@ StarServer::StarServer() :
auto loader = DataLoader::GetLoader();
if (!loader) throw "Could not get DataLoader instance";
- int loadstat = loader->EnableDatafile("shatter.dat");
+ int loadstat = loader->MountDatafile("shatter.dat", DataLoader::Group::BASE);
if (loadstat == DataLoader::FAILED) {
throw loader->LastError();
}
if (loader->FindFile("start.dat"))
- loader->EnableDatafile("start.dat");
+ loader->MountDatafile("start.dat", DataLoader::Group::BASE);
loader->EnableMedia(false);
}