14.05.2010

parent 097f1969
......@@ -910,6 +910,7 @@ static int real_main2 (int argc, char **argv)
init_m68k(); /* must come after reset_frame_rate_hack (); */
gui_update ();
target_startup_sequence(&currprefs);
if (graphics_init ()) {
#ifdef DEBUGGER
......
......@@ -763,3 +763,27 @@ uae_u8 *save_log (int bootlog, int *len)
}
return dst;
}
// --- win32gui.c
#define MAX_ROM_PATHS 10
int scan_roms (int show)
{
TCHAR path[MAX_DPATH];
static int recursive;
int id, i, ret, keys, cnt;
TCHAR *paths[MAX_ROM_PATHS];
if (recursive)
return 0;
recursive++;
//FIXME:
cnt = 0;
ret = 0;
for (i = 0; i < MAX_ROM_PATHS; i++)
paths[i] = NULL;
end:
recursive--;
return ret;
}
......@@ -146,3 +146,9 @@ int target_parse_option (struct uae_prefs *p, const char *option, const char *va
void target_default_options (struct uae_prefs *p)
{
}
void target_startup_sequence (struct uae_prefs *p)
{
scan_roms (1);
}
......@@ -115,3 +115,9 @@ int target_parse_option (struct uae_prefs *p, const char *option, const char *va
void target_default_options (struct uae_prefs *p)
{
}
void target_startup_sequence (struct uae_prefs *p)
{
scan_roms (1);
}
......@@ -64,3 +64,8 @@ int target_parse_option (struct uae_prefs *p, const char *option, const char *va
void target_default_options (struct uae_prefs *p)
{
}
void target_startup_sequence (struct uae_prefs *p)
{
scan_roms (1);
}
......@@ -404,3 +404,9 @@ void target_default_options (struct uae_prefs *p)
{
p->use_gl = 1;
}
void target_startup_sequence (struct uae_prefs *p)
{
scan_roms (1);
}
......@@ -244,3 +244,9 @@ int target_parse_option (struct uae_prefs *p, const char *option, const char *va
void target_default_options (struct uae_prefs *p)
{
}
void target_startup_sequence (struct uae_prefs *p)
{
scan_roms (1);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment