diff --git a/src/console.c b/src/console.c index 0bdcbd2..a366925 100644 --- a/src/console.c +++ b/src/console.c @@ -2574,7 +2574,7 @@ static void cmdLoadCart(Console* console, const char* name) if(data) { #if defined(TIC80_PRO) - if(strstr(name, PROJECT_EXT) == name + strlen(name) - strlen(PROJECT_EXT)) + if(hasExt(name, PROJECT_EXT)) { loadProject(console, data, size, &embed.file); }