Skip to content

Commit

Permalink
Update v1.51
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOfficialFloW committed Jan 13, 2017
1 parent 05e7a73 commit 8d9bfbc
Show file tree
Hide file tree
Showing 21 changed files with 56 additions and 218 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.50")
set(VITA_VERSION "01.51")

# Flags and includes
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O3 -Wno-unused-variable -Wno-unused-but-set-variable -fno-lto")
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ Be sure you pull request your customized design or language file there.
* sakya for Lightmp3
* Everybody who contributed on vitasdk

### Changelog 1.51 ###
- Fixed bug where 'Please wait...' was shown instead of a specifc USB message.
- Fixed VPK installation crash.
- Fixed bug where 'theme.txt' was always resetted.
- Updated to newest libftpvita.

### Changelog 1.50 ###
- Added USB mass storage transfer support.
- Added RAR archive support (by Mayoshiroi).
Expand Down
57 changes: 28 additions & 29 deletions init.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,36 +50,35 @@ INCLUDE_EXTERN_RESOURCE(usbdevice_skprx);

INCLUDE_EXTERN_RESOURCE(changeinfo_txt);

#define DEFAULT_FILE(path, name) { path, (void *)&_binary_resources_##name##_start, (int)&_binary_resources_##name##_size }
#define DEFAULT_FILE(path, name, replace) { path, (void *)&_binary_resources_##name##_start, (int)&_binary_resources_##name##_size, replace }

