foxygit / fake-08-xbox360 Log in
commit f5bac12035835d62bf162783e734aa938c187d8b
Author:     mrfox <jens.se@icloud.com>
AuthorDate: Wed Nov 25 19:05:25 2026 +0100
Commit:     mrfox <jens.se@icloud.com>
CommitDate: Wed Nov 25 19:05:25 2026 +0100

    xex host: carts from the roms folder next to the XEX

    Carts are read from game:/roms (created on the first start) instead of a
    p8carts folder searched for on USB and the hard disk.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---
 platform/xex/README.md          | 11 +++++------
 platform/xex/source/XexHost.cpp | 13 ++++---------
 2 files changed, 9 insertions(+), 15 deletions(-)

diff --git a/platform/xex/README.md b/platform/xex/README.md
index e560f7f..c9d773b 100644
--- a/platform/xex/README.md
+++ b/platform/xex/README.md
@@ -44,12 +44,11 @@ read-only, so file writes only work on a console.
 ## FAKE-08

 Copy `build/fake08/default.xex` into a folder of its own (for example
-`Hdd1:\Apps\FAKE-08\`) and add it to Aurora. Carts are read from the
-first `p8carts` folder found: next to the XEX, then `usb0:`-`usb2:`, then
-the hard disk root (`Hdd1:\p8carts`); without one, `p8carts` is created
-next to the XEX. Settings, saves (`cdata`) and `pico.log` go to a `fake08`
-folder next to the XEX (or `hdd:\fake08`, or `cache:` in Xenia, when that
-folder is read-only).
+`Hdd1:\Apps\FAKE-08\`) and add it to Aurora. Carts go in the `roms` folder
+next to it (`Hdd1:\Apps\FAKE-08\roms\`, created on the first start;
+subfolders can be browsed). Settings, saves (`cdata`) and `pico.log` go to a
+`fake08` folder next to the XEX (or `hdd:\fake08`, or `cache:` in Xenia, when
+that folder is read-only).

 | Controller | |
 |---|---|
diff --git a/platform/xex/source/XexHost.cpp b/platform/xex/source/XexHost.cpp
index c4acf15..406545d 100644
--- a/platform/xex/source/XexHost.cpp
+++ b/platform/xex/source/XexHost.cpp
@@ -280,16 +280,11 @@ static bool dirExists(const std::string &path) {
     return false;
 }

-// Carts: a p8carts folder next to the XEX, else on a USB drive or the hard
-// disk. Settings, saves and the log stay next to the XEX (game:/fake08).
+// Carts: the roms folder next to the XEX (created when missing). Settings,
+// saves and the log stay next to the XEX too (game:/fake08).
 static std::string findCartDirectory() {
-    static const char *const roots[] = {"game:/", "usb0:/", "usb1:/", "usb2:/", "hdd:/"};
-    for (const char *root : roots) {
-        std::string dir = std::string(root) + "p8carts";
-        if (dirExists(dir)) return dir;
-    }
-    std::string dir = "game:/p8carts";
-    mkdir(dir.c_str(), 0777);
+    std::string dir = "game:/roms";
+    if (!dirExists(dir)) mkdir(dir.c_str(), 0777);
     return dir;
 }