diff --git a/cmake/Pcsx2Utils.cmake b/cmake/Pcsx2Utils.cmake index 2b54ebd34c..445f849c57 100644 --- a/cmake/Pcsx2Utils.cmake +++ b/cmake/Pcsx2Utils.cmake @@ -26,6 +26,7 @@ function(detectOperatingSystem) endif() if ("${OS_RELEASE}" MATCHES "^.*ID=.*suse.*$") set(openSUSE TRUE PARENT_SCOPE) + add_definitions(-DopenSUSE) message(STATUS "Build openSUSE specific") endif() endif() diff --git a/pcsx2/System.cpp b/pcsx2/System.cpp index 6701398046..7bbeeddc06 100644 --- a/pcsx2/System.cpp +++ b/pcsx2/System.cpp @@ -194,14 +194,20 @@ void SysLogMachineCaps() { if ( !PCSX2_isReleaseVersion ) { - Console.WriteLn(Color_StrongGreen, "PCSX2 %u.%u.%u-%lld %s - compiled on " __DATE__, - PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo, + Console.WriteLn(Color_StrongGreen, "PCSX2 %u.%u.%u-%lld %s" +#ifndef openSUSE + "- compiled on " __DATE__ +#endif + , PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo, SVN_REV, SVN_MODS ? "(modded)" : "" ); } else { // shorter release version string - Console.WriteLn(Color_StrongGreen, "PCSX2 %u.%u.%u-%lld - compiled on " __DATE__, - PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo, + Console.WriteLn(Color_StrongGreen, "PCSX2 %u.%u.%u-%lld" +#ifndef openSUSE + "- compiled on " __DATE__ +#endif + , PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo, SVN_REV ); } diff --git a/pcsx2/gui/MainFrame.cpp b/pcsx2/gui/MainFrame.cpp index ea6e88a893..337818be20 100644 --- a/pcsx2/gui/MainFrame.cpp +++ b/pcsx2/gui/MainFrame.cpp @@ -356,8 +356,13 @@ MainEmuFrame::MainEmuFrame(wxWindow* parent, const wxString& title) else { // beta / development editions, which feature revision number and compile date. +#ifndef openSUSE wintitle.Printf( L"%s %d.%d.%d-%lld%s (git) %s", pxGetAppName().c_str(), PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo, SVN_REV, SVN_MODS ? L"m" : wxEmptyString, fromUTF8(__DATE__).c_str() ); +#else + wintitle.Printf( L"%s %d.%d.%d-%lld%s (git)", pxGetAppName().c_str(), PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo, + SVN_REV, SVN_MODS ? L"m" : wxEmptyString ); +#endif } SetTitle( wintitle ); diff --git a/plugins/spu2-x/src/Windows/AboutBox.cpp b/plugins/spu2-x/src/Windows/AboutBox.cpp index 9b4c4ecc22..463aea97c8 100644 --- a/plugins/spu2-x/src/Windows/AboutBox.cpp +++ b/plugins/spu2-x/src/Windows/AboutBox.cpp @@ -32,10 +32,17 @@ static LRESULT WINAPI AboutProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPar wchar_t outstr[256]; if( IsDevBuild ) - swprintf_s( outstr, L"Build %lld -- Compiled on " _T(__DATE__), SVN_REV ); + swprintf_s( outstr, L"Build %lld" +#ifndef openSUSE + "-- Compiled on " _T(__DATE__) +#endif + , SVN_REV ); else - swprintf_s( outstr, L"Release v%d.%d -- Compiled on " _T(__DATE__), - VersionInfo::Release, VersionInfo::Revision ); + swprintf_s( outstr, L"Release v%d.%d" +#ifndef openSUSE + "-- Compiled on " _T(__DATE__) +#endif + , VersionInfo::Release, VersionInfo::Revision ); SetWindowText( GetDlgItem(hDlg, IDC_LABEL_VERSION_INFO), outstr ); ShowWindow( hDlg, true );