Skip to content

Commit

Permalink
A couple bug fixes
Browse files Browse the repository at this point in the history
- Fixed Vita save bug (the save folder wasn't being created automatically, which wasn't a problem before, but it's no longer included in the download)
- Fixed Touch Screen option being missing from Vita and Wii U due to a missing define
  • Loading branch information
Mode8fx committed May 1, 2024
1 parent 4e89103 commit 723659c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions SuDokuLVS2019/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ find_package(PkgConfig REQUIRED)
if (WIIU)
include("${DEVKITPRO}/wut/share/wut.cmake" REQUIRED)
add_definitions(-DWII_U)
add_definitions(-DMOUSE_INPUT)

target_link_libraries(sudokul -L${DEVKITPRO}/portlibs/wiiu/lib -L${DEVKITPRO}/portlibs/ppc/lib -L${DEVKITPRO}/wut/lib)
# pkg_check_modules(SDL2 REQUIRED IMPORTED_TARGET SDL2)
Expand Down Expand Up @@ -144,6 +145,7 @@ if (WIIU)
elseif (VITA)
include("${VITASDK}/share/vita.cmake" REQUIRED)
add_definitions(-DVITA)
add_definitions(-DMOUSE_INPUT)

set(VITA_APP_NAME "SuDokuL")
set(VITA_TITLEID "SDKL39690")
Expand Down
1 change: 1 addition & 0 deletions SuDokuLVS2019/src/include.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <whb/proc.h>
#elif defined(VITA)
#include <psp2/kernel/processmgr.h>
#include <sys/stat.h>
#elif defined(SWITCH)
#include <switch.h>
#elif defined(PSP)
Expand Down
2 changes: 1 addition & 1 deletion SuDokuLVS2019/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ int main(int argv, char** args) {
#else
SET_TEXT_WITH_OUTLINE_ANIMATED("Press Enter", text_PressStart, OBJ_TO_MID_SCREEN_X(text_PressStart), TEXT_PRESS_START_Y);
#endif
SET_TEXT_WITH_OUTLINE_ANIMATED("v1.31", text_Version_Number, (gameWidth - (text_Version_Number.rect.w * 1.25)), TEXT_VERSION_NUMBER_Y);
SET_TEXT_WITH_OUTLINE_ANIMATED("v1.32", text_Version_Number, (gameWidth - (text_Version_Number.rect.w * 1.25)), TEXT_VERSION_NUMBER_Y);
if (compactDisplay) {
text_Version_Number.endPos_x = text_Version_Number.startPos_x + (gameWidth * 6 / 32);
} else {
Expand Down
2 changes: 2 additions & 0 deletions SuDokuLVS2019/src/shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Sint64 seekPos;
void loadSettingsFile() {
#if defined(LINUX)
mkdir((string(getenv("HOME")) + "/.sudokul").c_str(), 0777);
#elif defined(VITA)
mkdir("ux0:data/SuDokuL", 0777);
#endif
settingsFile = SDL_RWFromFile(SETTINGS_FILE, "rb");
if (settingsFile == NULL) {
Expand Down

0 comments on commit 723659c

Please sign in to comment.