mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-24 18:42:05 +00:00
125 lines
No EOL
7 KiB
C++
125 lines
No EOL
7 KiB
C++
#pragma once
|
|
|
|
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";
|
|
constexpr const char NRO_PATH_REGEX[] = ".*(/switch/.*aio-switch-updater.nro).*";
|
|
constexpr const char DOWNLOAD_PATH[] = "/config/aio-switch-updater/";
|
|
constexpr const char CONFIG_PATH[] = "/config/aio-switch-updater/";
|
|
constexpr const char CONFIG_FILE[] = "/config/aio-switch-updater/config.json";
|
|
constexpr const char CONFIG_PATH_UNZIP[] = "config\\aio-switch-updater";
|
|
|
|
constexpr const char RCM_PAYLOAD_PATH[] = "romfs:/aio_rcm.bin";
|
|
constexpr const char MARIKO_PAYLOAD_PATH[] = "/payload.bin";
|
|
constexpr const char MARIKO_PAYLOAD_PATH_TEMP[] = "/payload.bin.aio";
|
|
|
|
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";
|
|
|
|
constexpr const char NXLINKS_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/nx-links/master/nx-links.json";
|
|
|
|
constexpr const char CUSTOM_FILENAME[] = "/config/aio-switch-updater/custom.zip";
|
|
constexpr const char HEKATE_IPL_PATH[] = "/bootloader/hekate_ipl.ini";
|
|
|
|
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/";
|
|
|
|
constexpr const char CFW_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/nx-links/master/bootloaders.json";
|
|
constexpr const char BOOTLOADER_FILENAME[] = "/config/aio-switch-updater/bootloader.zip";
|
|
|
|
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";
|
|
|
|
constexpr const char HEKATE_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/nx-links/master/hekate.json";
|
|
|
|
constexpr const char PAYLOAD_URL[] = "https://raw.githubusercontent.com/HamletDuFromage/nx-links/master/payloads.json";
|
|
|
|
constexpr const char DEEPSEA_META_JSON[] = "https://builder.teamneptune.net/meta.json";
|
|
constexpr const char DEEPSEA_BUILD_URL[] = "https://builder.teamneptune.net/build/";
|
|
constexpr const char DEEPSEA_PACKAGE_PATH[] = "/config/deepsea/customPackage.json";
|
|
|
|
constexpr const char CUSTOM_PACKS_PATH[] = "/config/aio-switch-updater/custom_packs.json";
|
|
|
|
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";
|
|
constexpr const char CHEATS_URL_VERSION[] = "https://github.com/HamletDuFromage/switch-cheats-db/releases/latest/download/VERSION";
|
|
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";
|
|
constexpr const char VERSIONS_DIRECTORY[] = "https://raw.githubusercontent.com/HamletDuFromage/switch-cheats-db/master/versions/";
|
|
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/";
|
|
|
|
constexpr const char COLOR_PICKER_URL[] = "https://git.io/jcpicker";
|
|
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";
|
|
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/";
|
|
constexpr const char BOOTLOADER_PL_PATH[] = "/bootloader/payloads/";
|
|
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";
|
|
|
|
constexpr const char AMS_DIRECTORY_PATH[] = "/config/aio-switch-updater/atmosphere/";
|
|
constexpr const char SEPT_DIRECTORY_PATH[] = "/config/aio-switch-updater/sept/";
|
|
constexpr const char FW_DIRECTORY_PATH[] = "/firmware/";
|
|
|
|
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";
|
|
|
|
constexpr const char ROMFS_PATH[] = "romfs:/";
|
|
constexpr const char ROMFS_FORWARDER[] = "romfs:/aiosu-forwarder.nro";
|
|
constexpr const char FORWARDER_PATH[] = "/config/aio-switch-updater/aiosu-forwarder.nro";
|
|
|
|
constexpr const char DAYBREAK_PATH[] = "/switch/daybreak.nro";
|
|
|
|
constexpr const char HIDDEN_AIO_FILE[] = "/config/aio-switch-updater/.aio-switch-updater";
|
|
|
|
constexpr const char LOCALISATION_FILE[] = "romfs:/i18n/{}/menus.json";
|
|
|
|
constexpr const int LISTITEM_HEIGHT = 50;
|
|
|
|
enum class contentType
|
|
{
|
|
custom,
|
|
cheats,
|
|
fw,
|
|
app,
|
|
bootloaders,
|
|
ams_cfw,
|
|
payloads,
|
|
hekate_ipl,
|
|
};
|
|
|
|
constexpr std::string_view contentTypeNames[8]{"custom", "cheats", "firmwares", "app", "bootloaders", "cfws", "payloads", "hekate_ipl"};
|
|
|
|
enum class CFW
|
|
{
|
|
rnx,
|
|
sxos,
|
|
ams,
|
|
}; |