diff --git a/32blit-pico/blit_launch.cpp b/32blit-pico/blit_launch.cpp index a54c5453d..df724aea8 100644 --- a/32blit-pico/blit_launch.cpp +++ b/32blit-pico/blit_launch.cpp @@ -189,8 +189,6 @@ static std::string get_file_ext(const char *path) { return ext; } -#endif - static bool cleanup_duplicates(RawMetadata &meta, uint32_t new_offset) { bool ret = false; for(uint32_t off = 0; off < flash_end;) { @@ -218,6 +216,8 @@ static bool cleanup_duplicates(RawMetadata &meta, uint32_t new_offset) { return ret; } +#endif + // 32blit API RawMetadata *get_running_game_metadata() { @@ -535,6 +535,9 @@ void *get_type_handler_metadata(const char *filetype) { const char *get_launch_path() { #ifdef BUILD_LOADER + if(!launch_path[0]) + return nullptr; + return launch_path; #else return nullptr;