Skip to content

Commit

Permalink
wii: Hardcode absolute directory path
Browse files Browse the repository at this point in the history
The game now looks for files in a `RSDKv5` folder at the root
of the SD card. This will prevent issues with forwarders and
other homebrews that don't change directories before loading
the executable file.
  • Loading branch information
Mefiresu committed Oct 27, 2022
1 parent 00b96f3 commit cfa4976
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RSDKv5/RSDK/User/Core/UserStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,10 @@ void RSDK::SKU::InitUserDirectory()

SKU::SetUserFileCallbacks("./", NULL, NULL);

#elif RETRO_PLATFORM == RETRO_WII

SKU::SetUserFileCallbacks(BASE_PATH, NULL, NULL);

#else

SKU::SetUserFileCallbacks("", NULL, NULL);
Expand Down
3 changes: 3 additions & 0 deletions makefiles/Wii.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
STATIC = 1
STATICGAME = 1

# Path where data will be stored/read from
BASE_PATH=/RSDKv5/

ifeq ($(RSDK_ONLY),1)
$(error RSDK_ONLY must not be defined for Wii builds)
endif
Expand Down

0 comments on commit cfa4976

Please sign in to comment.