Skip to content

Commit

Permalink
Fixed updater
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOfficialFloW committed Mar 14, 2018
1 parent 2b25f22 commit 0df158b
Show file tree
Hide file tree
Showing 11 changed files with 125 additions and 489 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
*.elf
*.sfo
*.velf
*.vpk
build
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.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.

### Changelog 1.82
- Added support for firmware 3.65/3.67.

Expand Down
9 changes: 0 additions & 9 deletions init.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ INCLUDE_EXTERN_RESOURCE(kernel_skprx);
INCLUDE_EXTERN_RESOURCE(umass_skprx);
INCLUDE_EXTERN_RESOURCE(patch_skprx);

INCLUDE_EXTERN_RESOURCE(changeinfo_txt);

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

static DefaultFile default_files[] = {
Expand Down Expand Up @@ -144,8 +142,6 @@ static DefaultFile default_files[] = {
DEFAULT_FILE("ux0:VitaShell/module/kernel.skprx", kernel_skprx, 1),
DEFAULT_FILE("ux0:VitaShell/module/umass.skprx", umass_skprx, 1),
DEFAULT_FILE("ux0:VitaShell/module/patch.skprx", patch_skprx, 1),

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

char vitashell_titleid[12];
Expand Down Expand Up @@ -307,11 +303,6 @@ void installDefaultFiles() {
sceIoMkdir("ux0:VitaShell/theme/Default", 0777);
sceIoMkdir("ux0:VitaShell/theme/Electron", 0777);

sceIoMkdir("ux0:patch", 0006);
sceIoMkdir("ux0:patch/VITASHELL", 0006);
sceIoMkdir("ux0:patch/VITASHELL/sce_sys", 0006);
sceIoMkdir("ux0:patch/VITASHELL/sce_sys/changeinfo", 0006);

// Write default files if they don't exist
int i;
for (i = 0; i < (sizeof(default_files) / sizeof(DefaultFile)); i++) {
Expand Down
4 changes: 4 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ static void refreshCopyList() {
static int handleFile(const char *file, FileListEntry *entry) {
int res = 0;

// try to fix GPU freeze
vita2d_wait_rendering_done();

int type = getFileType(file);

switch (type) {
Expand Down Expand Up @@ -1152,6 +1155,7 @@ static int dialogSteps() {

case DIALOG_STEP_EXTRACTED:
{
removePath("ux0:patch/VITASHELL", NULL);
launchAppByUriExit("VSUPDATER");
setDialogStep(DIALOG_STEP_NONE);
break;
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 0x82
#define VITASHELL_VERSION_MINOR 0x83

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

Expand Down
Binary file modified release/VitaShell.vpk
Binary file not shown.
Loading

0 comments on commit 0df158b

Please sign in to comment.