From b4ec7ab4711611ffacc6dbbcbafe6eb252a022b0 Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Thu, 12 Mar 2026 12:38:51 +0000 Subject: [PATCH 1/2] pico: additional warning fix in blit_launch --- 32blit-pico/blit_launch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/32blit-pico/blit_launch.cpp b/32blit-pico/blit_launch.cpp index a54c5453d..05c0c58b3 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() { From 4c03abe4498e4900a5d4b1158380a79343c1a12c Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Thu, 12 Mar 2026 12:49:46 +0000 Subject: [PATCH 2/2] pico: get_launch_path should return null if there is no path --- 32blit-pico/blit_launch.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/32blit-pico/blit_launch.cpp b/32blit-pico/blit_launch.cpp index 05c0c58b3..df724aea8 100644 --- a/32blit-pico/blit_launch.cpp +++ b/32blit-pico/blit_launch.cpp @@ -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;