Changeset View
Changeset View
Standalone View
Standalone View
source/ps/GameSetup/GameSetup.cpp
Show First 20 Lines • Show All 455 Lines • ▼ Show 20 Lines | static void InitVfs(const CmdLineArgs& args, int flags) | ||||
// Engine localization files. | // Engine localization files. | ||||
g_VFS->Mount(L"l10n/", paths.RData()/"l10n"/""); | g_VFS->Mount(L"l10n/", paths.RData()/"l10n"/""); | ||||
MountMods(paths, GetMods(args, flags)); | MountMods(paths, GetMods(args, flags)); | ||||
// We mount these dirs last as otherwise writing could result in files being placed in a mod's dir. | // We mount these dirs last as otherwise writing could result in files being placed in a mod's dir. | ||||
g_VFS->Mount(L"screenshots/", paths.UserData()/"screenshots"/""); | g_VFS->Mount(L"screenshots/", paths.UserData()/"screenshots"/""); | ||||
g_VFS->Mount(L"saves/", paths.UserData()/"saves"/"", VFS_MOUNT_WATCH); | g_VFS->Mount(L"saves/", paths.UserData()/"saves"/"", VFS_MOUNT_WATCH); | ||||
Stan: I feel like it would be better to have
saves
- campaign
- sp
- mp
or at least having the… | |||||
Done Inline ActionsFine by me. wraitii: Fine by me. | |||||
// Mounting with highest priority, so that a mod supplied user.cfg is harmless | // Mounting with highest priority, so that a mod supplied user.cfg is harmless | ||||
g_VFS->Mount(L"config/", readonlyConfig, 0, (size_t)-1); | g_VFS->Mount(L"config/", readonlyConfig, 0, (size_t)-1); | ||||
if(readonlyConfig != paths.Config()) | if(readonlyConfig != paths.Config()) | ||||
g_VFS->Mount(L"config/", paths.Config(), 0, (size_t)-1); | g_VFS->Mount(L"config/", paths.Config(), 0, (size_t)-1); | ||||
g_VFS->Mount(L"cache/", paths.Cache(), VFS_MOUNT_ARCHIVABLE); // (adding XMBs to archive speeds up subsequent reads) | g_VFS->Mount(L"cache/", paths.Cache(), VFS_MOUNT_ARCHIVABLE); // (adding XMBs to archive speeds up subsequent reads) | ||||
// note: don't bother with g_VFS->TextRepresentation - directories | // note: don't bother with g_VFS->TextRepresentation - directories | ||||
▲ Show 20 Lines • Show All 1,168 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
I feel like it would be better to have
saves
or at least having the campaign saves in the saves folder