mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
Distinguish SDL and Cocoa back-ends in startup log
This commit is contained in:
parent
b6404180bb
commit
efdfeeec90
3 changed files with 18 additions and 2 deletions
|
@ -1310,6 +1310,15 @@ bool I_SetCursor(FTexture* cursorpic)
|
|||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
const char* I_GetBackEndName()
|
||||
{
|
||||
return "Native Cocoa";
|
||||
}
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
extern "C"
|
||||
{
|
||||
|
||||
|
|
|
@ -76,3 +76,8 @@ void I_SetMainWindowVisible(bool visible)
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
const char* I_GetBackEndName()
|
||||
{
|
||||
return "SDL";
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue