mirror of https://github.com/PCSX2/pcsx2.git
SPU2-X: Added SVN revision info to the SPU2-X name reported back to PCSX2, so that it shows up in the plugin lists. (previously only did so in dev/debug builds, now does it for release too).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2068 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
6fdaea2c79
commit
beed14bfee
|
@ -54,49 +54,53 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
|
||||||
|
|
||||||
static void InitLibraryName()
|
static void InitLibraryName()
|
||||||
{
|
{
|
||||||
if( !IsDevBuild )
|
#ifdef SPU2X_PUBLIC_RELEASE
|
||||||
{
|
|
||||||
// Public Release!
|
|
||||||
// Output a simplified string that's just our name:
|
|
||||||
|
|
||||||
strcpy( libraryName, "SPU2-X" );
|
// Public Release!
|
||||||
}
|
// Output a simplified string that's just our name:
|
||||||
else
|
|
||||||
{
|
|
||||||
#ifdef SVN_REV_UNKNOWN
|
|
||||||
|
|
||||||
// Unknown revision.
|
strcpy( libraryName, "SPU2-X" );
|
||||||
// Output a name that includes devbuild status but not
|
|
||||||
// subversion revision tags:
|
|
||||||
|
|
||||||
strcpy( libraryName, "SPU2-X"
|
#else
|
||||||
#ifdef DEBUG_FAST
|
#ifdef SVN_REV_UNKNOWN
|
||||||
"-Debug"
|
|
||||||
#elif defined( PCSX2_DEBUG )
|
|
||||||
"-Debug/Strict" // strict debugging is slow!
|
|
||||||
#else
|
|
||||||
"-Dev"
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
|
|
||||||
#else
|
// Unknown revision.
|
||||||
|
// Output a name that includes devbuild status but not
|
||||||
|
// subversion revision tags:
|
||||||
|
|
||||||
// Use TortoiseSVN's SubWCRev utility's output
|
strcpy( libraryName, "SPU2-X"
|
||||||
// to label the specific revision:
|
#ifdef DEBUG_FAST
|
||||||
|
"-Debug"
|
||||||
|
#elif defined( PCSX2_DEBUG )
|
||||||
|
"-Debug/Strict" // strict debugging is slow!
|
||||||
|
#elif defined( PCSX2_DEVBUILD )
|
||||||
|
"-Dev"
|
||||||
|
#else
|
||||||
|
""
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
// Use TortoiseSVN's SubWCRev utility's output
|
||||||
|
// to label the specific revision:
|
||||||
|
|
||||||
|
sprintf_s( libraryName, "SPU2-X r%d%s"
|
||||||
|
#ifdef DEBUG_FAST
|
||||||
|
"-Debug"
|
||||||
|
#elif defined( PCSX2_DEBUG )
|
||||||
|
"-Debug/Strict" // strict debugging is slow!
|
||||||
|
#elif defined( PCSX2_DEVBUILD )
|
||||||
|
"-Dev"
|
||||||
|
#else
|
||||||
|
""
|
||||||
|
#endif
|
||||||
|
,SVN_REV,
|
||||||
|
SVN_MODS ? "m" : ""
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
sprintf_s( libraryName, "SPU2-X r%d%s"
|
|
||||||
#ifdef DEBUG_FAST
|
|
||||||
"-Debug"
|
|
||||||
#elif defined( PCSX2_DEBUG )
|
|
||||||
"-Debug/Strict" // strict debugging is slow!
|
|
||||||
#else
|
|
||||||
"-Dev"
|
|
||||||
#endif
|
|
||||||
,SVN_REV,
|
|
||||||
SVN_MODS ? "m" : ""
|
|
||||||
);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_C_(u32) PS2EgetLibType()
|
EXPORT_C_(u32) PS2EgetLibType()
|
||||||
|
|
Loading…
Reference in New Issue