Updater: Do not extract portable.ini

DIO
This commit is contained in:
CharlesThobe 2022-05-30 23:24:54 +02:00 committed by refractionpcsx2
parent eb9507707d
commit d54715a9c3
1 changed files with 3 additions and 1 deletions

View File

@ -238,7 +238,9 @@ bool Updater::ParseZip()
if (!entry.destination_filename.empty() && entry.destination_filename.back() != FS_OSPATH_SEPARATOR_CHARACTER)
{
// skip updater itself, since it was already pre-extracted.
if (StringUtil::Strcasecmp(entry.destination_filename.c_str(), "updater.exe") != 0)
// also skips portable.ini to not mess with future non-portable installs.
if (StringUtil::Strcasecmp(entry.destination_filename.c_str(), "updater.exe") != 0 &&
StringUtil::Strcasecmp(entry.destination_filename.c_str(), "portable.ini") != 0)
{
m_progress->DisplayFormattedInformation("Found file in zip: '%s'", entry.destination_filename.c_str());
m_update_paths.push_back(std::move(entry));