Distinguish SDL and Cocoa back-ends in startup log

This commit is contained in:
alexey.lysiuk 2014-08-09 15:51:39 +03:00
parent b6404180bb
commit efdfeeec90
3 changed files with 18 additions and 2 deletions

View file

@ -1310,6 +1310,15 @@ bool I_SetCursor(FTexture* cursorpic)
// ---------------------------------------------------------------------------
const char* I_GetBackEndName()
{
return "Native Cocoa";
}
// ---------------------------------------------------------------------------
extern "C"
{

View file

@ -76,3 +76,8 @@ void I_SetMainWindowVisible(bool visible)
{
}
const char* I_GetBackEndName()
{
return "SDL";
}

View file

@ -239,6 +239,8 @@ static void unprotect_rtext()
void I_StartupJoysticks();
void I_ShutdownJoysticks();
const char* I_GetBackEndName();
int main (int argc, char **argv)
{
#if !defined (__APPLE__)
@ -248,8 +250,8 @@ int main (int argc, char **argv)
}
#endif // !__APPLE__
printf(GAMENAME" %s - %s - SDL version\nCompiled on %s\n",
GetVersionString(), GetGitTime(), __DATE__);
printf(GAMENAME" %s - %s - %s version\nCompiled on %s\n",
GetVersionString(), GetGitTime(), I_GetBackEndName(), __DATE__);
seteuid (getuid ());
std::set_new_handler (NewFailure);