jbhook2 and jbhook3 gfx updates
- Fix jbhook3 window mode - Remove -f option for framed window, no value - Add -s option to show mouse cursor on window
This commit is contained in:
committed by
icex2
parent
721897d7b0
commit
28633ded37
@@ -199,6 +199,10 @@ static HWND CDECL my_mwindow_create(
|
||||
window_height = tmp;
|
||||
}
|
||||
|
||||
if(options.show_cursor) {
|
||||
ShowCursor(TRUE);
|
||||
}
|
||||
|
||||
fullscreen = !options.windowed;
|
||||
|
||||
return real_mwindow_create(
|
||||
|
||||
@@ -34,10 +34,10 @@ void options_init_from_cmdline(struct options *options)
|
||||
void options_init(struct options *options)
|
||||
{
|
||||
options->windowed = false;
|
||||
options->window_framed = false;
|
||||
options->disable_p3ioemu = false;
|
||||
options->disable_cardemu = false;
|
||||
options->disable_adapteremu = false;
|
||||
options->show_cursor = false;
|
||||
}
|
||||
|
||||
bool options_read_cmdline(struct options *options, int argc, const char **argv)
|
||||
@@ -60,11 +60,6 @@ bool options_read_cmdline(struct options *options, int argc, const char **argv)
|
||||
break;
|
||||
}
|
||||
|
||||
case 'f': {
|
||||
options->window_framed = true;
|
||||
break;
|
||||
}
|
||||
|
||||
case 'v': {
|
||||
options->vertical = true;
|
||||
break;
|
||||
@@ -84,6 +79,11 @@ bool options_read_cmdline(struct options *options, int argc, const char **argv)
|
||||
options->disable_p3ioemu = true;
|
||||
break;
|
||||
}
|
||||
|
||||
case 's': {
|
||||
options->show_cursor = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -106,7 +106,8 @@ void options_print_usage(void)
|
||||
" -c Disable card emulation (e.g. when running on a "
|
||||
"real cab)\n"
|
||||
" -p Disable p3io emulation (e.g. when running on a "
|
||||
"real cab)\n");
|
||||
"real cab)\n"
|
||||
" -s Show mouse cursor on game window\n");
|
||||
}
|
||||
|
||||
void options_fini(struct options *options)
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
struct options {
|
||||
bool windowed;
|
||||
bool window_framed;
|
||||
bool vertical;
|
||||
bool disable_p3ioemu;
|
||||
bool disable_cardemu;
|
||||
bool disable_adapteremu;
|
||||
bool show_cursor;
|
||||
};
|
||||
|
||||
void options_init_from_cmdline(struct options *options);
|
||||
|
||||
Reference in New Issue
Block a user