├── .gitignore ├── assets └── .add_decompiled_files_here ├── love.self ├── sce_sys ├── icon0.png └── livearea │ └── contents │ ├── bg.png │ ├── startup.png │ └── template.xml ├── module ├── libGLESv2.suprx ├── libIMGEGL.suprx ├── libgpu_es4_ext.suprx └── libpvrPSP2_WSEGL.suprx ├── CMakeLists.txt └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | module/ 3 | -------------------------------------------------------------------------------- /assets/.add_decompiled_files_here: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /love.self: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Daexxxx/Balatro-Vita/HEAD/love.self -------------------------------------------------------------------------------- /sce_sys/icon0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Daexxxx/Balatro-Vita/HEAD/sce_sys/icon0.png -------------------------------------------------------------------------------- /module/libGLESv2.suprx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Daexxxx/Balatro-Vita/HEAD/module/libGLESv2.suprx -------------------------------------------------------------------------------- /module/libIMGEGL.suprx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Daexxxx/Balatro-Vita/HEAD/module/libIMGEGL.suprx -------------------------------------------------------------------------------- /module/libgpu_es4_ext.suprx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Daexxxx/Balatro-Vita/HEAD/module/libgpu_es4_ext.suprx -------------------------------------------------------------------------------- /module/libpvrPSP2_WSEGL.suprx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Daexxxx/Balatro-Vita/HEAD/module/libpvrPSP2_WSEGL.suprx -------------------------------------------------------------------------------- /sce_sys/livearea/contents/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Daexxxx/Balatro-Vita/HEAD/sce_sys/livearea/contents/bg.png -------------------------------------------------------------------------------- /sce_sys/livearea/contents/startup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Daexxxx/Balatro-Vita/HEAD/sce_sys/livearea/contents/startup.png -------------------------------------------------------------------------------- /sce_sys/livearea/contents/template.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | bg.png 6 | 7 | 8 | startup.png 9 | 10 | 11 | 12 | 13 | Made with LÖVE 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.28.1) 2 | 3 | if(DEFINED ENV{VITASDK}) 4 | message(STATUS "Detected VITASDK: $ENV{VITASDK}") 5 | set(CMAKE_TOOLCHAIN_FILE "$ENV{VITASDK}/share/vita.toolchain.cmake" CACHE PATH "toolchain file") 6 | else() 7 | message(FATAL_ERROR "Please define VITASDK to point to your SDK path!") 8 | endif() 9 | 10 | include("$ENV{VITASDK}/share/vita.cmake" REQUIRED) 11 | 12 | project(Balatro) 13 | 14 | set(TARGET_NAME ${PROJECT_NAME}) 15 | 16 | set(VITA_APP_NAME "Balatro") 17 | set(VITA_TITLEID "BLTR00001") 18 | set(VITA_VERSION "01.00") 19 | set(VITA_MKSFOEX_FLAGS "${VITA_MKSFOEX_FLAGS} -d PARENTAL_LEVEL=1") 20 | set(VITA_MKSFOEX_FLAGS "${VITA_MKSFOEX_FLAGS} -d ATTRIBUTE2=12") 21 | 22 | function(create_zip output_file input_files working_dir) 23 | add_custom_command( 24 | COMMAND ${CMAKE_COMMAND} -E tar "cf" "${output_file}" --format=zip -- ${input_files} 25 | WORKING_DIRECTORY "${working_dir}" 26 | OUTPUT "${output_file}" 27 | DEPENDS ${input_files} 28 | COMMENT "Zipping to ${output_file}." 29 | ) 30 | endfunction() 31 | 32 | file(GLOB ZIP_FILES "${CMAKE_CURRENT_SOURCE_DIR}/assets/*") 33 | create_zip("${CMAKE_BINARY_DIR}/game.love" "${ZIP_FILES}" "${CMAKE_CURRENT_SOURCE_DIR}/assets") 34 | 35 | vita_create_vpk(${PROJECT_NAME}.vpk ${VITA_TITLEID} ${CMAKE_SOURCE_DIR}/love.self 36 | VERSION ${VITA_VERSION} 37 | NAME ${VITA_APP_NAME} 38 | FILE sce_sys sce_sys 39 | FILE module module 40 | FILE ${CMAKE_BINARY_DIR}/game.love game.love 41 | ) 42 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Balatro Port for the PS VITA 2 | 3 | === 4 | #### YOU HAVE TO LEGALLY OWN A COPY OF BALATRO ON STEAM TO PLAY THIS PORT. 5 | #### OVERLCLOCKING IS VERY STRONGLY RECOMMENDED. 6 | #### WE HAVEN'T TRIED ANY CRAZY RUNS AND DON'T KNOW HOW THE VITA HANLDLES IT 7 | === 8 | 9 | Credits to isage ([Github](https://github.com/isage), [Reddit](https://reddit.com/user/isage_dna)) for the original LÖVE engine port to the Vita used in his [Mari0 port](https://github.com/isage/Mari0-vita) :) 10 | 11 | Credits to Jafeth ([Github](https://github.com/Jafeth12), [Reddit](https://www.reddit.com/user/Skrubaso/)) for helping a lot with actually porting the game. 12 | 13 | ## Known issues, currently being worked on: 14 | - Flame shader not working. 15 | - Game runs at around 20fps. 16 | - Shaders take a long time to compile. 17 | - Touchscreen does not work. 18 | 19 | ## Instructions to apply port 20 | 21 | - Download both the VPK and the ZIP file included in the latest Release. 22 | - Extract the zip file wherever you want. 23 | - Copy Balatro.exe (YOUR_STEAM_INSTALLATION_PATH/steamapps/common/Balatro/Balatro.exe) to the folder where the extracted zip resides. 24 | 25 | #### IF YOU'RE ON WINDOWS: 26 | 27 | - Execute windows_patch.bat to apply the patch. 28 | 29 | #### IF YOU'RE ON UNIX (LINUX/MAC): 30 | 31 | - Install xdelta3 using your packet manager of choice (PATCH WILL NOT APPLY PROPERLY IF ANY OTHER VERSION OF IS USED, HAS TO BE xdelta3). 32 | - Mac (using brew): ```brew install xdelta``` (we dont have mac, we cant try this out. if any mac user can confirm this does actually install xdelta3 and works it would be appreciated) 33 | - Debian/Ubuntu: ```sudo apt install xdelta3``` 34 | - Arch: ```sudo pacman -Syu xdelta3``` 35 | - Fedora: ```sudo dnf install xdelta``` 36 | - Execute unix_patch.sh to apply the patch. 37 | 38 | 39 | #### AFTER PATCHING: 40 | 41 | - In your Vita, open VitaShell to connect the console with your PC and copy both the VPK and the patched _game.love_ file. 42 | - Install the VPK on your Vita. 43 | - Copy the _game.love_ file to ux0:/app/BALA00001/ 44 | - Enjoy! 45 | > To use other languages follow [this](https://www.reddit.com/r/VitaPiracy/s/PnIFvNg45C) reddit comment. 46 | 47 | **If you want to support me you can leave a tip on my patreon: https://patreon.com/daexxx/** 48 | 49 | [![Star History Chart](https://api.star-history.com/svg?repos=Daexxxx/Balatro-Vita&type=Date)](https://www.star-history.com/#Daexxxx/Balatro-Vita&Date) 50 | --------------------------------------------------------------------------------