diff --git a/src/game/g_main.pas b/src/game/g_main.pas
index 8142dd83c30f7c1fd14b4a28fe650aec0769415a..c290df5e6b2176f743ae93748f919b73bd14add9 100644 (file)
--- a/src/game/g_main.pas
+++ b/src/game/g_main.pas
e_InitInput;
sys_Init;
+ g_Options_SetDefault;
+ g_Options_SetDefaultVideo;
s := CONFIG_FILENAME;
if e_FindResource(ConfigDirs, s) = true then
- begin
- g_Options_Read(s)
- end
- else
- begin
- g_Options_SetDefault;
- g_Options_SetDefaultVideo
- end;
- if sys_SetDisplayMode(gScreenWidth, gScreenHeight, gBPP, gFullScreen) = False then
+ g_Options_Read(s);
+ g_Console_SysInit;
+ if sys_SetDisplayMode(gRC_Width, gRC_Height, gBPP, gRC_FullScreen, gRC_Maximized) = False then
raise Exception.Create('Failed to set videomode on startup.');
- g_Console_SysInit;
e_WriteLog(gLanguage, TMsgType.Notify);
g_Language_Set(gLanguage);
if assigned(oglDeinitCB) then oglDeinitCB;
{$ENDIF}
+ g_Console_WriteGameConfig;
sys_Final;
end;