summaryrefslogtreecommitdiff
path: root/mm/2s2h/Rando/Spoiler/Spoiler.h
blob: 5939e54baecdc5fb6ace2b3f8c3369e9ac184036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef RANDO_SPOILER_H
#define RANDO_SPOILER_H

#include <vector>
#include <string>
#include "nlohmann/json.hpp"

namespace Rando {

namespace Spoiler {

extern std::vector<std::string> spoilerOptions;
void RefreshOptions();
void SelectSpoiler(s32 index);
nlohmann::json GenerateFromSaveContext();
void SaveToFile(const std::string& fileName, nlohmann::json spoiler);
nlohmann::json LoadFromFile(const std::string& filePath);
void ApplyToSaveContext(nlohmann::json spoiler);
bool HandleFileDropped(char* path);

} // namespace Spoiler

} // namespace Rando

#endif