Skip to content

Commit

Permalink
update settings
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Nov 5, 2022
1 parent b2ee89b commit cd95fa6
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 13 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,30 @@ All notable changes to the `apollo-ps4` project will be documented in this file.

## [Unreleased]()

## [v1.2.2](https://github.com/bucanero/apollo-ps4/releases/tag/v1.2.2) - 2022-11-05

### Changes

* New Save Wizard codes
* Custom decryption support
* Diablo 3
* Changed background music
* Removed unused screen settings

### Patch Engine

* Updated Apollo patch engine v0.3.0
* Improve patch error handling
* Save Wizard / Game Genie
* Improve SW code types 9, A
* Add SW code types 3, 7, B, C, D
* BSD scripts
* New commands: `copy`, `endian_swap`, `msgbox`
* New custom hash: `force_crc32`, `mgspw_checksum`
* Support initial value for `add/wadd/dwadd/wsub`
* Fix `md5_xor`, `sha1_xor64` custom hashing
* Fix little-endian support for decrypters/hashes

## [v1.2.0](https://github.com/bucanero/apollo-ps4/releases/tag/v1.2.0) - 2022-05-05

### Added
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package metadata.
TITLE := Apollo Save Tool
VERSION := 01.20
VERSION := 01.22
TITLE_ID := APOL00004
CONTENT_ID := IV0000-APOL00004_00-APOLLO0000000PS4

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ Currently, the list of available games and files is limited, but the project aim

# Credits

* [Bucanero](http://www.bucanero.com.ar/): Project developer
* [Bucanero](http://www.bucanero.com.ar/): [Project developer](https://github.com/bucanero)

### PS3 version credits
## Acknowledgments

* [Dnawrkshp](https://github.com/Dnawrkshp/): [Artemis PS3](https://github.com/Dnawrkshp/ArtemisPS3)
* [Berion](https://www.psx-place.com/members/berion.1431/): GUI design
* [flatz](https://github.com/flatz): [SFO/PFD tools](https://github.com/bucanero/pfd_sfo_tools/)
* [flatz](https://github.com/flatz): [SFO tools](https://github.com/bucanero/pfd_sfo_tools/)
* [aldostools](https://aldostools.org/): [Bruteforce Save Data](https://bruteforcesavedata.forumms.net/)
* [aluigi](http://aluigi.org): [offzip/packzip](http://aluigi.altervista.org/mytoolz.htm)
* [Nobody/Wild Light](https://github.com/nobodo): [Background music track](https://github.com/bucanero/apollo-vita/blob/main/data/haiku.s3m)

# Building

Expand All @@ -156,10 +156,10 @@ UDP multicast address `239.255.0.100:30000`. To receive them you can use [socat]

# License

[Apollo Save Tool](https://github.com/bucanero/apollo-ps4/) (PS4) - Copyright (C) 2020-2022 Damian Parrino
[Apollo Save Tool](https://github.com/bucanero/apollo-ps4/) (PS4) - Copyright (C) 2020-2022 [Damian Parrino](https://twitter.com/dparrino)

This program is free software: you can redistribute it and/or modify
it under the terms of the [GNU General Public License](LICENSE) as published by
it under the terms of the [GNU General Public License][app_license] as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Expand Down
17 changes: 17 additions & 0 deletions appdata/CUSA00242.savepatch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
; CUSA07823
; PS4 Diablo III
; by bucanero

:account.dat

[Decrypt account.dat (Required)]
set range:0x000000,eof+1
DECRYPT diablo3

;
; cheat codes go here
;

[Encrypt account.dat (Required)]
set range:0x000000,eof+1
ENCRYPT diablo3
6 changes: 3 additions & 3 deletions include/settings.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#define APOLLO_VERSION "1.2.0" //Apollo PS4 version (about menu)
#define APOLLO_DATA_VERSION 2
#define APOLLO_VERSION "1.2.2" //Apollo PS4 version (about menu)

#define MENU_TITLE_OFF 45 //Offset of menu title text from menu mini icon
#define MENU_ICON_OFF 105 //X Offset to start printing menu mini icon
Expand Down Expand Up @@ -27,12 +26,13 @@ typedef struct

typedef struct
{
char app_name[8];
char app_ver[8];
uint8_t music;
uint8_t doSort;
uint8_t doAni;
uint8_t update;
uint32_t user_id;
uint32_t packver;
uint64_t psid[2];
uint64_t account_id;
} app_config_t;
Expand Down
8 changes: 5 additions & 3 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,13 @@ void update_hdd_path(char *p);
void update_trophy_path(char *p);

app_config_t apollo_config = {
.app_name = "APOLLO",
.app_ver = {0},
.music = 1,
.doSort = 1,
.doAni = 1,
.update = 1,
.user_id = 0,
.packver = 0,
.psid = {0, 0},
.account_id = 0,
};
Expand Down Expand Up @@ -1374,13 +1375,14 @@ s32 main(s32 argc, const char* argv[])
load_app_settings(&apollo_config);

// Unpack application data on first run
if (apollo_config.packver < APOLLO_DATA_VERSION)
if (strncmp(apollo_config.app_ver, APOLLO_VERSION, sizeof(apollo_config.app_ver)) != 0)
{
LOG("Unpacking application data...");
// clean_directory(APOLLO_DATA_PATH);
if (extract_zip(APOLLO_APP_PATH "misc/appdata.zip", APOLLO_DATA_PATH))
show_message("Successfully installed local application data");

apollo_config.packver = APOLLO_DATA_VERSION;
strncpy(apollo_config.app_ver, APOLLO_VERSION, sizeof(apollo_config.app_ver));
save_app_settings(&apollo_config);
}

Expand Down

0 comments on commit cd95fa6

Please sign in to comment.