1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2025-03-03 12:45:43 +00:00

Don't ever disable nx-ovlloader sysmodule

This commit is contained in:
clamintus 2022-05-29 15:51:35 +02:00
parent 47ce9d479e
commit 1521432ff3

View file

@ -302,7 +302,8 @@ namespace util {
void removeSysmodulesFlags(const std::string& directory)
{
for (const auto& e : std::filesystem::recursive_directory_iterator(directory)) {
if (e.path().string().find("boot2.flag") != std::string::npos) {
if (e.path().string().find("boot2.flag") != std::string::npos &&
e.path().string().find("420000000007E51A") == std::string::npos) {
std::filesystem::remove(e.path());
}
}