@@ -11,7 +11,9 @@ const char* app_releases_address = "https://github.com/X65/emu/releases";
1111#define FULL_NAME "X65 microcomputer emulator"
1212const char full_name [] = FULL_NAME ;
1313
14- struct arguments arguments = { NULL , 0 , 0 , "-" };
14+ struct arguments arguments = {
15+ NULL , 0 , 0 , "-" , false, false, NULL ,
16+ };
1517static char args_doc [] = "[ROM.xex]" ;
1618
1719#ifdef USE_ARGP
@@ -21,6 +23,7 @@ static struct argp_option options[] = {
2123 { "silent" , 's' , 0 , OPTION_ALIAS },
2224 { "output" , 'o' , "FILE" , 0 , "Output to FILE instead of standard output" },
2325 { "labels" , 'l' , "LABELS_FILE" , 0 , "Load VICE compatible global labels file" },
26+ { "joy" , 'j' , 0 , 0 , "Enable Joystick 0 emulation" },
2427 { "dap" , 'd' , 0 , 0 , "Enable Debug Adapter Protocol over stdin/stdout" },
2528 { "dap-port" , 'p' , "PORT" , 0 , "Enable Debug Adapter Protocol over TCP port" },
2629 { 0 }
@@ -34,6 +37,7 @@ static error_t parse_opt(int key, char* arg, struct argp_state* argp_state) {
3437 case 's' : args -> silent = 1 ; break ;
3538 case 'v' : args -> verbose = 1 ; break ;
3639 case 'o' : args -> output_file = arg ; break ;
40+ case 'j' : args -> joy = 1 ; break ;
3741 case 'd' : args -> dap = 1 ; break ;
3842 case 'p' : args -> dap_port = arg ; break ;
3943
0 commit comments