filename | src/loader.c |
changeset | 1036:af7b0c5905dd |
prev | 825:2ac7ceccd775 |
next | 1075:1a21750d300c |
author | nkeynes |
date | Thu Jun 25 01:15:25 2009 +0000 (14 years ago) |
permissions | -rw-r--r-- |
last change | Move configuration to .lxdream/lxdreamrc on *nix, Library/Application Support/Lxdream on OS X Create standard directories on first run Add current quick state to config file Refactor quick-state handling into dreamcast.c, and use the save directory |
file | annotate | diff | log | raw |
1.1 --- a/src/loader.c Sun Aug 24 01:58:09 2008 +00001.2 +++ b/src/loader.c Thu Jun 25 01:15:25 2009 +00001.3 @@ -107,17 +107,19 @@1.5 void file_load_postload( const gchar *filename, int pc )1.6 {1.7 - const gchar *bootstrap_file = lxdream_get_config_value(CONFIG_BOOTSTRAP);1.8 + gchar *bootstrap_file = lxdream_get_global_config_path_value(CONFIG_BOOTSTRAP);1.9 if( bootstrap_file != NULL && bootstrap_file[0] != '\0' ) {1.10 /* Load in a bootstrap before the binary, to initialize everything1.11 * correctly1.12 */1.13 if( mem_load_block( bootstrap_file, BOOTSTRAP_LOAD_ADDR, BOOTSTRAP_SIZE ) == 0 ) {1.14 dreamcast_program_loaded( filename, BOOTSTRAP_LOAD_ADDR+0x300 );1.15 + g_free(bootstrap_file);1.16 return;1.17 }1.18 }1.19 dreamcast_program_loaded( filename, pc );1.20 + g_free(bootstrap_file);1.21 }
.