mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-12-29 10:56:01 +00:00
small tweaks
This commit is contained in:
parent
a228cf5c7b
commit
4fa5e44f73
2 changed files with 5 additions and 2 deletions
|
@ -8,6 +8,8 @@
|
|||
#define CONFIG_PATH "/config/aio-switch-updater/switch/aio-switch-updater/aio-switch-updater.nro"
|
||||
#define PREFIX "/switch/aio-switch-updater/aio-switch-updater-v"
|
||||
#define FORWARDER_PATH "/config/aio-switch-updater/aiosu-forwarder.nro"
|
||||
#define CONFIG_SWITCH "/config/aio-switch-updater/switch/"
|
||||
#define HIDDEN_FILE "/config/aio-switch-updater/.aio-switch-updater"
|
||||
|
||||
int removeDir(const char* path)
|
||||
{
|
||||
|
@ -28,12 +30,13 @@ int main(int argc, char* argv[])
|
|||
std::filesystem::remove(entry.path().string() + ".star");
|
||||
}
|
||||
}
|
||||
std::filesystem::remove(HIDDEN_FILE);
|
||||
|
||||
if(std::filesystem::exists(CONFIG_PATH)){
|
||||
std::filesystem::create_directory(PATH);
|
||||
std::filesystem::remove(FULL_PATH);
|
||||
std::filesystem::rename(CONFIG_PATH, FULL_PATH);
|
||||
removeDir("/config/aio-switch-updater/switch/");
|
||||
removeDir(CONFIG_SWITCH);
|
||||
}
|
||||
|
||||
std::filesystem::remove(FORWARDER_PATH);
|
||||
|
|
|
@ -34,7 +34,7 @@ DownloadCheatsPage::DownloadCheatsPage(uint64_t tid) : AppletFrame(true, true)
|
|||
if(cheatsInfo.find("cheats") != cheatsInfo.end()) {
|
||||
for (const auto& p : cheatsInfo["cheats"].items()) {
|
||||
json cheat = p.value();
|
||||
listItem = new::brls::ToggleListItem(GetCheatsTitle(cheat), 0);
|
||||
listItem = new::brls::ToggleListItem(GetCheatsTitle(cheat), 0, "", "\uE016", "o");
|
||||
listItem->registerAction("menus/see_more"_i18n , brls::Key::Y, [this, cheat] {
|
||||
if(cheat.find("titles") != cheat.end()) {
|
||||
ShowCheatsContent(cheat["titles"]);
|
||||
|
|
Loading…
Reference in a new issue