commit 61e524a3b59bd91ce113510f9f71659a11a923c9
Author: jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Tue May 11 21:59:10 2021 -0600
Commit: jtothebell <j.to.the.bell@gmail.com>
CommitDate: Tue May 11 21:59:10 2021 -0600
fix wii u build
---
platform/wiiu/source/WiiUHost.cpp | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/platform/wiiu/source/WiiUHost.cpp b/platform/wiiu/source/WiiUHost.cpp
index 24aeed9..d45d1c0 100644
--- a/platform/wiiu/source/WiiUHost.cpp
+++ b/platform/wiiu/source/WiiUHost.cpp
@@ -183,6 +183,7 @@ Host::Host() {
}
_logFilePrefix = "fs:/vol/external01/wiiu/apps/fake08/";
+ _cartDirectory = "fs:/vol/external01/p8carts";
}
void Host::setPlatformParams(
@@ -192,7 +193,8 @@ Host::Host() {
uint32_t sdlRendererFlags,
uint32_t sdlPixelFormat,
std::string logFilePrefix,
- std::string customBiosLua) {}
+ std::string customBiosLua,
+ std::string cartDirectory) {}
void Host::oneTimeSetup(Color* paletteColors, Audio* audio){
@@ -533,7 +535,7 @@ vector<string> Host::listcarts(){
if (dir != NULL) {
/* print all the files and directories within directory */
while ((ent = readdir (dir)) != NULL) {
- carts.push_back(fullCartDir + "/" + ent->d_name);
+ carts.push_back(_cartDirectory + "/" + ent->d_name);
}
closedir (dir);
} else {
@@ -554,3 +556,7 @@ std::string Host::customBiosLua() {
"pausebtn = \"+\"";
}
+std::string Host::getCartDirectory() {
+ return _cartDirectory;
+}
+