Search
lxdream.org :: lxdream :: r1253:5aa14eeaad5a
lxdream 0.9.1
released Jun 29
Download Now
changeset1253:5aa14eeaad5a
parent1252:2fb29172ee79
child1254:1ca50e1330cd
authornkeynes
dateSun Mar 04 20:47:14 2012 +1000 (7 years ago)
Load previous GD-ROM on startup
src/gui_android.c
1.1 --- a/src/gui_android.c Sat Mar 03 16:16:57 2012 +1000
1.2 +++ b/src/gui_android.c Sun Mar 04 20:47:14 2012 +1000
1.3 @@ -235,6 +235,19 @@
1.4 hotkeys_init();
1.5 serial_init();
1.6 maple_reattach_all();
1.7 +
1.8 + ERROR err;
1.9 + gchar *disc_file = lxdream_get_global_config_path_value( CONFIG_GDROM );
1.10 + if( disc_file != NULL ) {
1.11 + gboolean ok = gdrom_mount_image( disc_file, &err );
1.12 + g_free(disc_file);
1.13 + if( !ok ) {
1.14 + WARN( err.msg );
1.15 + } else {
1.16 + INFO( "Mounted %s", disc_file );
1.17 + }
1.18 + }
1.19 +
1.20 INFO( "%s! ready...", APP_NAME );
1.21 android_start_thread();
1.22 }
.