Skip to content

Commit

Permalink
Update v1.91
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOfficialFloW committed Jun 17, 2018
1 parent 4c09085 commit cc7da5c
Show file tree
Hide file tree
Showing 12 changed files with 70 additions and 26 deletions.
4 changes: 3 additions & 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.90")
set(VITA_VERSION "01.91")

# 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 @@ -190,8 +190,10 @@ vita_create_vpk(VitaShell.vpk ${VITA_TITLEID} eboot.bin
)

add_custom_target(release
COMMAND cp eboot.bin ../release/eboot.bin
COMMAND cp VitaShell.vpk ../release/VitaShell.vpk
DEPENDS VitaShell.vpk
DEPENDS eboot.bin
)

add_custom_target(send
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ Credits
Changelog
---------

### Changelog 1.91
- Added ability to create new files, thanks to abertschi.
- Added ability to skip last dir by holding L on startup.
- Added support for firmware 3.68.

### Changelog 1.9
- Added ability to open decrypted trophys, savedatas and appmetas.
- Moved `Open Decrypted` entry to main context menu for faster access.
Expand Down
48 changes: 25 additions & 23 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1676,37 +1676,39 @@ static int shellMain() {
// Current path is 'home'
strcpy(file_list.path, HOME_PATH);

// Last dir
char lastdir[MAX_PATH_LENGTH];
ReadFile(VITASHELL_LASTDIR, lastdir, sizeof(lastdir));
if (use_custom_config) {
// Last dir
char lastdir[MAX_PATH_LENGTH];
ReadFile(VITASHELL_LASTDIR, lastdir, sizeof(lastdir));

// Calculate dir positions if the dir is valid
if (checkFolderExist(lastdir)) {
int i;
for (i = 0; i < strlen(lastdir) + 1; i++) {
if (lastdir[i] == ':' || lastdir[i] == '/') {
char ch = lastdir[i + 1];
lastdir[i + 1] = '\0';
// Calculate dir positions if the dir is valid
if (checkFolderExist(lastdir)) {
int i;
for (i = 0; i < strlen(lastdir) + 1; i++) {
if (lastdir[i] == ':' || lastdir[i] == '/') {
char ch = lastdir[i + 1];
lastdir[i + 1] = '\0';

char ch2 = lastdir[i];
lastdir[i] = '\0';
char ch2 = lastdir[i];
lastdir[i] = '\0';

char *p = strrchr(lastdir, '/');
if (!p)
p = strrchr(lastdir, ':');
if (!p)
p = lastdir - 1;
char *p = strrchr(lastdir, '/');
if (!p)
p = strrchr(lastdir, ':');
if (!p)
p = lastdir - 1;

lastdir[i] = ch2;
lastdir[i] = ch2;

refreshFileList();
setFocusOnFilename(p + 1);
refreshFileList();
setFocusOnFilename(p + 1);

strcpy(file_list.path, lastdir);
strcpy(file_list.path, lastdir);

lastdir[i + 1] = ch;
lastdir[i + 1] = ch;

dirLevelUp();
dirLevelUp();
}
}
}
}
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 0x90
#define VITASHELL_VERSION_MINOR 0x91

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

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.9</str>
<str size="18" color="#ffffff" shadow="on">v1.91</str>
</text>
</liveitem>
</frame>
Expand Down
Binary file modified release/VitaShell.vpk
Binary file not shown.
Binary file added release/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added release/eboot.bin
Binary file not shown.
Binary file added release/icon0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added release/startup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions release/template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>

<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="#ffffff" size="50" bold="on" shadow="on">VitaShell</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 size="22" shadow="on">by TheFloW</str>
</text>
</liveitem>
</frame>

<frame id="frame4">
<liveitem>
<text align="left" text-align="left" word-wrap="off" ellipsis="on">
<str size="18" color="#ffffff" shadow="on">v1.91</str>
</text>
</liveitem>
</frame>
</livearea>
Binary file modified release/version.bin
Binary file not shown.

0 comments on commit cc7da5c

Please sign in to comment.