summaryrefslogtreecommitdiff
path: root/emulators/darcnes/files/patch-ui__x.c
blob: ac874c61fcff79c212a2f030345f934caafd99b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);