static DefaultFile default_files[] = {
DEFAULT_FILE("ux0:VitaShell/language/english_us.txt", english_us_txt),

DEFAULT_FILE("ux0:VitaShell/theme/theme.txt", theme_txt),
DEFAULT_FILE("ux0:VitaShell/theme/Default/colors.txt", colors_txt),
DEFAULT_FILE("ux0:VitaShell/theme/Default/folder_icon.png", folder_icon_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/file_icon.png", file_icon_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/archive_icon.png", archive_icon_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/image_icon.png", image_icon_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/audio_icon.png", audio_icon_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/sfo_icon.png", sfo_icon_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/text_icon.png", text_icon_png),
// DEFAULT_FILE("ux0:VitaShell/theme/Default/wifi.png", wifi_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/ftp.png", ftp_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/battery.png", battery_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/battery_bar_red.png", battery_bar_red_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/battery_bar_green.png", battery_bar_green_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/battery_bar_charge.png", battery_bar_charge_png),

DEFAULT_FILE("ux0:VitaShell/theme/Default/cover.png", cover_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/play.png", play_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/pause.png", pause_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/fastforward.png", fastforward_png),
DEFAULT_FILE("ux0:VitaShell/theme/Default/fastrewind.png", fastrewind_png),

DEFAULT_FILE("ux0:VitaShell/module/usbdevice.skprx", usbdevice_skprx),

DEFAULT_FILE("ux0:patch/VITASHELL/sce_sys/changeinfo/changeinfo.xml", changeinfo_txt),
DEFAULT_FILE("ux0:VitaShell/language/english_us.txt", english_us_txt, 0),

DEFAULT_FILE("ux0:VitaShell/theme/theme.txt", theme_txt, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/colors.txt", colors_txt, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/folder_icon.png", folder_icon_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/file_icon.png", file_icon_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/archive_icon.png", archive_icon_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/image_icon.png", image_icon_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/audio_icon.png", audio_icon_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/sfo_icon.png", sfo_icon_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/text_icon.png", text_icon_png, 0),
// DEFAULT_FILE("ux0:VitaShell/theme/Default/wifi.png", wifi_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/ftp.png", ftp_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/battery.png", battery_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/battery_bar_red.png", battery_bar_red_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/battery_bar_green.png", battery_bar_green_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/battery_bar_charge.png", battery_bar_charge_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/cover.png", cover_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/play.png", play_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/pause.png", pause_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/fastforward.png", fastforward_png, 0),
DEFAULT_FILE("ux0:VitaShell/theme/Default/fastrewind.png", fastrewind_png, 0),

DEFAULT_FILE("ux0:VitaShell/module/usbdevice.skprx", usbdevice_skprx, 1),

DEFAULT_FILE("ux0:patch/VITASHELL/sce_sys/changeinfo/changeinfo.xml", changeinfo_txt, 1),
};

// System params
Expand Down Expand Up @@ -262,7 +261,7 @@ void initVitaShell() {
for (i = 0; i < (sizeof(default_files) / sizeof(DefaultFile)); i++) {
SceIoStat stat;
memset(&stat, 0, sizeof(stat));
if (sceIoGetstat(default_files[i].path, &stat) < 0 || (int)stat.st_size != default_files[i].size)
if (sceIoGetstat(default_files[i].path, &stat) < 0 || (default_files[i].replace && (int)stat.st_size != default_files[i].size))
WriteFile(default_files[i].path, default_files[i].buffer, default_files[i].size);
}

Expand Down
1 change: 1 addition & 0 deletions init.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ typedef struct {
char *path;
void *buffer;
int size;
int replace;
} DefaultFile;

vita2d_pgf *loadSystemFonts();
Expand Down
3 changes: 2 additions & 1 deletion language.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ void loadLanguage(int id) {
LANGUAGE_ENTRY(PROPERTY_TYPE_MP3),
LANGUAGE_ENTRY(PROPERTY_TYPE_OGG),
LANGUAGE_ENTRY(PROPERTY_TYPE_PNG),
LANGUAGE_ENTRY(PROPERTY_TYPE_RAR),
LANGUAGE_ENTRY(PROPERTY_TYPE_SFO),
LANGUAGE_ENTRY(PROPERTY_TYPE_TXT),
LANGUAGE_ENTRY(PROPERTY_TYPE_VPK),
LANGUAGE_ENTRY(PROPERTY_TYPE_XML),
LANGUAGE_ENTRY(PROPERTY_TYPE_ZIP),
LANGUAGE_ENTRY(PROPERTY_TYPE_RAR),
LANGUAGE_ENTRY(PROPERTY_TYPE_FSELF),
LANGUAGE_ENTRY(PROPERTY_FSELF_MODE_SAFE),
LANGUAGE_ENTRY(PROPERTY_FSELF_MODE_UNSAFE),
Expand Down Expand Up @@ -195,6 +195,7 @@ void loadLanguage(int id) {

// USB strings
LANGUAGE_ENTRY(USB_CONNECTED),
LANGUAGE_ENTRY(USB_NOT_CONNECTED),
LANGUAGE_ENTRY(USB_CONNECTION_PERMISSION),
LANGUAGE_ENTRY(USB_CONNECTION_NOT_AVAILABLE),

Expand Down
3 changes: 2 additions & 1 deletion language.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ enum LanguageContainer {
PROPERTY_TYPE_MP3,
PROPERTY_TYPE_OGG,
PROPERTY_TYPE_PNG,
PROPERTY_TYPE_RAR,
PROPERTY_TYPE_SFO,
PROPERTY_TYPE_TXT,
PROPERTY_TYPE_VPK,
PROPERTY_TYPE_XML,
PROPERTY_TYPE_ZIP,
PROPERTY_TYPE_RAR,
PROPERTY_TYPE_FSELF,
PROPERTY_FSELF_MODE_SAFE,
PROPERTY_FSELF_MODE_UNSAFE,
Expand Down Expand Up @@ -154,6 +154,7 @@ enum LanguageContainer {

// USB strings
USB_CONNECTED,
USB_NOT_CONNECTED,
USB_CONNECTION_PERMISSION,
USB_CONNECTION_NOT_AVAILABLE,

Expand Down
6 changes: 3 additions & 3 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

#include "audio/vita_audio.h"

int _newlib_heap_size_user = 64 * 1024 * 1024;
int _newlib_heap_size_user = 128 * 1024 * 1024;

// Context menu
static float ctx_menu_max_width = 0.0f, ctx_menu_more_max_width = 0.0f;
Expand Down Expand Up @@ -1580,7 +1580,7 @@ int fileBrowserMenuCtrl() {
if (state.connection & SCE_UDCD_STATUS_CONNECTION_ESTABLISHED) {
initUsb();
} else {
initMessageDialog(SCE_MSG_DIALOG_BUTTON_TYPE_CANCEL, language_container[PLEASE_WAIT]);
initMessageDialog(SCE_MSG_DIALOG_BUTTON_TYPE_CANCEL, language_container[USB_NOT_CONNECTED]);
dialog_step = DIALOG_STEP_USB_WAIT;
}
}
Expand Down Expand Up @@ -1859,9 +1859,9 @@ int shellMain() {
icon = image_icon;
break;

case FILE_TYPE_RAR:
case FILE_TYPE_VPK:
case FILE_TYPE_ZIP:
case FILE_TYPE_RAR:
color = ARCHIVE_COLOR;
icon = archive_icon;
break;
Expand Down
2 changes: 1 addition & 1 deletion main.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

// VitaShell version major.minor
#define VITASHELL_VERSION_MAJOR 0x01
#define VITASHELL_VERSION_MINOR 0x50
#define VITASHELL_VERSION_MINOR 0x51

#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.50</str>
<str size="18" color="#ffffff" shadow="on">v1.51</str>
</text>
</liveitem>
</frame>
Expand Down
Binary file removed pkg/sce_sys/manual/001.png
Binary file not shown.
9 changes: 0 additions & 9 deletions pkg/sce_sys/manual/src/images/PlayStationCircle.svg

This file was deleted.

12 changes: 0 additions & 12 deletions pkg/sce_sys/manual/src/images/PlayStationCross.svg

This file was deleted.

7 changes: 0 additions & 7 deletions pkg/sce_sys/manual/src/images/PlayStationL.svg

This file was deleted.

7 changes: 0 additions & 7 deletions pkg/sce_sys/manual/src/images/PlayStationR.svg

This file was deleted.

7 changes: 0 additions & 7 deletions pkg/sce_sys/manual/src/images/PlayStationSelect.svg

This file was deleted.

9 changes: 0 additions & 9 deletions pkg/sce_sys/manual/src/images/PlayStationSquare.svg

This file was deleted.

7 changes: 0 additions & 7 deletions pkg/sce_sys/manual/src/images/PlayStationStart.svg

This file was deleted.

9 changes: 0 additions & 9 deletions pkg/sce_sys/manual/src/images/PlayStationTriangle.svg

This file was deleted.

113 changes: 0 additions & 113 deletions pkg/sce_sys/manual/src/template.html

This file was deleted.

Loading

0 comments on commit 8d9bfbc

Please sign in to comment.