From 81204866399bc939c71b28c42b8c9a8881728657 Mon Sep 17 00:00:00 2001 From: TheFloW Date: Sun, 5 Mar 2017 15:27:16 +0100 Subject: [PATCH] Improved some stuff --- CMakeLists.txt | 2 + README.md | 3 + audioplayer.c | 7 +- file.c | 7 ++ file.h | 1 + init.c | 4 +- main.c | 4 +- main_context.c | 8 +-- package_installer.c | 138 +++++++++----------------------------- package_installer.h | 2 +- refresh.c | 49 +++++++++----- resources/base_head_bin.h | 110 ------------------------------ resources/head.bin | Bin 0 -> 1072 bytes 13 files changed, 85 insertions(+), 250 deletions(-) delete mode 100644 resources/base_head_bin.h create mode 100644 resources/head.bin diff --git a/CMakeLists.txt b/CMakeLists.txt index 7119700..b6a45d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -138,6 +138,8 @@ target_link_libraries(VitaShell SceMusicExport_stub SceNet_stub SceNetCtl_stub + SceNpDrm_stub + SceReg_stub SceShellSvc_stub SceSsl_stub SceSysmodule_stub diff --git a/README.md b/README.md index 441e004..ddeb060 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,9 @@ Be sure you pull request your customized design or language file there. * Everybody who contributed on vitasdk ### Changelog 1.60 ### +- Added ability to mount uma0: and ability to use uma0: as ux0:. +- Added ability to mount game card as usb device. +- Added possibility to refresh the livearea. - Added I/O operations speed in KB/s. - Added scrolling text for long filenames. - Added 'Sort by' option to context menu (R trigger combo removed). diff --git a/audioplayer.c b/audioplayer.c index 613c160..d26df5a 100644 --- a/audioplayer.c +++ b/audioplayer.c @@ -132,7 +132,6 @@ void shortenString(char *out, const char *in, int width) { } vita2d_texture *getAlternativeCoverImage(const char *file) { - SceIoStat stat; char path[MAX_PATH_LENGTH]; char *p = strrchr(file, '/'); @@ -140,15 +139,13 @@ vita2d_texture *getAlternativeCoverImage(const char *file) { *p = '\0'; snprintf(path, MAX_PATH_LENGTH, "%s/cover.jpg", file); - memset(&stat, 0, sizeof(SceIoStat)); - if (sceIoGetstat(path, &stat) >= 0) { + if (checkFileExist(path)) { *p = '/'; return vita2d_load_JPEG_file(path); } snprintf(path, MAX_PATH_LENGTH, "%s/folder.jpg", file); - memset(&stat, 0, sizeof(SceIoStat)); - if (sceIoGetstat(path, &stat) >= 0) { + if (checkFileExist(path)) { *p = '/'; return vita2d_load_JPEG_file(path); } diff --git a/file.c b/file.c index 4532fc9..1eae018 100644 --- a/file.c +++ b/file.c @@ -93,6 +93,13 @@ int getFileSize(const char *file) { return fileSize; } +int checkFileExist(const char *file) { + SceIoStat stat; + memset(&stat, 0, sizeof(SceIoStat)); + + return sceIoGetstat(file, &stat) >= 0; +} + int changePathPermissions(const char *path, int perms) { SceIoStat stat; memset(&stat, 0, sizeof(SceIoStat)); diff --git a/file.h b/file.h index 4b33d9f..4a434a7 100644 --- a/file.h +++ b/file.h @@ -103,6 +103,7 @@ typedef struct { int allocateReadFile(const char *file, void **buffer); int ReadFile(const char *file, void *buf, int size); int WriteFile(const char *file, const void *buf, int size); +int checkFileExist(const char *file); int getFileSize(const char *file); int getFileSha1(const char *file, uint8_t *pSha1Out, FileProcessParam *param); diff --git a/init.c b/init.c index 9f9706b..5815995 100644 --- a/init.c +++ b/init.c @@ -315,9 +315,7 @@ void initVitaShell() { initPowerTickThread(); // Delete VitaShell updater if available - SceIoStat stat; - memset(&stat, 0, sizeof(SceIoStat)); - if (sceIoGetstat("ux0:app/VSUPDATER", &stat) >= 0) { + if (checkAppExist("VSUPDATER") >= 0) { deleteApp("VSUPDATER"); } diff --git a/main.c b/main.c index 733a8df..9cd19ee 100644 --- a/main.c +++ b/main.c @@ -1325,9 +1325,7 @@ static int shellMain() { ReadFile(VITASHELL_LASTDIR, lastdir, sizeof(lastdir)); // Calculate dir positions if the dir is valid - SceIoStat stat; - memset(&stat, 0, sizeof(SceIoStat)); - if (sceIoGetstat(lastdir, &stat) >= 0) { + if (checkFileExist(lastdir)) { int i; for (i = 0; i < strlen(lastdir)+1; i++) { if (lastdir[i] == ':' || lastdir[i] == '/') { diff --git a/main_context.c b/main_context.c index f86980e..ebef3f4 100644 --- a/main_context.c +++ b/main_context.c @@ -201,9 +201,7 @@ void setContextMenuHomeVisibilities() { menu_home_entries[MENU_HOME_ENTRY_MOUNT_USB_UX0].visibility = CTX_INVISIBLE; menu_home_entries[MENU_HOME_ENTRY_UMOUNT_USB_UX0].visibility = CTX_INVISIBLE; } else { - SceIoStat stat; - memset(&stat, 0, sizeof(SceIoStat)); - if (sceIoGetstat("uma0:", &stat) >= 0) { + if (checkFileExist("uma0:")) { menu_home_entries[MENU_HOME_ENTRY_MOUNT_UMA0].visibility = CTX_INVISIBLE; } else { menu_home_entries[MENU_HOME_ENTRY_MOUNT_USB_UX0].visibility = CTX_INVISIBLE; @@ -631,9 +629,7 @@ static int contextMenuMainEnterCallback(int sel, void *context) { snprintf(path, MAX_PATH_LENGTH, "%s%s (%d)", file_list.path, language_container[NEW_FOLDER], count); } - SceIoStat stat; - memset(&stat, 0, sizeof(SceIoStat)); - if (sceIoGetstat(path, &stat) < 0) + if (!checkFileExist(path)) break; count++; diff --git a/package_installer.c b/package_installer.c index 3a861f9..a3f0973 100644 --- a/package_installer.c +++ b/package_installer.c @@ -27,129 +27,51 @@ #include "sfo.h" #include "sha1.h" -#include "resources/base_head_bin.h" - -int promoteUpdate(const char *path, const char *titleid, const char *category, void *sfo_buffer, int sfo_size) { - int res; - - // Update installation - if (strcmp(category, "gp") == 0) { - // Change category to 'gd' - setSfoString(sfo_buffer, "CATEGORY", "gd"); - WriteFile(PACKAGE_DIR "/sce_sys/param.sfo", sfo_buffer, sfo_size); - - // App path - char app_path[MAX_PATH_LENGTH]; - snprintf(app_path, MAX_PATH_LENGTH, "ux0:app/%s", titleid); - - /* - Without the following trick, the livearea won't be updated and the game will even crash - */ - - // Integrate patch to app - res = movePath(path, app_path, MOVE_INTEGRATE | MOVE_REPLACE, NULL); - if (res < 0) - return res; - - // Move app to promotion directory - res = movePath(app_path, path, 0, NULL); - if (res < 0) - return res; - } - - return 0; -} - -int promotePkg(const char *path) { - int res, ret; - - res = scePromoterUtilityInit(); - if (res < 0) - goto ERROR_EXIT; - - res = scePromoterUtilityPromotePkg(path, 0); - if (res < 0) - goto ERROR_EXIT; - - int state = 0; - do { - res = scePromoterUtilityGetState(&state); - if (res < 0) - goto ERROR_EXIT; - - sceKernelDelayThread(100 * 1000); - } while (state); - - res = scePromoterUtilityGetResult(&ret); - -ERROR_EXIT: - scePromoterUtilityExit(); - - if (res < 0) - return res; - - // Using the promoteUpdate trick, we get 0x80870005 as result, but it installed correctly though, so return ok - return ret == 0x80870005 ? 0 : ret; -} +INCLUDE_EXTERN_RESOURCE(head_bin); int promoteApp(const char *path) { int res; - // Read param.sfo - void *sfo_buffer = NULL; - int sfo_size = allocateReadFile(PACKAGE_DIR "/sce_sys/param.sfo", &sfo_buffer); - if (sfo_size < 0) - return sfo_size; + res = scePromoterUtilityInit(); + if (res < 0) + return res; - // Get titleid - char titleid[12]; - getSfoString(sfo_buffer, "TITLE_ID", titleid, sizeof(titleid)); + res = scePromoterUtilityPromotePkgWithRif(path, 1); - // Get category - char category[4]; - getSfoString(sfo_buffer, "CATEGORY", category, sizeof(category)); + scePromoterUtilityExit(); - // Promote update - promoteUpdate(path, titleid, category, sfo_buffer, sfo_size); - - // Free sfo buffer - free(sfo_buffer); - - // Promote pkg - return promotePkg(path); + return res; } int deleteApp(const char *titleid) { - int res, ret; + int res; sceAppMgrDestroyOtherApp(); res = scePromoterUtilityInit(); if (res < 0) - goto ERROR_EXIT; + return res; res = scePromoterUtilityDeletePkg(titleid); - if (res < 0) - goto ERROR_EXIT; - int state = 0; - do { - res = scePromoterUtilityGetState(&state); - if (res < 0) - goto ERROR_EXIT; - - sceKernelDelayThread(100 * 1000); - } while (state); - - res = scePromoterUtilityGetResult(&ret); - -ERROR_EXIT: scePromoterUtilityExit(); + return res; +} + +int checkAppExist(const char *titleid) { + int res; + int ret; + + res = scePromoterUtilityInit(); if (res < 0) return res; - return ret; + res = scePromoterUtilityCheckExist(titleid, &ret); + + scePromoterUtilityExit(); + + return res; } static void fpkg_hmac(const uint8_t *data, unsigned int len, uint8_t hmac[16]) { @@ -183,6 +105,12 @@ int makeHeadBin() { uint32_t len; uint32_t out; + SceIoStat stat; + memset(&stat, 0, sizeof(SceIoStat)); + + if (checkFileExist(HEAD_BIN) >= 0) + return 0; + // Read param.sfo void *sfo_buffer = NULL; int res = allocateReadFile(PACKAGE_DIR "/sce_sys/param.sfo", &sfo_buffer); @@ -207,12 +135,12 @@ int makeHeadBin() { free(sfo_buffer); // Allocate head.bin buffer - uint8_t *head_bin = malloc(sizeof(base_head_bin)); - memcpy(head_bin, base_head_bin, sizeof(base_head_bin)); + uint8_t *head_bin = malloc((int)&_binary_resources_head_bin_size); + memcpy(head_bin, (void *)&_binary_resources_head_bin_start, (int)&_binary_resources_head_bin_size); // Write full title id char full_title_id[48]; - snprintf(full_title_id, sizeof(full_title_id), "EP9000-%s_00-XXXXXXXXXXXXXXXX", titleid); + snprintf(full_title_id, sizeof(full_title_id), "EP9000-%s_00-0000000000000000", titleid); strncpy((char *)&head_bin[0x30], strlen(contentid) > 0 ? contentid : full_title_id, 48); // hmac of pkg header @@ -224,7 +152,7 @@ int makeHeadBin() { off = ntohl(*(uint32_t *)&head_bin[0x8]); len = ntohl(*(uint32_t *)&head_bin[0x10]); out = ntohl(*(uint32_t *)&head_bin[0xD4]); - fpkg_hmac(&head_bin[off], len - 64, hmac); + fpkg_hmac(&head_bin[off], len-64, hmac); memcpy(&head_bin[out], hmac, 16); // hmac of everything @@ -236,7 +164,7 @@ int makeHeadBin() { sceIoMkdir(PACKAGE_DIR "/sce_sys/package", 0777); // Write head.bin - WriteFile(HEAD_BIN, head_bin, sizeof(base_head_bin)); + WriteFile(HEAD_BIN, head_bin, (int)&_binary_resources_head_bin_size); free(head_bin); diff --git a/package_installer.h b/package_installer.h index 54624b2..727d4c0 100644 --- a/package_installer.h +++ b/package_installer.h @@ -28,9 +28,9 @@ typedef struct { char *file; } InstallArguments; -int promotePkg(const char *path); int promoteApp(const char *path); int deleteApp(const char *titleid); +int checkAppExist(const char *titleid); int makeHeadBin(); diff --git a/refresh.c b/refresh.c index fdf9881..8a67ddd 100644 --- a/refresh.c +++ b/refresh.c @@ -40,17 +40,33 @@ int isCustomHomebrew() { return 1; } +int sceRegMgrGetKeyBin(const char *category, const char *name, void *buf, int size); +int _sceNpDrmGetRifName(char *rif_name, int flags, uint64_t aid); +int _sceNpDrmGetFixedRifName(char *rif_name, int flags, uint64_t aid); + int refreshApp(const char *titleid) { int res; - int ret; - res = scePromoterUtilityInit(); - if (res < 0) - goto ERROR_EXIT; + // Check if app exists + if (checkAppExist(titleid) >= 0) { + uint64_t aid; + sceRegMgrGetKeyBin("/CONFIG/NP", "account_id", &aid, sizeof(uint64_t)); - res = scePromoterUtilityCheckExist(titleid, &ret); - if (res >= 0) - goto ERROR_EXIT; + char rif_name[48]; + char path[MAX_PATH_LENGTH]; + + _sceNpDrmGetRifName(rif_name, 0, aid); + snprintf(path, MAX_PATH_LENGTH, "ux0:license/app/%s/%s", titleid, rif_name); + + if (checkFileExist(path)) + return 0; + + _sceNpDrmGetFixedRifName(rif_name, 0, 0); + snprintf(path, MAX_PATH_LENGTH, "ux0:license/app/%s/%s", titleid, rif_name); + + if (checkFileExist(path)) + return 0; + } // Clean removePath("ux0:temp/game", NULL); @@ -63,24 +79,23 @@ int refreshApp(const char *titleid) { // Rename app res = sceIoRename(path, "ux0:temp/game"); if (res < 0) - goto ERROR_EXIT; + return res; // Remove work.bin for custom homebrews if (isCustomHomebrew()) sceIoRemove("ux0:temp/game/sce_sys/package/work.bin"); - res = scePromoterUtilityPromotePkgWithRif("ux0:temp/game", 1); + // Promote app + res = promoteApp("ux0:temp/game"); - // Rename back if it failed, or set to 1 if succeeded - if (res < 0) + // Rename back if it failed + if (res < 0) { sceIoRename("ux0:temp/game", path); - else - res = 1; + return res; + } -ERROR_EXIT: - scePromoterUtilityExit(); - - return res; + // Return success + return 1; } int refresh_thread(SceSize args, void *argp) { diff --git a/resources/base_head_bin.h b/resources/base_head_bin.h deleted file mode 100644 index 493bf57..0000000 --- a/resources/base_head_bin.h +++ /dev/null @@ -1,110 +0,0 @@ -/* - VitaShell - Copyright (C) 2015-2017, TheFloW - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . -*/ - -unsigned char base_head_bin[] = { - 0x7f, 0x50, 0x4b, 0x47, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x02, 0x80, - 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x01, 0x90, 0x00, 0x00, 0x00, 0x03, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x0a, 0x90, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0xa6, 0x89, 0x94, 0x38, 0x19, 0xf2, 0xdd, 0x05, 0x87, 0x94, 0xb0, 0xb6, - 0x7f, 0xc9, 0x30, 0x76, 0xdc, 0x2f, 0x22, 0xf2, 0x25, 0x40, 0xc6, 0xdf, - 0x94, 0xcb, 0xb7, 0x78, 0xf8, 0xa2, 0x54, 0x95, 0x8c, 0xe6, 0xfd, 0x74, - 0x81, 0x0c, 0xf7, 0x9d, 0x47, 0xb2, 0x86, 0x60, 0x3c, 0x2e, 0x00, 0xbb, - 0xa2, 0x07, 0x59, 0x51, 0xe7, 0x95, 0xa4, 0xed, 0x83, 0x50, 0x35, 0xbc, - 0x65, 0x63, 0xfe, 0x70, 0x8b, 0xab, 0x0c, 0x49, 0x73, 0x9d, 0xa3, 0xc9, - 0x1f, 0x74, 0x48, 0x22, 0x70, 0x93, 0xfc, 0xe9, 0x40, 0xca, 0x74, 0x97, - 0xba, 0xf1, 0xde, 0x1c, 0xaa, 0x67, 0xb7, 0x41, 0x78, 0xd7, 0x15, 0x68, - 0x7f, 0x65, 0x78, 0x74, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x40, - 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x10, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0xe0, 0x00, 0x00, 0x00, 0x00, - 0xc0, 0x00, 0x00, 0x02, 0x00, 0x00, 0x04, 0x20, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0a, 0xa2, 0xcb, 0x21, - 0x8b, 0x37, 0x06, 0x2d, 0x3e, 0x05, 0xfa, 0x11, 0x72, 0x72, 0x88, 0x85, - 0xc9, 0x7b, 0x03, 0x99, 0xa0, 0x70, 0x9c, 0xf8, 0xcf, 0x9d, 0x41, 0x01, - 0xd6, 0x17, 0x9f, 0xd3, 0x57, 0x79, 0x67, 0xf9, 0xb6, 0xf8, 0x56, 0x3d, - 0xca, 0xfc, 0xa1, 0x98, 0xe2, 0xc7, 0xcf, 0xd6, 0x2e, 0x1b, 0xd6, 0x1b, - 0xbe, 0x6f, 0xc1, 0x92, 0xbe, 0xe0, 0xb3, 0xc2, 0xe5, 0x65, 0x5a, 0x45, - 0xd9, 0x88, 0xb4, 0x97, 0x5e, 0x16, 0x31, 0x3d, 0xa2, 0x3e, 0x16, 0xae, - 0xd4, 0xb7, 0xd5, 0x36, 0xe3, 0xac, 0x80, 0x8f, 0x18, 0xfe, 0xad, 0x1a, - 0x85, 0x20, 0xce, 0xee, 0xda, 0x5d, 0xb7, 0x95, 0x46, 0x34, 0xcc, 0x49, - 0x52, 0x09, 0xf6, 0xeb, 0xa5, 0x0a, 0xe5, 0x7c, 0xb5, 0x7f, 0xaf, 0x6f, - 0x4c, 0x06, 0x8c, 0xe4, 0xd8, 0x5a, 0x03, 0xaf, 0x92, 0x4e, 0x95, 0x5b, - 0xbc, 0xe0, 0xc2, 0xac, 0xff, 0x12, 0x95, 0x31, 0x92, 0xad, 0x06, 0xe8, - 0x17, 0x2c, 0xb1, 0xdc, 0x36, 0xa4, 0xc3, 0x9b, 0xe2, 0x3e, 0x2b, 0xec, - 0x65, 0x53, 0xeb, 0x58, 0x84, 0x49, 0x09, 0x0b, 0xf4, 0xc6, 0xb4, 0x02, - 0x70, 0xf3, 0x64, 0x58, 0x75, 0x14, 0x00, 0xf8, 0x68, 0x88, 0x46, 0x7e, - 0x5c, 0xbc, 0xbe, 0x8b, 0x5f, 0xac, 0xe0, 0xe4, 0xa6, 0xf5, 0x77, 0xdd, - 0xd9, 0xe5, 0xaf, 0x05, 0xf0, 0x5d, 0xae, 0x22, 0x7f, 0xb4, 0xd1, 0x1c, - 0x7f, 0xcc, 0x3e, 0x98, 0x55, 0xb9, 0x69, 0xd2, 0xd2, 0x10, 0x55, 0x45, - 0x4b, 0x3c, 0x95, 0x70, 0xb7, 0xc3, 0xdb, 0xfe, 0x23, 0xaf, 0xcd, 0x27, - 0xa2, 0xd3, 0xac, 0x8c, 0x11, 0x09, 0xbf, 0xf6, 0xb2, 0x01, 0x62, 0x09, - 0xc1, 0xda, 0xfd, 0xa7, 0x47, 0xa9, 0x48, 0xf4, 0x46, 0x26, 0x06, 0xf2, - 0x76, 0x4d, 0xfe, 0x6f, 0x3f, 0x10, 0xb0, 0x1c, 0x1a, 0xde, 0x73, 0x8b, - 0x14, 0x73, 0x3c, 0x39, 0xb6, 0xc6, 0x1b, 0xa1, 0x65, 0x99, 0xb8, 0x33, - 0xac, 0xb8, 0x16, 0xb4, 0xe6, 0xa5, 0xec, 0x02, 0x0b, 0x5b, 0x70, 0x23, - 0xeb, 0x24, 0x1a, 0xf7, 0x8c, 0xda, 0x55, 0x96, 0xdd, 0x4b, 0x1c, 0x85, - 0x83, 0x49, 0x01, 0xb2, 0x39, 0xbc, 0x31, 0x3b, 0xe8, 0xf1, 0x5a, 0x49, - 0xcc, 0xcf, 0x0f, 0x85, 0x5f, 0x54, 0x79, 0xe8, 0x31, 0x8d, 0x57, 0x1b, - 0xb1, 0xc2, 0x93, 0x87, 0xe2, 0xe6, 0x56, 0xcf, 0x92, 0x51, 0xfc, 0x49, - 0x94, 0xcd, 0xb5, 0x04, 0x1b, 0x04, 0x47, 0xf7, 0xb4, 0xd2, 0x67, 0x31, - 0x54, 0xf0, 0xad, 0x3a, 0xd4, 0x25, 0x8c, 0xed, 0xe9, 0x9b, 0x12, 0xfc, - 0x47, 0x1c, 0xfc, 0x6e, 0x81, 0x29, 0x8b, 0x39, 0xab, 0xbb, 0xf0, 0x35, - 0x00, 0x87, 0x88, 0x87, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, - 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, - 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, - 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x08, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x90, 0x00, 0x00, 0x00, 0x00, 0x05, - 0x00, 0x00, 0x00, 0x04, 0x19, 0x67, 0x01, 0x00, 0x00, 0x00, 0x00, 0x08, - 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x28, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x1a, 0x92, 0x07, 0x04, - 0x61, 0x0c, 0x9d, 0x14, 0x55, 0x8e, 0x17, 0x74, 0xb6, 0x44, 0xd2, 0x5c, - 0x93, 0xf3, 0xc1, 0x58, 0x0f, 0x91, 0x22, 0x2f, 0xfd, 0xb4, 0x42, 0xaa, - 0x64, 0xfc, 0x8a, 0xd0, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, 0x48, - 0x00, 0x00, 0x05, 0x90, 0x00, 0x00, 0x03, 0x20, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0xbe, 0x9a, 0x07, 0x26, 0x1a, 0x91, 0xd6, 0x35, - 0x93, 0xcd, 0x59, 0xf4, 0x13, 0x23, 0x34, 0x05, 0x5b, 0xc4, 0xf5, 0xc3, - 0x31, 0xf3, 0xf9, 0xf1, 0x7e, 0xdb, 0x7f, 0x53, 0x0f, 0x1a, 0x0a, 0x79, - 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x0a, 0x30, - 0x00, 0x00, 0x00, 0x60, 0xc2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc3, 0x2a, 0xa0, 0xf7, - 0x3a, 0x41, 0x84, 0x7c, 0xb8, 0x66, 0x43, 0x7b, 0xca, 0xcd, 0x68, 0x5e, - 0x44, 0xab, 0xd9, 0x85, 0xc9, 0x6b, 0xad, 0x33, 0xa9, 0xbc, 0x88, 0xc6, - 0x75, 0xc5, 0x23, 0x9e, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x28, - 0x01, 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x7a, 0xfe, 0xf5, 0x79, 0x30, 0xaf, 0x76, 0xe0, - 0x46, 0xfc, 0x75, 0xdf, 0x08, 0x4e, 0xb8, 0x45, 0x3d, 0x4f, 0xcb, 0xf4, - 0x3d, 0x9b, 0xfa, 0x5f, 0x61, 0x99, 0x6a, 0xde, 0x9c, 0x2e, 0x1a, 0x9c, - 0x19, 0x15, 0x10, 0x1d, 0x71, 0xe6, 0xc0, 0x5a, 0x84, 0x3d, 0x20, 0xe8, - 0xae, 0x1e, 0x1c, 0x71, 0x94, 0xee, 0xbc, 0x73, 0x4d, 0x2c, 0x46, 0xbf, - 0x3c, 0xf3, 0x5b, 0x30, 0x3a, 0xc3, 0x18, 0x20, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, - 0xff, 0xff, 0xff, 0xff -}; \ No newline at end of file diff --git a/resources/head.bin b/resources/head.bin new file mode 100644 index 0000000000000000000000000000000000000000..0399fcbd4b24ee48599e3ffb0463f5aa008f6701 GIT binary patch literal 1072 zcmb;q@OEclU|?imU}^x;+(708Ak7TKP$r1M1rh@SW&sFIJh`lMiiPB-yR7X~Hf*au zX;5}YU+I&o!?F8QPH(UHu_$C}&$GWJjXdAyx^HSru+d}Ky@)+B@cGmwZ<_;5_oOEO zE9hR$<5@g+@k#j-52b?1e_lGADw)3P<2{*G>DwJEu8U^Wr&g2zT?2GKg9DIifG}C0 z?&N&{6lXX9^c({Nivoy^4*sJ7u0^L6yUp2j?O1;a78P~0o~&k`xu9UqkMnaK8Lx@Y zzZ_nf{&U-pFxyjq7S4Ed{QNaN>1)#a@()hh_h9p(r>Rk{H#@dWj}tSrU1TS=?#lM7 zW{=l2^h^9(E7huS?%l1}?Ni-M&UglKetW%?>uJr_`t|ufY&}nIL@}?QRxfTNU@FOwqw!@Q)lilUb91N%d@3# zn7E@0lwYezeebyyI_<8vOlz|z<0i{JhSo1WMtPn&&)*s!Qu)HLH(Yw-p~>x!o`s#C z6!^z;%Gs?f(k$-Zw_Hj$4EeCu>WXU5+n2M2{{Y+Kyk+c z#K1TLV-Q;uh(T!(#O8z296%bV8k`haL1L2WAgv4_aflp<$H2e|#1Os;n9mC&HNY$e zh7D4a*jW;J=8A;&iI;41xfC<`^T7!IiAwr^w>Ygz`O|d)sE!|qJs22Rffg|db4TWWTsIai-Ln-S--`ey6N?6t-#_jDX9J*qqps8$e&H5iLP+6aTH ze_tyN)|WkS`%`+K!*7SHt^esSwzGf5C(g{eH%Cuuj-;r7Y~iy5Q7yI#FV@M)6i#`! Xr`T7=ZNJUuXalRm5(;S90fP$w%ZYk| literal 0 HcmV?d00001