Skip to content

Commit

Permalink
Added ability to open savedatas and trophys decrypted.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOfficialFloW committed Mar 27, 2018
1 parent 6717abf commit 61b7b03
Show file tree
Hide file tree
Showing 17 changed files with 309 additions and 92 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ project(VitaShell)
include("${VITASDK}/share/vita.cmake" REQUIRED)
set(VITA_APP_NAME "VitaShell")
set(VITA_TITLEID "VITASHELL")
set(VITA_VERSION "01.83")
set(VITA_VERSION "01.90")

# Flags and includes
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O3 -Wno-unused-variable -Wno-unused-but-set-variable -Wno-format-truncation -fno-lto")
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ Credits
Changelog
---------

### Changelog 1.9
- Added ability to open decrypted trophys, savedatas and appmetas.
- Moved `Open Decrypted` entry to main context menu for faster access.

### Changelog 1.83
- Fixed automatic network update by using rawgit. This was needed because github removed support for TLS 1.0/1.1.
- Removed changelog support, because the files at ux0:patch must now be pfs encrypted.
Expand Down
1 change: 1 addition & 0 deletions init.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ void initVitaShell() {

// Allow writing to ux0:app/VITASHELL
sceAppMgrUmount("app0:");
sceAppMgrUmount("savedata0:");

// Is safe mode
if (sceIoDevctl("ux0:", 0x3001, NULL, 0, NULL, 0) == 0x80010030)
Expand Down
14 changes: 8 additions & 6 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static void dirUp() {
strcmp(file_list.path, pfs_mounted_path) == 0 && // we're about to leave the pfs path
!strstr(copy_list.path, pfs_mounted_path)) { // nothing has been copied from pfs path
// Then umount
gameDataUmount();
pfsUmount();
}

removeEndSlash(file_list.path);
Expand Down Expand Up @@ -611,8 +611,10 @@ static int dialogSteps() {
fileListEmpty(&copy_list);

// Umount and remove from clipboard after pasting
if (pfs_mounted_path[0] && strstr(copy_list.path, pfs_mounted_path)) {
gameDataUmount();
if (pfs_mounted_path[0] &&
!strstr(file_list.path, pfs_mounted_path) &&
strstr(copy_list.path, pfs_mounted_path)) {
pfsUmount();
fileListEmpty(&copy_list);
}

Expand Down Expand Up @@ -1713,7 +1715,7 @@ static int shellMain() {
// Refresh on app resume
if (event.systemEvent == SCE_APPMGR_SYSTEMEVENT_ON_RESUME) {
sceShellUtilLock(SCE_SHELL_UTIL_LOCK_TYPE_USB_CONNECTION);
gameDataUmount(); // umount game data at resume
pfsUmount(); // umount game data at resume
refresh = REFRESH_MODE_NORMAL;
}

Expand Down Expand Up @@ -1931,7 +1933,7 @@ int main(int argc, const char *argv[]) {
readPad();
if (current_pad[PAD_LTRIGGER])
use_custom_config = 0;

// Load settings
loadSettingsConfig();

Expand All @@ -1944,7 +1946,7 @@ int main(int argc, const char *argv[]) {
// Init context menu width
initContextMenuWidth();
initTextContextMenuWidth();

// Automatic network update
if (!vitashell_config.disable_autoupdate) {
SceUID thid = sceKernelCreateThread("network_update_thread", (SceKernelThreadEntry)network_update_thread, 0x10000100, 0x100000, 0, 0, NULL);
Expand Down
2 changes: 1 addition & 1 deletion main.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

// VitaShell version major.minor
#define VITASHELL_VERSION_MAJOR 0x01
#define VITASHELL_VERSION_MINOR 0x83
#define VITASHELL_VERSION_MINOR 0x90

#define VITASHELL_VERSION ((VITASHELL_VERSION_MAJOR << 0x18) | (VITASHELL_VERSION_MINOR << 0x10))

Expand Down
Loading

0 comments on commit 61b7b03

Please sign in to comment.