mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-27 22:31:02 +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"
|
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_StartupJoysticks();
|
||||||
void I_ShutdownJoysticks();
|
void I_ShutdownJoysticks();
|
||||||
|
|
||||||
|
const char* I_GetBackEndName();
|
||||||
|
|
||||||
int main (int argc, char **argv)
|
int main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
#if !defined (__APPLE__)
|
#if !defined (__APPLE__)
|
||||||
|
@ -248,8 +250,8 @@ int main (int argc, char **argv)
|
||||||
}
|
}
|
||||||
#endif // !__APPLE__
|
#endif // !__APPLE__
|
||||||
|
|
||||||
printf(GAMENAME" %s - %s - SDL version\nCompiled on %s\n",
|
printf(GAMENAME" %s - %s - %s version\nCompiled on %s\n",
|
||||||
GetVersionString(), GetGitTime(), __DATE__);
|
GetVersionString(), GetGitTime(), I_GetBackEndName(), __DATE__);
|
||||||
|
|
||||||
seteuid (getuid ());
|
seteuid (getuid ());
|
||||||
std::set_new_handler (NewFailure);
|
std::set_new_handler (NewFailure);
|
||||||
|
|
Loading…
Reference in a new issue