mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fix botched merge
This commit is contained in:
parent
d829e53bc0
commit
fae6f22a2b
1 changed files with 0 additions and 24 deletions
|
@ -38,7 +38,6 @@ extern int sys_ostype;
|
||||||
|
|
||||||
EXTERN_CVAR(Bool, vid_glswfb)
|
EXTERN_CVAR(Bool, vid_glswfb)
|
||||||
extern int currentrenderer;
|
extern int currentrenderer;
|
||||||
|
|
||||||
CVAR(Int, sys_statsenabled, -1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOSET)
|
CVAR(Int, sys_statsenabled, -1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOSET)
|
||||||
CVAR(String, sys_statshost, "gzstats.drdteam.org", CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOSET)
|
CVAR(String, sys_statshost, "gzstats.drdteam.org", CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOSET)
|
||||||
CVAR(Int, sys_statsport, 80, CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOSET)
|
CVAR(Int, sys_statsport, 80, CVAR_ARCHIVE|CVAR_GLOBALCONFIG|CVAR_NOSET)
|
||||||
|
@ -359,26 +358,3 @@ void D_ConfirmSendStats()
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // NO_SEND_STATS
|
#endif // NO_SEND_STATS
|
||||||
|
|
||||||
void D_ConfirmSendStats()
|
|
||||||
{
|
|
||||||
if (sys_statsenabled >= 0)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: texts
|
|
||||||
static const char *const MESSAGE_TEXT = "send stats?";
|
|
||||||
static const char *const TITLE_TEXT = GAMENAME;
|
|
||||||
|
|
||||||
UCVarValue enabled = { 0 };
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
extern HWND Window;
|
|
||||||
enabled = { MessageBox(Window, MESSAGE_TEXT, TITLE_TEXT, MB_ICONQUESTION | MB_YESNO) == IDYES };
|
|
||||||
#else
|
|
||||||
// TODO
|
|
||||||
#endif
|
|
||||||
|
|
||||||
sys_statsenabled.ForceSet(enabled, CVAR_Int);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue