mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-08 11:31:43 +00:00
yeah, no shit that wouldn't work
This commit is contained in:
parent
f261cf2f25
commit
14e9ca2fda
2 changed files with 3 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -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/
|
||||
rcm/build/
|
||||
|
|
|
@ -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/");
|
||||
|
|
Loading…
Reference in a new issue