Loading twinstall.cpp +9 −2 Original line number Diff line number Diff line Loading @@ -269,15 +269,22 @@ extern "C" int TWinstall_zip(const char* path, int* wipe_cache) { DataManager::GetValue(TW_SIGNED_ZIP_VERIFY_VAR, zip_verify); #endif DataManager::SetProgress(0); MemMapping map; if (sysMapFile(path, &map) != 0) { LOGERR("Failed to sysMapFile '%s'\n", path); return -1; } if (zip_verify) { gui_print("Verifying zip signature...\n"); ret_val = verify_file(path); ret_val = verify_file(map.addr, map.length); if (ret_val != VERIFY_SUCCESS) { LOGERR("Zip signature verification failed: %i\n", ret_val); return -1; } } ret_val = mzOpenZipArchive(path, &Zip); ret_val = mzOpenZipArchive(map.addr, map.length, &Zip); if (ret_val != 0) { LOGERR("Zip file is corrupt!\n", path); return INSTALL_CORRUPT; Loading Loading
twinstall.cpp +9 −2 Original line number Diff line number Diff line Loading @@ -269,15 +269,22 @@ extern "C" int TWinstall_zip(const char* path, int* wipe_cache) { DataManager::GetValue(TW_SIGNED_ZIP_VERIFY_VAR, zip_verify); #endif DataManager::SetProgress(0); MemMapping map; if (sysMapFile(path, &map) != 0) { LOGERR("Failed to sysMapFile '%s'\n", path); return -1; } if (zip_verify) { gui_print("Verifying zip signature...\n"); ret_val = verify_file(path); ret_val = verify_file(map.addr, map.length); if (ret_val != VERIFY_SUCCESS) { LOGERR("Zip signature verification failed: %i\n", ret_val); return -1; } } ret_val = mzOpenZipArchive(path, &Zip); ret_val = mzOpenZipArchive(map.addr, map.length, &Zip); if (ret_val != 0) { LOGERR("Zip file is corrupt!\n", path); return INSTALL_CORRUPT; Loading