mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-28 14:29:51 +00:00
Change SetCurrentImageDir() to return true/false
This commit is contained in:
parent
9ffc6b7491
commit
82fc84ccd2
|
@ -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;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user