Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/main.cpp
Show First 20 Lines • Show All 587 Lines • ▼ Show 20 Lines | if (isNonVisualReplay) | ||||
{ | { | ||||
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); | // Mount with highest priority, we don't want mods overwriting this. | ||||
g_VFS->Mount(L"cache/", paths.Cache(), VFS_MOUNT_ARCHIVABLE, VFS_MAX_PRIORITY); | |||||
MountMods(paths, GetMods(args, INIT_MODS)); | MountMods(paths, GetMods(args, INIT_MODS)); | ||||
{ | { | ||||
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, | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator