2021-02-06 17:24:47 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <borealis.hpp>
|
|
|
|
#include <switch.h>
|
|
|
|
#include "json.hpp"
|
|
|
|
|
|
|
|
class DownloadCheatsPage : public brls::AppletFrame
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
brls::List* list;
|
|
|
|
brls::Label* label;
|
|
|
|
brls::ListItem* del;
|
|
|
|
brls::ToggleListItem* listItem;
|
|
|
|
std::vector<std::pair<brls::ToggleListItem*, int>> toggles;
|
|
|
|
|
|
|
|
public:
|
|
|
|
DownloadCheatsPage(uint64_t tid);
|
|
|
|
std::string GetBuilID(uint64_t tid);
|
|
|
|
std::string GetCheatsTitle(nlohmann::json cheat);
|
|
|
|
void WriteCheats(uint64_t tid, std::string bid, std::string cheatContent);
|
|
|
|
void DeleteCheats(uint64_t tid, std::string bid);
|
2021-02-09 15:27:18 +00:00
|
|
|
void ShowCheatsContent(nlohmann::ordered_json titles);
|
2021-02-06 17:24:47 +00:00
|
|
|
};
|