From d149bcd5699b311734d6679c77ea01a1e03fa898 Mon Sep 17 00:00:00 2001 From: TheFloW Date: Sun, 17 Sep 2017 16:30:49 +0200 Subject: [PATCH] Give VitaShell more permissions --- CMakeLists.txt | 2 +- main.c | 4 ++-- usb.c | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50c987ca..72c6e4e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ set(VITA_VERSION "01.70") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O3 -Wno-unused-variable -Wno-unused-but-set-variable -Wno-format-truncation -fno-lto") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-rtti -fno-exceptions") set(VITA_MKSFOEX_FLAGS "${VITA_MKSFOEX_FLAGS} -d PARENTAL_LEVEL=1") -set(VITA_MAKE_FSELF_FLAGS "${VITA_MAKE_FSELF_FLAGS} -a 0x2800000000000001") +set(VITA_MAKE_FSELF_FLAGS "${VITA_MAKE_FSELF_FLAGS} -a 0x2808000000000000") include_directories( ) diff --git a/main.c b/main.c index 352e707c..60187f25 100644 --- a/main.c +++ b/main.c @@ -502,7 +502,7 @@ static void initUsb() { path = "sdstor0:gcd-lp-ign-gamero"; else infoDialog(language_container[GAME_CARD_NOT_FOUND]); - } else if (vitashell_config.usbdevice == USBDEVICE_MODE_SD2VITA) { // TODO: Fix this + } else if (vitashell_config.usbdevice == USBDEVICE_MODE_SD2VITA) { if (checkFileExist("sdstor0:gcd-lp-ign-entire")) path = "sdstor0:gcd-lp-ign-entire"; else @@ -513,7 +513,7 @@ static void initUsb() { else infoDialog(language_container[MICROSD_NOT_FOUND]); } - + if (!path) return; diff --git a/usb.c b/usb.c index 47334c98..2f7bc8eb 100644 --- a/usb.c +++ b/usb.c @@ -22,6 +22,7 @@ #include "utils.h" static int remount_thread(SceSize args, void *argp) { + sceKernelDelayThread(10 * 1000); if (checkFolderExist("ux0:")) remount(0x800); return sceKernelExitDeleteThread(0);