aboutsummaryrefslogtreecommitdiff
path: root/emulators/darcnes/files/patch-ui__x.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/darcnes/files/patch-ui__x.c')
-rw-r--r--emulators/darcnes/files/patch-ui__x.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/emulators/darcnes/files/patch-ui__x.c b/emulators/darcnes/files/patch-ui__x.c
new file mode 100644
index 000000000000..ac874c61fcff
--- /dev/null
+++ b/emulators/darcnes/files/patch-ui__x.c
@@ -0,0 +1,15 @@
+--- ui_x.c.orig 2000-10-30 22:15:31 UTC
++++ ui_x.c
+@@ -177,6 +177,12 @@ int main(int argc, char *argv[])
+ return 1;
+ }
+
++ if (romfile == NULL) {
++ printf("rom not specified.\n");
++ usage(argv[0]);
++ return 1;
++ }
++
+ initialize_window(display);
+
+ activate_system(system_type, romfile);