foxygit / fake-08-xbox360 Log in
commit fa1d0c372ce1c6374edea895d7bd9f1024f023b4
Author:     Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Tue Jan 13 19:53:01 2026 -0700
Commit:     Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Tue Jan 13 19:53:01 2026 -0700

    improve p8 -> p8.png fallback
---
 source/cart.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/cart.cpp b/source/cart.cpp
index 175fe60..0fc8676 100644
--- a/source/cart.cpp
+++ b/source/cart.cpp
@@ -469,7 +469,7 @@ Cart::Cart(std::string filename, std::string cartDirectory){

     std::string firstFourChars = get_first_four_chars(FullCartPath);

-    if (fileExtension == "" && firstFourChars.length() == 0) {
+    if ((fileExtension == "" || fileExtension == ".p8") && firstFourChars.length() == 0) {
         //fallback for cart loading by key - support .p8 and .p8.png
         filename = filename + ".png";
         // Rebuild full path with cart directory (same logic as initial path build)