mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-29 06:13:22 +00:00
compile fix for non-windows platforms
This was SVN commit r7066.
This commit is contained in:
@@ -584,9 +584,9 @@ public:
|
||||
const char* envHome = getenv("HOME");
|
||||
debug_assert(envHome);
|
||||
const fs::path home(envHome);
|
||||
m_data = XDG_Path("XDG_DATA_HOME", home/".local/share")/subdirectoryName;
|
||||
m_config = XDG_Path("XDG_CONFIG_HOME", home/".config")/subdirectoryName;
|
||||
m_cache = XDG_Path("XDG_CACHE_HOME", home/".cache")/subdirectoryName;
|
||||
m_data = XDG_Path("XDG_DATA_HOME", home, home/".local/share")/subdirectoryName;
|
||||
m_config = XDG_Path("XDG_CONFIG_HOME", home, home/".config")/subdirectoryName;
|
||||
m_cache = XDG_Path("XDG_CACHE_HOME", home, home/".cache")/subdirectoryName;
|
||||
m_logs = m_config/"logs";
|
||||
#endif
|
||||
}
|
||||
@@ -701,8 +701,9 @@ static void InitVfs(const CmdLineArgs& args)
|
||||
{
|
||||
size_t priority = i;
|
||||
const int flags = VFS_MOUNT_WATCH|VFS_MOUNT_ARCHIVABLE;
|
||||
g_VFS->Mount("", modLoosePath/mods[i], flags, priority);
|
||||
g_VFS->Mount("", modArchivePath/mods[i], flags, priority);
|
||||
const std::string modName = mods[i];
|
||||
g_VFS->Mount("", modLoosePath/modName, flags, priority);
|
||||
g_VFS->Mount("", modArchivePath/modName, flags, priority);
|
||||
}
|
||||
|
||||
// don't try g_VFS->Display yet: SDL_Init hasn't yet redirected stdout
|
||||
|
||||
Reference in New Issue
Block a user