From 14e9ca2fdafd3e529095cc7a69e029505e34abe5 Mon Sep 17 00:00:00 2001 From: flb Date: Thu, 28 Jan 2021 21:01:50 +0100 Subject: [PATCH] yeah, no shit that wouldn't work --- .gitignore | 3 ++- aiosu-forwarder/source/main.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c597b4b..230579c 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ switch/ *.nro *.zip *.bin +*.nsp resources/i18n/zh-Hans resources/i18n/zh-Hant resources/i18n/en-GB @@ -16,4 +17,4 @@ resources/material resources/inter resources/.gitignore rcm/output/ -rcm/build/ \ No newline at end of file +rcm/build/ diff --git a/aiosu-forwarder/source/main.cpp b/aiosu-forwarder/source/main.cpp index 16356cd..f96da37 100644 --- a/aiosu-forwarder/source/main.cpp +++ b/aiosu-forwarder/source/main.cpp @@ -15,7 +15,6 @@ int main(int argc, char* argv[]) { std::filesystem::create_directory(PATH); - std::filesystem::remove(FULL_PATH); for (const auto & entry : std::filesystem::directory_iterator(PATH)){ if(entry.path().string().find(PREFIX) != std::string::npos) { std::filesystem::remove(entry.path().string()); @@ -25,6 +24,7 @@ int main(int argc, char* argv[]) if(std::filesystem::exists(CONFIG_PATH)){ std::filesystem::create_directory(PATH); + std::filesystem::remove(FULL_PATH); std::filesystem::rename(CONFIG_PATH, FULL_PATH); std::filesystem::remove_all("/config/aio-switch-updater/switch/aio-switch-updater/"); rmdir("/config/aio-switch-updater/switch/aio-switch-updater/");