add some cheks and error reporting, enable catch SEH in windows

This commit is contained in:
Ondrej Novak 2025-03-12 18:59:47 +01:00
parent 8faba63219
commit c9d0e86344
8 changed files with 88 additions and 34 deletions

View file

@ -996,7 +996,8 @@ void init_skeldal(const INI_CONFIG *cfg)
char verr = game_display_init(ini_section_open(cfg, "video"), "Skeldal");
if (!verr)
{
exit(1);
display_error("Error game_display_init %d", verr);
exit(1);
}
showview = game_display_update_rect;
game_display_set_icon(getWindowIcon(), getWindowIconSize());