Change SetCurrentImageDir() to return true/false

This commit is contained in:
michaelangel007 2015-01-10 16:56:47 -08:00
parent 9ffc6b7491
commit 82fc84ccd2
2 changed files with 6 additions and 3 deletions

View File

@ -545,7 +545,7 @@ void LoadConfiguration(void)
//===========================================================================
void SetCurrentImageDir(const char* pszImageDir)
bool SetCurrentImageDir(const char* pszImageDir)
{
strcpy(g_sCurrentDir, pszImageDir);
@ -556,7 +556,10 @@ void SetCurrentImageDir(const char* pszImageDir)
g_sCurrentDir[ nLen + 1 ] = 0;
}
SetCurrentDirectory(g_sCurrentDir);
if( SetCurrentDirectory(g_sCurrentDir) )
return true;
return false;
}
//===========================================================================

View File

@ -4,7 +4,7 @@
#include "Common.h"
void SetCurrentCLK6502();
void SetCurrentImageDir(const char* pszImageDir);
bool SetCurrentImageDir(const char* pszImageDir);
extern char VERSIONSTRING[]; // Constructed in WinMain()