Skip to content

Commit

Permalink
offline zip unpack
Browse files Browse the repository at this point in the history
from /mnt/usb0/ or /data/
  • Loading branch information
bucanero committed Jul 5, 2022
1 parent 7c1b7b4 commit 61ae63c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 18 deletions.
29 changes: 12 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
git clone https://github.com/bucanero/oosdk_libraries.git --depth 1
git clone https://github.com/bucanero/mxml --depth 1
git clone https://github.com/bucanero/cJSON --depth 1
git clone https://github.com/Al-Azif/ps4-skeleton.git --depth 1
git clone https://github.com/bucanero/ps4-libjbc --depth 1
git clone https://github.com/bucanero/SDL-PS4 -b ps4 --depth 1
git clone https://github.com/GoldHEN/GoldHEN_Cheat_Repository --depth 1
- name: Set env vars
Expand Down Expand Up @@ -55,51 +56,45 @@ jobs:
- name: Install zlib
working-directory: oosdk_libraries/zlib_partial
run: |
make
make install
- name: Install polarssl
working-directory: oosdk_libraries/polarssl-1.3.9
run: |
make
make install
- name: Install zip
working-directory: zip
run: |
make
make install
- name: Install dbglogger
working-directory: dbglogger
run: |
make -f Makefile.PS4
make -f Makefile.PS4 install
- name: Install apollo-lib
working-directory: apollo-lib
run: |
make -f Makefile.PS4
make -f Makefile.PS4 install
- name: Install mini xml
working-directory: mxml/ps4
run: |
make
make install
- name: Install cjson
working-directory: cJSON/ps4
run: |
make
make install
- name: Install libjbc
run: cp -rf ps4-skeleton/libs/* "${OO_PS4_TOOLCHAIN}/lib"
working-directory: ps4-libjbc
run: |
make install
# temporary until sdl2 can installed
- name: copy SDL2 bin to SDK dir
run: curl -fL "https://cdn.discordapp.com/attachments/470415443115376643/959988630812762152/libSDL2.a" -o "${OO_PS4_TOOLCHAIN}/lib/libSDL2.a"
- name: Install SDL2 library
working-directory: SDL-PS4
run: |
mkdir orbis && cd orbis
cmake --toolchain ../cmake/openorbis.cmake ..
make
cp libSDL2.a "${OO_PS4_TOOLCHAIN}/lib"
- name: Build Gold Cheats App Package
run: |
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ All notable changes to the `GoldHEN Cheats Manager` project will be documented i

## [Unreleased]()

## [v0.7.0](https://github.com/GoldHEN/GoldHEN_Cheat_Manager/releases/tag/v0.7.0) - 2022-07-05

### Added

- Installed Game list filter to show only available cheats
- Offline cheat pack (.zip) installation from USB/HDD
- /mnt/usb0/GoldHEN_Cheat_Repository-main.zip
- /data/GoldHEN_Cheat_Repository-main.zip

## [v0.6.0](https://github.com/GoldHEN/GoldHEN_Cheat_Manager/releases/tag/v0.6.0) - 2022-04-07

### Added
Expand Down
8 changes: 7 additions & 1 deletion source/cheats.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,13 @@ int ReadOnlineSaves(game_entry_t * game)

list_t * ReadBackupList(const char* userPath)
{
if (http_download("https://github.com/GoldHEN/GoldHEN_Cheat_Repository/archive/refs/heads/", "main.zip", GOLDCHEATS_LOCAL_CACHE "appdata.zip", 1))
if (extract_zip_gh("/mnt/usb0/GoldHEN_Cheat_Repository-main.zip", GOLDCHEATS_DATA_PATH))
show_message("Successfully installed offline data from USB");

else if (extract_zip_gh("/data/GoldHEN_Cheat_Repository-main.zip", GOLDCHEATS_DATA_PATH))
show_message("Successfully installed offline data from HDD");

else if (http_download("https://github.com/GoldHEN/GoldHEN_Cheat_Repository/archive/refs/heads/", "main.zip", GOLDCHEATS_LOCAL_CACHE "appdata.zip", 1))
{
int ret = extract_zip_gh(GOLDCHEATS_LOCAL_CACHE "appdata.zip", GOLDCHEATS_DATA_PATH);

Expand Down

0 comments on commit 61ae63c

Please sign in to comment.