mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 15:17:50 +00:00
Make path separator OS-dependent (PR #954)
This commit is contained in:
+2
-2
@@ -288,8 +288,8 @@ bool SetCurrentImageDir(const std::string& pszImageDir)
|
||||
{
|
||||
g_sCurrentDir = pszImageDir;
|
||||
|
||||
if (!g_sCurrentDir.empty() && *g_sCurrentDir.rbegin() != '\\')
|
||||
g_sCurrentDir += '\\';
|
||||
if (!g_sCurrentDir.empty() && *g_sCurrentDir.rbegin() != PATH_SEPARATOR)
|
||||
g_sCurrentDir += PATH_SEPARATOR;
|
||||
|
||||
if (SetCurrentDirectory(g_sCurrentDir.c_str()))
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user