2020-09-20 01:21:28 +01:00
|
|
|
#pragma once
|
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char ROOT_PATH[] = "/";
|
|
|
|
constexpr const char APP_PATH[] = "/switch/aio-switch-updater/";
|
|
|
|
constexpr const char NRO_PATH[] = "/switch/aio-switch-updater/aio-switch-updater.nro";
|
2022-10-31 18:59:48 +00:00
|
|
|
constexpr const char NRO_PATH_REGEX[] = ".*(/switch/.*aio-switch-updater.nro).*";
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char DOWNLOAD_PATH[] = "/config/aio-switch-updater/";
|
|
|
|
constexpr const char CONFIG_PATH[] = "/config/aio-switch-updater/";
|
2022-08-10 13:27:04 +01:00
|
|
|
constexpr const char CONFIG_FILE[] = "/config/aio-switch-updater/config.json";
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char CONFIG_PATH_UNZIP[] = "config\\aio-switch-updater";
|
|
|
|
|
|
|
|
constexpr const char RCM_PAYLOAD_PATH[] = "romfs:/aio_rcm.bin";
|
2021-05-21 17:12:58 +01:00
|
|
|
constexpr const char MARIKO_PAYLOAD_PATH[] = "/payload.bin";
|
|
|
|
constexpr const char MARIKO_PAYLOAD_PATH_TEMP[] = "/payload.bin.aio";
|
2021-03-16 02:04:21 +00:00
|
|
|
|
2023-05-14 15:52:22 +01:00
|
|
|
constexpr const char CHANGELOG_URL[] = "https://github.com/HamletDuFromage/aio-switch-updater/releases";
|
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char APP_URL[] = "https://github.com/HamletDuFromage/aio-switch-updater/releases/latest/download/aio-switch-updater.zip";
|
|
|
|
constexpr const char TAGS_INFO[] = "https://api.github.com/repos/HamletDuFromage/aio-switch-updater/releases/latest";
|
|
|
|
constexpr const char APP_FILENAME[] = "/config/aio-switch-updater/app.zip";
|
2021-03-16 02:04:21 +00:00
|
|
|
|
2021-09-15 16:23:37 +01:00
|
|
|
constexpr const char NXLINKS_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/nx-links/master/nx-links.json";
|
|
|
|
|
2022-10-16 12:31:02 +01:00
|
|
|
constexpr const char CUSTOM_FILENAME[] = "/config/aio-switch-updater/custom.zip";
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char HEKATE_IPL_PATH[] = "/bootloader/hekate_ipl.ini";
|
2021-03-16 02:04:21 +00:00
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char FIRMWARE_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/nx-links/master/firmwares.json";
|
|
|
|
constexpr const char FIRMWARE_FILENAME[] = "/config/aio-switch-updater/firmware.zip";
|
|
|
|
constexpr const char FIRMWARE_PATH[] = "/firmware/";
|
2021-03-16 02:04:21 +00:00
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char CFW_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/nx-links/master/bootloaders.json";
|
2022-08-07 14:39:17 +01:00
|
|
|
constexpr const char BOOTLOADER_FILENAME[] = "/config/aio-switch-updater/bootloader.zip";
|
2021-03-16 02:04:21 +00:00
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char AMS_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/nx-links/master/cfws.json";
|
|
|
|
constexpr const char SXOS_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/nx-links/master/sxos.json";
|
|
|
|
constexpr const char AMS_FILENAME[] = "/config/aio-switch-updater/ams.zip";
|
2021-03-16 02:04:21 +00:00
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char HEKATE_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/nx-links/master/hekate.json";
|
2021-03-16 02:04:21 +00:00
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char PAYLOAD_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/nx-links/master/payloads.json";
|
2021-03-16 02:04:21 +00:00
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char DEEPSEA_META_JSON[] = "https://builder.teamneptune.net/meta.json";
|
|
|
|
constexpr const char DEEPSEA_BUILD_URL[] = "https://builder.teamneptune.net/build/";
|
2021-07-07 15:59:52 +01:00
|
|
|
constexpr const char DEEPSEA_PACKAGE_PATH[] = "/config/deepsea/customPackage.json";
|
|
|
|
|
2022-09-06 19:45:26 +01:00
|
|
|
constexpr const char CUSTOM_PACKS_PATH[] = "/config/aio-switch-updater/custom_packs.json";
|
2021-07-09 00:14:07 +01:00
|
|
|
|
2021-10-27 16:56:29 +01:00
|
|
|
constexpr const char CHEATS_URL_TITLES[] = "https://github.com/HamletDuFromage/switch-cheats-db/releases/latest/download/titles.zip";
|
|
|
|
constexpr const char CHEATS_URL_CONTENTS[] = "https://github.com/HamletDuFromage/switch-cheats-db/releases/latest/download/contents.zip";
|
2022-12-05 01:40:05 +00:00
|
|
|
constexpr const char GFX_CHEATS_URL_TITLES[] = "https://github.com/HamletDuFromage/switch-cheats-db/releases/latest/download/titles_60fps-res-gfx.zip";
|
|
|
|
constexpr const char GFX_CHEATS_URL_CONTENTS[] = "https://github.com/HamletDuFromage/switch-cheats-db/releases/latest/download/contents_60fps-res-gfx.zip";
|
2021-10-27 16:56:29 +01:00
|
|
|
constexpr const char CHEATS_URL_VERSION[] = "https://github.com/HamletDuFromage/switch-cheats-db/releases/latest/download/VERSION";
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char LOOKUP_TABLE_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/switch-cheats-db/master/versions.json";
|
|
|
|
constexpr const char LOOKUP_TABLE_CBOR[] = "https://github.com/HamletDuFromage/switch-cheats-db/raw/master/versions.cbor";
|
2021-03-22 01:32:04 +00:00
|
|
|
constexpr const char VERSIONS_DIRECTORY[] = "https://raw.githubusercontent.com/HamletDuFromage/switch-cheats-db/master/versions/";
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char CHEATS_DIRECTORY[] = "https://raw.githubusercontent.com/HamletDuFromage/switch-cheats-db/master/cheats/";
|
|
|
|
constexpr const char CHEATSLIPS_CHEATS_URL[] = "https://www.cheatslips.com/api/v1/cheats/";
|
|
|
|
constexpr const char CHEATSLIPS_TOKEN_URL[] = "https://www.cheatslips.com/api/v1/token";
|
|
|
|
constexpr const char TOKEN_PATH[] = "/config/aio-switch-updater/token.json";
|
|
|
|
constexpr const char CHEATS_FILENAME[] = "/config/aio-switch-updater/cheats.zip";
|
|
|
|
constexpr const char CHEATS_EXCLUDE[] = "/config/aio-switch-updater/exclude.txt";
|
|
|
|
constexpr const char FILES_IGNORE[] = "/config/aio-switch-updater/preserve.txt";
|
|
|
|
constexpr const char INTERNET_JSON[] = "/config/aio-switch-updater/internet.json";
|
|
|
|
constexpr const char UPDATED_TITLES_PATH[] = "/config/aio-switch-updater/updated.dat";
|
|
|
|
constexpr const char CHEATS_VERSION[] = "/config/aio-switch-updater/cheats_version.dat";
|
|
|
|
constexpr const char AMS_CONTENTS[] = "/atmosphere/contents/";
|
|
|
|
constexpr const char REINX_CONTENTS[] = "/ReiNX/contents/";
|
|
|
|
constexpr const char SXOS_TITLES[] = "/sxos/titles/";
|
|
|
|
constexpr const char AMS_PATH[] = "/atmosphere/";
|
|
|
|
constexpr const char SXOS_PATH[] = "/sxos/";
|
|
|
|
constexpr const char REINX_PATH[] = "/ReiNX/";
|
|
|
|
constexpr const char CONTENTS_PATH[] = "contents/";
|
|
|
|
constexpr const char TITLES_PATH[] = "titles/";
|
|
|
|
|
2021-10-27 16:56:29 +01:00
|
|
|
constexpr const char COLOR_PICKER_URL[] = "https://git.io/jcpicker";
|
2022-01-06 00:35:39 +00:00
|
|
|
constexpr const char JC_COLOR_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/aio-switch-updater/master/jc_profiles.json";
|
|
|
|
constexpr const char JC_COLOR_PATH[] = "/config/aio-switch-updater/jc_profiles.json";
|
|
|
|
constexpr const char PC_COLOR_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/aio-switch-updater/master/pc_profiles.json";
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char PC_COLOR_PATH[] = "/config/aio-switch-updater/pc_profiles.json";
|
|
|
|
|
|
|
|
constexpr const char PAYLOAD_PATH[] = "/payloads/";
|
|
|
|
constexpr const char BOOTLOADER_PATH[] = "/bootloader/";
|
2021-03-16 02:04:21 +00:00
|
|
|
constexpr const char BOOTLOADER_PL_PATH[] = "/bootloader/payloads/";
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char UPDATE_BIN_PATH[] = "/bootloader/update.bin";
|
|
|
|
constexpr const char REBOOT_PAYLOAD_PATH[] = "/atmosphere/reboot_payload.bin";
|
|
|
|
constexpr const char FUSEE_SECONDARY[] = "/atmosphere/fusee-secondary.bin";
|
|
|
|
constexpr const char FUSEE_MTC[] = "/atmosphere/fusee-mtc.bin";
|
|
|
|
|
2021-03-16 02:04:21 +00:00
|
|
|
constexpr const char AMS_DIRECTORY_PATH[] = "/config/aio-switch-updater/atmosphere/";
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char SEPT_DIRECTORY_PATH[] = "/config/aio-switch-updater/sept/";
|
|
|
|
constexpr const char FW_DIRECTORY_PATH[] = "/firmware/";
|
2021-03-16 02:04:21 +00:00
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char HIDE_TABS_JSON[] = "/config/aio-switch-updater/hide_tabs.json";
|
|
|
|
constexpr const char COPY_FILES_TXT[] = "/config/aio-switch-updater/copy_files.txt";
|
|
|
|
constexpr const char LANGUAGE_JSON[] = "/config/aio-switch-updater/language.json";
|
|
|
|
constexpr const char HOMEBREW[] = "/config/aio-switch-updater/language.json";
|
2021-03-16 02:04:21 +00:00
|
|
|
|
2021-10-27 16:56:29 +01:00
|
|
|
constexpr const char ROMFS_PATH[] = "romfs:/";
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char ROMFS_FORWARDER[] = "romfs:/aiosu-forwarder.nro";
|
|
|
|
constexpr const char FORWARDER_PATH[] = "/config/aio-switch-updater/aiosu-forwarder.nro";
|
2021-03-16 02:04:21 +00:00
|
|
|
|
2021-09-12 14:01:40 +01:00
|
|
|
constexpr const char DAYBREAK_PATH[] = "/switch/daybreak.nro";
|
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const char HIDDEN_AIO_FILE[] = "/config/aio-switch-updater/.aio-switch-updater";
|
2021-03-16 02:04:21 +00:00
|
|
|
|
2022-04-21 14:48:21 +01:00
|
|
|
constexpr const char LOCALISATION_FILE[] = "romfs:/i18n/{}/menus.json";
|
2022-04-21 00:58:50 +01:00
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
constexpr const int LISTITEM_HEIGHT = 50;
|
2021-03-16 02:04:21 +00:00
|
|
|
|
2021-09-27 20:56:41 +01:00
|
|
|
enum class contentType
|
2021-09-11 14:48:13 +01:00
|
|
|
{
|
2022-10-16 12:31:02 +01:00
|
|
|
custom,
|
2020-09-20 01:21:28 +01:00
|
|
|
cheats,
|
|
|
|
fw,
|
|
|
|
app,
|
2021-09-15 16:23:37 +01:00
|
|
|
bootloaders,
|
2020-12-12 15:41:56 +00:00
|
|
|
ams_cfw,
|
2021-09-27 20:56:41 +01:00
|
|
|
payloads,
|
2022-02-20 15:33:54 +00:00
|
|
|
hekate_ipl,
|
2020-09-20 01:21:28 +01:00
|
|
|
};
|
|
|
|
|
2022-10-16 12:31:02 +01:00
|
|
|
constexpr std::string_view contentTypeNames[8]{"custom", "cheats", "firmwares", "app", "bootloaders", "cfws", "payloads", "hekate_ipl"};
|
2021-09-27 20:56:41 +01:00
|
|
|
|
2021-09-11 14:48:13 +01:00
|
|
|
enum class CFW
|
|
|
|
{
|
2020-09-20 01:21:28 +01:00
|
|
|
rnx,
|
|
|
|
sxos,
|
|
|
|
ams,
|
|
|
|
};
|