Skip to content

Commit

Permalink
push wii u build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtleP committed May 13, 2023
1 parent c9240b0 commit a10501c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions include/utilities/driver/renderer/renderstate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <string>
#include <vector>

#include <cstdint>

namespace love
{
namespace RenderState
Expand Down
9 changes: 5 additions & 4 deletions source/modules/filesystem/physfs/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#include <3ds.h>
#elif defined(__SWITCH__)
#include <switch.h>
#elif defined(__WIIU__)
#include <coreinit/dynload.h>
#endif

#include <unistd.h>
Expand All @@ -23,10 +25,6 @@

using namespace love::physfs;

#if defined(__WIIU__)
#include <coreinit/dynload.h>
#endif

#include <utilities/log/logfile.hpp>

static std::string getApplicationPath(std::string origin)
Expand Down Expand Up @@ -138,6 +136,9 @@ void Filesystem::Init(const char* arg0)
if (this->executablePath.empty())
throw love::Exception("Failed to get executable path.");

if (Console::Is(Console::CAFE))
this->executablePath = "/vol/content/game.zip";

if (!PHYSFS_init(this->executablePath.c_str()))
throw love::Exception("Failed to initialize filesystem: %s", Filesystem::GetLastError());

Expand Down

0 comments on commit a10501c

Please sign in to comment.