|
Xemu [doxygen]
hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
|
Go to the documentation of this file.
21 #define UI_CB_QUIT() exit(0)
22 #define UI_CB_QUIT_() do { \
59 "Compiled by: %s at %s\n"
60 "Built with: %s for %s\n"
62 "Copyright (C)" COPYRIGHT_YEARS " Gábor Lénárt (aka LGB) lgb@lgb.hu\nhttp://lgb.hu/\n"
63 "This software is part of the Xemu project:\nhttps://github.com/lgblgblgb/xemu\n"
65 "This software is a GNU/GPL version 2 (or later) software.\n"
66 "<http://gnu.org/licenses/gpl.html>\n"
67 "This is free software; you are free to change and redistribute it.\n"
68 "There is NO WARRANTY, to the extent permitted by law."
87 void xemugui_cb_sysconsole (
const struct menu_st *m,
int *query )
99 int mode_spec = (int)(uintptr_t)m->
user_data;
101 static int last_mode = 0;
103 if (mode_spec == last_mode)
107 last_mode = mode_spec;
112 #ifdef HAVE_XEMU_EXEC_API
114 void xemugui_cb_native_os_prefdir_browser (
const struct menu_st *m,
int *query )
119 static void _open_url (
const char *url_in,
const char *par_list[] )
123 char *b = buffer + sprintf(buffer,
"%s", url_in);
124 for (
int i = 0; par_list && par_list[i]; i++)
126 b += sprintf(b,
"%c%s", !i ?
'?' :
'&', par_list[i]);
129 const char *u = par_list[i];
131 if ((*u >=
'a' && *u <=
'z') || (*u >=
'0' && *u <=
'9') || (*u >=
'A' && *u <=
'Z'))
134 b += sprintf(b,
"%%%02X", (
unsigned char)(*u++));
137 DEBUGPRINT(
"BROWSER: requesting web resource to open: %s" NL, buffer);
141 void xemugui_cb_web_url (
const struct menu_st *m,
int *query )
148 void xemugui_cb_web_help_main (
const struct menu_st *m,
int *query )
153 sprintf(par,
"o=%d\001v=%s\001b=%s\001t=%s\001T=%s\001p=%s\001u=" PRINTF_LLD "\001x=%s\002chk",
160 (
long long int)time(NULL),
180 static int first_warning = 1;
183 INFO_WINDOW(
"Mouse grab mode has been enabled.\nLeft click into the emulator window to initiate.\nPress both SHIFTs together to cancel.");
205 #ifdef XEMU_CONFIGDB_SUPPORT
213 void xemugui_cb_cfgfile (
const struct menu_st *m,
int *query )
218 char fnbuf[PATH_MAX + 1];
219 static char dir[PATH_MAX + 1] =
"";
223 case XEMUGUICFGFILEOP_SAVE_DEFAULT:
224 case XEMUGUICFGFILEOP_LOAD_DEFAULT:
227 case XEMUGUICFGFILEOP_LOAD_CUSTOM:
228 case XEMUGUICFGFILEOP_SAVE_CUSTOM:
231 "Select config file",
240 case XEMUGUICFGFILEOP_LOAD_DEFAULT:
241 case XEMUGUICFGFILEOP_LOAD_CUSTOM:
244 case XEMUGUICFGFILEOP_SAVE_DEFAULT:
245 case XEMUGUICFGFILEOP_SAVE_CUSTOM:
void xemugui_cb_show_info_window_text(const struct menu_st *m, int *query)
#define XEMU_ONLINE_HELP_GET_VAR
#define XEMU_ONLINE_HELP_HANDLER_URL
void xemugui_cb_call_quit_if_sure(const struct menu_st *m, int *query)
void xemugui_cb_set_integer_to_one(const struct menu_st *m, int *query)
void xemugui_cb_osd_key_debugger(const struct menu_st *m, int *query)
void xemugui_cb_call_user_data_if_sure(const struct menu_st *m, int *query)
void xemugui_cb_call_user_data(const struct menu_st *m, int *query)
void xemugui_cb_toggle_int(const struct menu_st *m, int *query)
void xemugui_cb_quit(const struct menu_st *m, int *query)
void xemugui_cb_toggle_int_inverted(const struct menu_st *m, int *query)
void xemugui_cb_about_window(const struct menu_st *m, int *query)
void xemugui_cb_set_mouse_grab(const struct menu_st *m, int *query)
void xemugui_cb_windowsize(const struct menu_st *m, int *query)