Check info->path for nullptr

This commit is contained in:
Jesse Talavera 2024-03-05 16:47:45 -05:00
parent b52a2f2359
commit 6165b2d389

View File

@ -87,7 +87,7 @@ PUBLIC_SYMBOL bool retro_load_game(const struct retro_game_info *info) {
ZoneScopedN(TracyFunction);
if (info) {
ZoneText(info->path, strlen(info->path));
retro::debug("retro_load_game(\"{}\", {})", info->path, info->size);
retro::debug("retro_load_game(\"{}\", {})", info->path ? info->path : "", info->size);
}
else {
retro::debug("retro_load_game(<no content>)");