Commit 5258231c authored by Vladimir Serbinenko's avatar Vladimir Serbinenko
Browse files

Support loading autorunning games

parent f7eada12
......@@ -217,10 +217,13 @@ by the environment variable BK_PATH.\n"), romdir );
run( 1 ); /* go for it */
if (hasgame == 1)
{
extern ui_load(const char *);
ui_load(game_path);
ui_start( "1000", 1 );
FILE *f = fopen(game_path, "r");
hasgame = 0;
if (!f) {
perror("Error opening file");
continue;
}
load_and_run(f);
}
else if (hasexit == 0)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment