Skip to content

Commit

Permalink
adjustments
Browse files Browse the repository at this point in the history
show username
fix trophy details
livearea template
  • Loading branch information
bucanero committed Oct 23, 2022
1 parent fcb6e45 commit c291c15
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 5 deletions.
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,42 @@ All notable changes to the `apollo-vita` project will be documented in this file

## [Unreleased]()

## [v1.1.0](https://github.com/bucanero/apollo-vita/releases/tag/v1.1.0) - 2022-10-23

### Added

* Support PSP save-game encryption `mode 3`
* Bulk management for PSP saves
* `VMP` PS1 memcard resigning
* Export `VMP` PS1 memcard to `MCR`
* Import `MCR` PS1 memcard to `VMP`
* Trophy Set data backup
- Copy trophy folders to External storage
- Export trophy files to `.zip`
* Online DB: new PSP saves for +300 games
* New PS Vita save patch codes
- Metal Gear Solid 2 HD: custom encryption
- Metal Gear Solid 3 HD: custom encryption
- Resident Evil Revelations 2: unpack
* Custom checksum support
- Metal Gear Solid 2 HD
- Metal Gear Solid 3 HD
- Resident Evil Revelations 2

### 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` custom hash
* Fix little-endian support for decrypters/hashes

## [v1.0.2](https://github.com/bucanero/apollo-vita/releases/tag/v1.0.2) - 2022-07-30

### Added
Expand Down
18 changes: 17 additions & 1 deletion sce_sys/livearea/contents/template.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>

<livearea style="a1" format-ver="01.00" content-rev="1">
<livearea style="psmobile" format-ver="01.00" content-rev="1">
<livearea-background>
<image>bg.png</image>
</livearea-background>

<gate>
<startup-image>startup.png</startup-image>
</gate>

<frame id="frame2">
<liveitem>
<text valign="bottom" align="left" text-align="left" text-valign="bottom" line-space="3" ellipsis="on">
<str color="#000000" size="50" bold="on" shadow="off">Apollo Save Tool</str>
</text>
</liveitem>
</frame>

<frame id="frame3">
<liveitem>
<text valign="top" align="left" text-align="left" text-valign="top" line-space="2" ellipsis="on">
<str color="#000000" size="22" bold="on" shadow="on">by Bucanero</str>
</text>
</liveitem>
</frame>
</livearea>
23 changes: 21 additions & 2 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <taihen.h>
#include <psp2/ctrl.h>
#include <psp2/appmgr.h>
#include <psp2/apputil.h>
#include <psp2/system_param.h>
#include <psp2/sysmodule.h>
#include <psp2/vshbridge.h>
#include <psp2/audioout.h>
Expand Down Expand Up @@ -112,7 +114,7 @@ const char * menu_about_strings[] = { "Bucanero", "Developer",
"console", "details:",
NULL, NULL };

char user_id_str[9] = "00000000";
char user_id_str[SCE_SYSTEM_PARAM_USERNAME_MAXSIZE] = "Apollo";
char psid_str[SFO_PSID_SIZE*2+2] = "0000000000000000 0000000000000000";
char account_id_str[SFO_ACCOUNT_ID_SIZE*2+1] = "0000000000000000";

Expand Down Expand Up @@ -629,7 +631,6 @@ void SetMenu(int id)
case MENU_CREDITS: //About Menu
// set to display the PSID on the About menu
sprintf(psid_str, "%016llX %016llX", apollo_config.idps[0], apollo_config.idps[1]);
sprintf(user_id_str, "%08x", apollo_config.user_id);
sprintf(account_id_str, "%016llx", apollo_config.account_id);

if (apollo_config.doAni)
Expand Down Expand Up @@ -1250,6 +1251,24 @@ static int initInternal()
return 0;
}

ret = sceSysmoduleLoadModule(SCE_SYSMODULE_APPUTIL);
if (ret != SUCCESS) {
LOG("load module failed: APPUTIL (0x%08x)\n", ret);
return 0;
}

SceAppUtilInitParam initParam;
SceAppUtilBootParam bootParam;

memset(&initParam, 0, sizeof(SceAppUtilInitParam));
memset(&bootParam, 0, sizeof(SceAppUtilBootParam));

/* Initialize the application utility library */
ret = sceAppUtilInit(&initParam, &bootParam);
if (ret == SUCCESS) {
sceAppUtilSystemParamGetString(SCE_SYSTEM_PARAM_ID_USERNAME, user_id_str, SCE_SYSTEM_PARAM_USERNAME_MAXSIZE);
}

return 1;
}

Expand Down
4 changes: 2 additions & 2 deletions source/saves.c
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,6 @@ list_t * ReadTrophyList(const char* userPath)
int get_save_details(const save_entry_t* save, char **details)
{
char sfoPath[256];
char mount[32] = "";
sqlite3 *db;
sqlite3_stmt *res;
sdslot_dat_t* sdslot;
Expand Down Expand Up @@ -1451,7 +1450,8 @@ int get_save_details(const save_entry_t* save, char **details)

if (save->flags & SAVE_FLAG_TROPHY)
{
if ((db = open_sqlite_db(save->path)) == NULL)
snprintf(sfoPath, sizeof(sfoPath), TROPHY_PATH_HDD "db/trophy_local.db", apollo_config.user_id);
if ((db = open_sqlite_db(sfoPath)) == NULL)
return 0;

char* query = sqlite3_mprintf("SELECT id, description, trophy_num, unlocked_trophy_num, progress,"
Expand Down

0 comments on commit c291c15

Please sign in to comment.