mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 15:17:50 +00:00
Include '32/64-bit build' info-string in log file and debugger's MOTD (#1392)
This commit is contained in:
@@ -285,6 +285,16 @@ bool CheckOldAppleWinVersion(void)
|
||||
return bShowAboutDlg;
|
||||
}
|
||||
|
||||
UINT GetCompilationTarget(void)
|
||||
{
|
||||
return
|
||||
#ifdef _WIN64
|
||||
64;
|
||||
#else
|
||||
32;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool SetCurrentImageDir(const std::string& pszImageDir)
|
||||
{
|
||||
g_sCurrentDir = pszImageDir;
|
||||
|
||||
@@ -14,6 +14,7 @@ extern std::string g_VERSIONSTRING; // Constructed in WinMain()
|
||||
|
||||
void SetAppleWinVersion(UINT16 major, UINT16 minor, UINT16 fix, UINT16 fix_minor);
|
||||
bool CheckOldAppleWinVersion(void);
|
||||
UINT GetCompilationTarget(void);
|
||||
|
||||
extern std::string g_pAppTitle;
|
||||
|
||||
|
||||
@@ -1459,10 +1459,11 @@ Update_t CmdVersion (int nArgs)
|
||||
int nFixMinor;
|
||||
UnpackVersion( nVersion, nMajor, nMinor, nFixMajor, nFixMinor );
|
||||
|
||||
ConsolePrintFormat( " Emulator: %s%s%s Debugger: %s%d.%d.%d.%d%s"
|
||||
ConsolePrintFormat( " Emulator: %s%s%s (%d-bit build) Debugger: %s%d.%d.%d.%d%s"
|
||||
, CHC_SYMBOL
|
||||
, g_VERSIONSTRING.c_str()
|
||||
, CHC_DEFAULT
|
||||
, GetCompilationTarget()
|
||||
, CHC_SYMBOL
|
||||
, nMajor, nMinor, nFixMajor, nFixMinor
|
||||
, CHC_DEFAULT
|
||||
|
||||
@@ -619,7 +619,7 @@ static void GetAppleWinVersion(void)
|
||||
delete [] pVerInfoBlock;
|
||||
}
|
||||
|
||||
LogFileOutput("AppleWin version: %s\n", g_VERSIONSTRING.c_str());
|
||||
LogFileOutput("AppleWin version: %s (%d-bit build)\n", g_VERSIONSTRING.c_str(), GetCompilationTarget());
|
||||
}
|
||||
|
||||
// DO ONE-TIME INITIALIZATION
|
||||
|
||||
Reference in New Issue
Block a user