X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=eradicate;a=blobdiff_plain;f=src%2Fdos%2Fmain.c;h=72b666ee3c1c651272f7c268bcb7e7f888f71990;hp=911781c2c8eacb55156fc4277afc940b4d230f58;hb=a77883f4cefd1af3d71588871ef27e81a49194d8;hpb=1ee7845621c04020321fa8dfb6dcbf3d8c6c9b51 diff --git a/src/dos/main.c b/src/dos/main.c index 911781c..72b666e 100644 --- a/src/dos/main.c +++ b/src/dos/main.c @@ -46,6 +46,11 @@ int main(int argc, char **argv) } fb_pixels = (char*)fb_buf + vmode->pitch; + if(init(argc, argv) == -1) { + status = -1; + goto break_evloop; + } + reset_timer(); for(;;) { @@ -62,6 +67,7 @@ int main(int argc, char **argv) break_evloop: free(fb_buf); + cleanup(); set_text_mode(); cleanup_video(); kb_shutdown();