Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/main.cpp
Show First 20 Lines • Show All 509 Lines • ▼ Show 20 Lines | if (isNonVisualReplay) | ||||
if (!args.Has("mod")) | 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(20 * MiB); | 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, GetMods(args, INIT_MODS)); | ||||
{ | { | ||||
CReplayPlayer replay; | CReplayPlayer replay; | ||||
replay.Load(replayFile); | replay.Load(replayFile); | ||||
replay.Replay( | replay.Replay( | ||||
args.Has("serializationtest"), | args.Has("serializationtest"), | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator