2022-01-16 01:04:43 +01:00
|
|
|
#pragma once
|
|
|
|
|
2022-02-02 19:57:14 +01:00
|
|
|
#include "ACTAccountInfo.h"
|
2022-01-18 14:17:15 +01:00
|
|
|
#include <cstdint>
|
2022-08-25 19:54:10 +02:00
|
|
|
#include <map>
|
2022-01-18 14:17:15 +01:00
|
|
|
#include <memory>
|
|
|
|
#include <nn/act.h>
|
2022-02-02 19:57:14 +01:00
|
|
|
#include <string>
|
2022-01-18 14:17:15 +01:00
|
|
|
#include <vector>
|
2022-01-16 01:04:43 +01:00
|
|
|
|
2022-09-04 21:19:54 +02:00
|
|
|
#define UPDATE_SKIP_PATH "fs:/vol/external01/wiiu/environments/skipUpdateWarn"
|
|
|
|
|
2022-02-03 14:01:11 +01:00
|
|
|
#define COLOR_WHITE Color(0xffffffff)
|
|
|
|
#define COLOR_BLACK Color(0, 0, 0, 255)
|
|
|
|
#define COLOR_BACKGROUND COLOR_BLACK
|
2022-09-04 21:19:54 +02:00
|
|
|
#define COLOR_BACKGROUND_WARN Color(255, 40, 0, 255)
|
2022-02-03 14:01:11 +01:00
|
|
|
#define COLOR_TEXT COLOR_WHITE
|
|
|
|
#define COLOR_TEXT2 Color(0xB3ffffff)
|
|
|
|
#define COLOR_AUTOBOOT Color(0xaeea00ff)
|
|
|
|
#define COLOR_BORDER Color(204, 204, 204, 255)
|
|
|
|
#define COLOR_BORDER_HIGHLIGHTED Color(0x3478e4ff)
|
2022-01-16 01:04:43 +01:00
|
|
|
|
|
|
|
enum {
|
|
|
|
BOOT_OPTION_WII_U_MENU,
|
|
|
|
BOOT_OPTION_HOMEBREW_LAUNCHER,
|
|
|
|
BOOT_OPTION_VWII_SYSTEM_MENU,
|
|
|
|
BOOT_OPTION_VWII_HOMEBREW_CHANNEL,
|
|
|
|
};
|
|
|
|
|
|
|
|
int32_t readAutobootOption(std::string &configPath);
|
|
|
|
|
|
|
|
void writeAutobootOption(std::string &configPath, int32_t autobootOption);
|
|
|
|
|
2022-08-25 19:54:10 +02:00
|
|
|
int32_t handleMenuScreen(std::string &configPath, int32_t autobootOptionInput, const std::map<uint32_t, std::string> &menu);
|
2022-01-18 14:17:15 +01:00
|
|
|
|
2022-09-04 21:19:54 +02:00
|
|
|
nn::act::SlotNo handleAccountSelectScreen(const std::vector<std::shared_ptr<AccountInfo>> &data);
|
|
|
|
|
|
|
|
void handleUpdateWarningScreen();
|
2023-04-02 11:59:16 +02:00
|
|
|
|
|
|
|
bool handleDiscInsertScreen(uint64_t expectedTitleId, uint64_t *titleIdToLaunch);
|