commit abaae30647435fce80f07679170333201f8224f8
Author: Jon Bell <jondbell@protonmail.com>
AuthorDate: Mon Jun 8 13:52:39 2020 -0600
Commit: Jon Bell <jondbell@protonmail.com>
CommitDate: Mon Jun 8 13:52:39 2020 -0600
Use absolute cart path
---
platform/3ds/source/3dsHost.cpp | 4 ++--
platform/switch/source/SwitchHost.cpp | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/platform/3ds/source/3dsHost.cpp b/platform/3ds/source/3dsHost.cpp
index 47eaa63..380d2a7 100644
--- a/platform/3ds/source/3dsHost.cpp
+++ b/platform/3ds/source/3dsHost.cpp
@@ -376,10 +376,10 @@ bool Host::mainLoop(){
vector<string> Host::listcarts(){
vector<string> carts;
- DIR* dir = opendir("p8carts");
+ DIR* dir = opendir("/p8carts");
if (dir) {
- for(auto& p: fs::directory_iterator("p8carts")){
+ for(auto& p: fs::directory_iterator("/p8carts")){
auto ext = p.path().extension().string();
if (ext == ".p8"){
carts.push_back(p.path().string());
diff --git a/platform/switch/source/SwitchHost.cpp b/platform/switch/source/SwitchHost.cpp
index e31d9ee..f36a2a5 100644
--- a/platform/switch/source/SwitchHost.cpp
+++ b/platform/switch/source/SwitchHost.cpp
@@ -317,10 +317,10 @@ bool Host::mainLoop(){
vector<string> Host::listcarts(){
vector<string> carts;
- DIR* dir = opendir("p8carts");
+ DIR* dir = opendir("/p8carts");
if (dir) {
- for(auto& p: fs::directory_iterator("p8carts")){
+ for(auto& p: fs::directory_iterator("/p8carts")){
auto ext = p.path().extension().string();
if (ext == ".p8"){
carts.push_back(p.path().string());