Skip to content

Commit

Permalink
Update v1.94
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOfficialFloW committed Jun 21, 2018
1 parent 4a21192 commit 9570a0e
Show file tree
Hide file tree
Showing 16 changed files with 97 additions and 15 deletions.
4 changes: 2 additions & 2 deletions 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.93")
set(VITA_VERSION "01.94")

# 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 Expand Up @@ -205,6 +205,6 @@ add_custom_target(send
)

add_custom_target(copy
COMMAND cp eboot.bin F:/app/${VITA_TITLEID}/eboot.bin
COMMAND cp eboot.bin H:/app/${VITA_TITLEID}/eboot.bin
DEPENDS eboot.bin
)
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.94
- Added ability to umount all partitions that you can mount.
- Fixed crash when using StorageMgr.

### Changelog 1.93
- Added xmc0: to partition list and added ability to mount xmc0:.
- Fixed ux0: mounting bug where it wasn't detected that the gamesd has already been mounted.
Expand Down
8 changes: 7 additions & 1 deletion language.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ void loadLanguage(int id) {
LANGUAGE_ENTRY(MOUNT_UMA0),
LANGUAGE_ENTRY(MOUNT_IMC0),
LANGUAGE_ENTRY(MOUNT_XMC0),
LANGUAGE_ENTRY(UMOUNT_UMA0),
LANGUAGE_ENTRY(UMOUNT_IMC0),
LANGUAGE_ENTRY(UMOUNT_XMC0),
LANGUAGE_ENTRY(MOUNT_USB_UX0),
LANGUAGE_ENTRY(UMOUNT_USB_UX0),
LANGUAGE_ENTRY(MOUNT_GAMECARD_UX0),
Expand Down Expand Up @@ -230,7 +233,6 @@ void loadLanguage(int id) {

// USB strings
LANGUAGE_ENTRY(USB_CONNECTED),
LANGUAGE_ENTRY(USB_UMA0_MOUNTED),
LANGUAGE_ENTRY(USB_UX0_MOUNTED),
LANGUAGE_ENTRY(USB_UX0_UMOUNTED),
LANGUAGE_ENTRY(GAMECARD_UX0_MOUNTED),
Expand All @@ -253,8 +255,12 @@ void loadLanguage(int id) {
LANGUAGE_ENTRY(ADHOC_CLIENT_DECLINED),

// Others
LANGUAGE_ENTRY(UMA0_MOUNTED),
LANGUAGE_ENTRY(IMC0_MOUNTED),
LANGUAGE_ENTRY(XMC0_MOUNTED),
LANGUAGE_ENTRY(UMA0_UMOUNTED),
LANGUAGE_ENTRY(IMC0_UMOUNTED),
LANGUAGE_ENTRY(XMC0_UMOUNTED),
LANGUAGE_ENTRY(SAFE_MODE),
LANGUAGE_ENTRY(UNSAFE_MODE),
LANGUAGE_ENTRY(PLEASE_WAIT),
Expand Down
8 changes: 7 additions & 1 deletion language.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ enum LanguageContainer {
MOUNT_UMA0,
MOUNT_IMC0,
MOUNT_XMC0,
UMOUNT_UMA0,
UMOUNT_IMC0,
UMOUNT_XMC0,
MOUNT_USB_UX0,
UMOUNT_USB_UX0,
MOUNT_GAMECARD_UX0,
Expand Down Expand Up @@ -192,7 +195,6 @@ enum LanguageContainer {
USB_NOT_CONNECTED,
USB_CONNECTION_NOT_AVAILABLE,
USB_WAIT_ATTACH,
USB_UMA0_MOUNTED,
USB_UX0_MOUNTED,
USB_UX0_UMOUNTED,
GAMECARD_UX0_MOUNTED,
Expand All @@ -212,8 +214,12 @@ enum LanguageContainer {
ADHOC_CLIENT_DECLINED,

// Others
UMA0_MOUNTED,
IMC0_MOUNTED,
XMC0_MOUNTED,
UMA0_UMOUNTED,
IMC0_UMOUNTED,
XMC0_UMOUNTED,
SAFE_MODE,
UNSAFE_MODE,
PLEASE_WAIT,
Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ static int dialogSteps() {
if (res < 0)
errorDialog(res);
else
infoDialog(language_container[USB_UMA0_MOUNTED]);
infoDialog(language_container[UMA0_MOUNTED]);
refresh = REFRESH_MODE_NORMAL;
}
}
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 0x93
#define VITASHELL_VERSION_MINOR 0x94

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

Expand Down
70 changes: 65 additions & 5 deletions main_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ enum MenuHomeEntrys {
MENU_HOME_ENTRY_MOUNT_UMA0,
MENU_HOME_ENTRY_MOUNT_IMC0,
MENU_HOME_ENTRY_MOUNT_XMC0,
MENU_HOME_ENTRY_UMOUNT_UMA0,
MENU_HOME_ENTRY_UMOUNT_IMC0,
MENU_HOME_ENTRY_UMOUNT_XMC0,
MENU_HOME_ENTRY_MOUNT_USB_UX0,
MENU_HOME_ENTRY_UMOUNT_USB_UX0,
MENU_HOME_ENTRY_MOUNT_GAMECARD_UX0,
Expand All @@ -51,10 +54,13 @@ MenuEntry menu_home_entries[] = {
{ MOUNT_UMA0, 3, 0, CTX_INVISIBLE },
{ MOUNT_IMC0, 4, 0, CTX_INVISIBLE },
{ MOUNT_XMC0, 5, 0, CTX_INVISIBLE },
{ MOUNT_USB_UX0, 7, 0, CTX_INVISIBLE },
{ UMOUNT_USB_UX0, 8, 0, CTX_INVISIBLE },
{ MOUNT_GAMECARD_UX0, 10, 0, CTX_INVISIBLE },
{ UMOUNT_GAMECARD_UX0, 11, 0, CTX_INVISIBLE },
{ UMOUNT_UMA0, 7, 0, CTX_INVISIBLE },
{ UMOUNT_IMC0, 8, 0, CTX_INVISIBLE },
{ UMOUNT_XMC0, 9, 0, CTX_INVISIBLE },
{ MOUNT_USB_UX0, 11, 0, CTX_INVISIBLE },
{ UMOUNT_USB_UX0, 12, 0, CTX_INVISIBLE },
{ MOUNT_GAMECARD_UX0, 14, 0, CTX_INVISIBLE },
{ UMOUNT_GAMECARD_UX0, 15, 0, CTX_INVISIBLE },
};

#define N_MENU_HOME_ENTRIES (sizeof(menu_home_entries) / sizeof(MenuEntry))
Expand Down Expand Up @@ -360,6 +366,18 @@ void setContextMenuHomeVisibilities() {
if (!checkFileExist("sdstor0:xmc-lp-ign-userext") || checkFolderExist("xmc0:"))
menu_home_entries[MENU_HOME_ENTRY_MOUNT_XMC0].visibility = CTX_INVISIBLE;

// Invisible if not mounted
if (!checkFolderExist("uma0:"))
menu_home_entries[MENU_HOME_ENTRY_UMOUNT_UMA0].visibility = CTX_INVISIBLE;

// Invisible if not mounted
if (!checkFolderExist("imc0:"))
menu_home_entries[MENU_HOME_ENTRY_UMOUNT_IMC0].visibility = CTX_INVISIBLE;

// Invisible if not mounted
if (!checkFolderExist("xmc0:"))
menu_home_entries[MENU_HOME_ENTRY_UMOUNT_XMC0].visibility = CTX_INVISIBLE;

// Go to first entry
for (i = 0; i < N_MENU_HOME_ENTRIES; i++) {
if (menu_home_entries[i].visibility == CTX_VISIBLE) {
Expand Down Expand Up @@ -642,7 +660,7 @@ static int contextMenuHomeEnterCallback(int sel, void *context) {
if (res < 0)
errorDialog(res);
else
infoDialog(language_container[USB_UMA0_MOUNTED]);
infoDialog(language_container[UMA0_MOUNTED]);
refreshFileList();
} else {
initMessageDialog(SCE_MSG_DIALOG_BUTTON_TYPE_CANCEL, language_container[USB_WAIT_ATTACH]);
Expand Down Expand Up @@ -684,7 +702,49 @@ static int contextMenuHomeEnterCallback(int sel, void *context) {

break;
}

case MENU_HOME_ENTRY_UMOUNT_UMA0:
{
if (is_safe_mode) {
infoDialog(language_container[EXTENDED_PERMISSIONS_REQUIRED]);
} else {
vshIoUmount(0xF00, 0, 0, 0);
vshIoUmount(0xF00, 1, 0, 0);
infoDialog(language_container[UMA0_UMOUNTED]);
refreshFileList();
}

break;
}

case MENU_HOME_ENTRY_UMOUNT_IMC0:
{
if (is_safe_mode) {
infoDialog(language_container[EXTENDED_PERMISSIONS_REQUIRED]);
} else {
vshIoUmount(0xD00, 0, 0, 0);
vshIoUmount(0xD00, 1, 0, 0);
infoDialog(language_container[IMC0_UMOUNTED]);
refreshFileList();
}

break;
}

case MENU_HOME_ENTRY_UMOUNT_XMC0:
{
if (is_safe_mode) {
infoDialog(language_container[EXTENDED_PERMISSIONS_REQUIRED]);
} else {
vshIoUmount(0xE00, 0, 0, 0);
vshIoUmount(0xE00, 1, 0, 0);
infoDialog(language_container[XMC0_UMOUNTED]);
refreshFileList();
}

break;
}

case MENU_HOME_ENTRY_MOUNT_USB_UX0:
{
if (mountUsbUx0() >= 0) {
Expand Down
2 changes: 1 addition & 1 deletion modules/kernel/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int shellKernelIsUx0Redirected(const char *blkdev, const char *blkdev2) {
ksceKernelStrncpyUserToKernel(k_blkdev, blkdev, sizeof(k_blkdev)-1);
ksceKernelStrncpyUserToKernel(k_blkdev2, blkdev2, sizeof(k_blkdev2)-1);

if (mount && mount->dev && strcmp(mount->dev->blkdev, k_blkdev) == 0 && strcmp(mount->dev->blkdev2, k_blkdev2) == 0) {
if (mount && mount->dev && mount->dev->blkdev && strcmp(mount->dev->blkdev, k_blkdev) == 0) {
EXIT_SYSCALL(state);
return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/sce_sys/livearea/contents/template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<frame id="frame4">
<liveitem>
<text align="left" text-align="left" word-wrap="off" ellipsis="on">
<str size="18" color="#ffffff" shadow="on">v1.93</str>
<str size="18" color="#ffffff" shadow="on">v1.94</str>
</text>
</liveitem>
</frame>
Expand Down
Binary file modified release/VitaShell.vpk
Binary file not shown.
Binary file modified release/eboot.bin
Binary file not shown.
Binary file modified release/param.sfo
Binary file not shown.
2 changes: 1 addition & 1 deletion release/template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<frame id="frame4">
<liveitem>
<text align="left" text-align="left" word-wrap="off" ellipsis="on">
<str size="18" color="#ffffff" shadow="on">v1.93</str>
<str size="18" color="#ffffff" shadow="on">v1.94</str>
</text>
</liveitem>
</frame>
Expand Down
Binary file modified release/version.bin
Binary file not shown.
8 changes: 7 additions & 1 deletion resources/english_us.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ REFRESH_LICENSE_DB = "Refresh license database"
MOUNT_UMA0 = "Mount uma0:"
MOUNT_IMC0 = "Mount imc0:"
MOUNT_XMC0 = "Mount xmc0:"
UMOUNT_UMA0 = "Umount uma0:"
UMOUNT_IMC0 = "Umount imc0:"
UMOUNT_XMC0 = "Umount xmc0:"
MOUNT_USB_UX0 = "Mount USB ux0:"
UMOUNT_USB_UX0 = "Umount USB ux0:"
MOUNT_GAMECARD_UX0 = "Mount gamecard ux0:"
Expand Down Expand Up @@ -170,7 +173,6 @@ VITASHELL_SETTINGS_SELECT_BUTTON_FTP = "FTP"

# USB strings
USB_CONNECTED = "USB connected"
USB_UMA0_MOUNTED = "uma0: mounted."
USB_UX0_MOUNTED = "USB ux0: mounted."
USB_UX0_UMOUNTED = "USB ux0: umounted."
GAMECARD_UX0_MOUNTED = "gamecard ux0: mounted."
Expand All @@ -193,8 +195,12 @@ ADHOC_RECEIVE_QUESTION = "Do you want to receive from %s?"
ADHOC_CLIENT_DECLINED = "The client has declined your request."

# Others
UMA0_MOUNTED = "uma0: mounted."
UMA0_UMOUNTED = "uma0: umounted."
IMC0_MOUNTED = "imc0: mounted."
IMC0_UMOUNTED = "imc0: umounted."
XMC0_MOUNTED = "xmc0: mounted."
XMC0_UMOUNTED = "xmc0: umounted."
SAFE_MODE = "SAFE MODE"
UNSAFE_MODE = "UNSAFE MODE"
PLEASE_WAIT = "Please wait..."
Expand Down
Binary file modified resources/kernel.skprx
Binary file not shown.

0 comments on commit 9570a0e

Please sign in to comment.