mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Fix #4493 in a less incompatible way
This commit is contained in:
parent
4b476cfe5f
commit
6ff36461b4
3 changed files with 6 additions and 3 deletions
|
@ -36,6 +36,7 @@
|
|||
#endif
|
||||
|
||||
#include "core.h"
|
||||
#include "content.h"
|
||||
#include "dynamic.h"
|
||||
#include "msg_hash.h"
|
||||
#include "managers/state_manager.h"
|
||||
|
@ -285,8 +286,10 @@ bool core_load_game(retro_ctx_load_content_info_t *load_info)
|
|||
load_info->special->id, load_info->info, load_info->content->size);
|
||||
else if (load_info && !string_is_empty(load_info->content->elems[0].data))
|
||||
core_game_loaded = core.retro_load_game(load_info->info);
|
||||
else
|
||||
else if (content_does_not_need_content())
|
||||
core_game_loaded = core.retro_load_game(NULL);
|
||||
else
|
||||
core_game_loaded = false;
|
||||
|
||||
return core_game_loaded;
|
||||
}
|
||||
|
|
|
@ -886,8 +886,6 @@ static void retroarch_parse_input(int argc, char *argv[])
|
|||
retroarch_set_current_core_type(CORE_TYPE_PLAIN, false);
|
||||
path_set_special(argv + optind, argc - optind);
|
||||
}
|
||||
else
|
||||
content_set_does_not_need_content();
|
||||
|
||||
/* Copy SRM/state dirs used, so they can be reused on reentrancy. */
|
||||
if (retroarch_override_setting_is_set(RARCH_OVERRIDE_SETTING_SAVE_PATH, NULL) &&
|
||||
|
|
|
@ -919,6 +919,7 @@ error:
|
|||
*error_string = strdup(msg);
|
||||
}
|
||||
}
|
||||
if (string_is_empty(name)) *error_string = strdup("This core requires a content file.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1276,6 +1277,7 @@ error:
|
|||
if (error_string)
|
||||
{
|
||||
runloop_msg_queue_push(error_string, 2, 90, true);
|
||||
RARCH_ERR(error_string);
|
||||
free(error_string);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue