Include '32/64-bit build' info-string in log file and debugger's MOTD (#1392)

This commit is contained in:
tomcw
2025-05-04 18:36:33 +01:00
parent 32749dbcad
commit 265f1ddbf1
4 changed files with 14 additions and 2 deletions
+10
View File
@@ -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;
+1
View File
@@ -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;
+2 -1
View File
@@ -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
+1 -1
View File
@@ -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