Changeset View
Changeset View
Standalone View
Standalone View
source/main.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
#include "ps/CConsole.h" | #include "ps/CConsole.h" | ||||
#include "ps/CLogger.h" | #include "ps/CLogger.h" | ||||
#include "ps/ConfigDB.h" | #include "ps/ConfigDB.h" | ||||
#include "ps/Filesystem.h" | #include "ps/Filesystem.h" | ||||
#include "ps/Game.h" | #include "ps/Game.h" | ||||
#include "ps/Globals.h" | #include "ps/Globals.h" | ||||
#include "ps/Hotkey.h" | #include "ps/Hotkey.h" | ||||
#include "ps/Loader.h" | #include "ps/Loader.h" | ||||
#include "ps/Mod.h" | |||||
#include "ps/ModInstaller.h" | #include "ps/ModInstaller.h" | ||||
#include "ps/Profile.h" | #include "ps/Profile.h" | ||||
#include "ps/Profiler2.h" | #include "ps/Profiler2.h" | ||||
#include "ps/Pyrogenesis.h" | #include "ps/Pyrogenesis.h" | ||||
#include "ps/Replay.h" | #include "ps/Replay.h" | ||||
#include "ps/TouchInput.h" | #include "ps/TouchInput.h" | ||||
#include "ps/UserReport.h" | #include "ps/UserReport.h" | ||||
#include "ps/Util.h" | #include "ps/Util.h" | ||||
▲ Show 20 Lines • Show All 529 Lines • ▼ Show 20 Lines | if (!args.Has("mod")) | ||||
LOGERROR("At least one mod should be specified! Did you mean to add the argument '-mod=public'?"); | LOGERROR("At least one mod should be specified! Did you mean to add the argument '-mod=public'?"); | ||||
CXeromyces::Terminate(); | CXeromyces::Terminate(); | ||||
return; | return; | ||||
} | } | ||||
Paths paths(args); | Paths paths(args); | ||||
g_VFS = CreateVfs(); | g_VFS = CreateVfs(); | ||||
g_VFS->Mount(L"cache/", paths.Cache(), VFS_MOUNT_ARCHIVABLE); | g_VFS->Mount(L"cache/", paths.Cache(), VFS_MOUNT_ARCHIVABLE); | ||||
MountMods(paths, GetMods(args, INIT_MODS)); | MountMods(paths, Mod::GetModsFromArguments(args, INIT_MODS)); | ||||
Silier: move check here and even don't mount them when incompatible? | |||||
{ | { | ||||
CReplayPlayer replay; | CReplayPlayer replay; | ||||
replay.Load(replayFile); | replay.Load(replayFile); | ||||
replay.Replay( | replay.Replay( | ||||
args.Has("serializationtest"), | args.Has("serializationtest"), | ||||
args.Has("rejointest") ? args.Get("rejointest").ToInt() : -1, | args.Has("rejointest") ? args.Get("rejointest").ToInt() : -1, | ||||
args.Has("ooslog"), | args.Has("ooslog"), | ||||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
move check here and even don't mount them when incompatible?