mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-28 12:22:02 +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
|
*.nro
|
||||||
*.zip
|
*.zip
|
||||||
*.bin
|
*.bin
|
||||||
|
*.nsp
|
||||||
resources/i18n/zh-Hans
|
resources/i18n/zh-Hans
|
||||||
resources/i18n/zh-Hant
|
resources/i18n/zh-Hant
|
||||||
resources/i18n/en-GB
|
resources/i18n/en-GB
|
||||||
|
@ -16,4 +17,4 @@ resources/material
|
||||||
resources/inter
|
resources/inter
|
||||||
resources/.gitignore
|
resources/.gitignore
|
||||||
rcm/output/
|
rcm/output/
|
||||||
rcm/build/
|
rcm/build/
|
||||||
|
|
|
@ -15,7 +15,6 @@ int main(int argc, char* argv[])
|
||||||
|
|
||||||
{
|
{
|
||||||
std::filesystem::create_directory(PATH);
|
std::filesystem::create_directory(PATH);
|
||||||
std::filesystem::remove(FULL_PATH);
|
|
||||||
for (const auto & entry : std::filesystem::directory_iterator(PATH)){
|
for (const auto & entry : std::filesystem::directory_iterator(PATH)){
|
||||||
if(entry.path().string().find(PREFIX) != std::string::npos) {
|
if(entry.path().string().find(PREFIX) != std::string::npos) {
|
||||||
std::filesystem::remove(entry.path().string());
|
std::filesystem::remove(entry.path().string());
|
||||||
|
@ -25,6 +24,7 @@ int main(int argc, char* argv[])
|
||||||
|
|
||||||
if(std::filesystem::exists(CONFIG_PATH)){
|
if(std::filesystem::exists(CONFIG_PATH)){
|
||||||
std::filesystem::create_directory(PATH);
|
std::filesystem::create_directory(PATH);
|
||||||
|
std::filesystem::remove(FULL_PATH);
|
||||||
std::filesystem::rename(CONFIG_PATH, FULL_PATH);
|
std::filesystem::rename(CONFIG_PATH, FULL_PATH);
|
||||||
std::filesystem::remove_all("/config/aio-switch-updater/switch/aio-switch-updater/");
|
std::filesystem::remove_all("/config/aio-switch-updater/switch/aio-switch-updater/");
|
||||||
rmdir("/config/aio-switch-updater/switch/aio-switch-updater/");
|
rmdir("/config/aio-switch-updater/switch/aio-switch-updater/");
|
||||||
|
|
Loading…
Reference in a new issue