mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-07-16 08:05:55 -05:00
38 lines
699 B
C
38 lines
699 B
C
#ifndef GUARD_OPTIONS_H
|
|
#define GUARD_OPTIONS_H
|
|
|
|
#include <cstdint>
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
using namespace std;
|
|
|
|
enum ConvertMode : uint8_t {
|
|
CONV_ENCODE = 0,
|
|
CONV_DECODE,
|
|
CONV_INVALID = 0xFF,
|
|
};
|
|
|
|
enum TextFormat : uint8_t {
|
|
FMT_PLAIN_TEXT = 0,
|
|
FMT_GAMEFREAK_GMM,
|
|
FMT_JSON,
|
|
};
|
|
|
|
struct Options {
|
|
ConvertMode mode = CONV_INVALID;
|
|
int key = 0;
|
|
vector<string> posargs;
|
|
string failReason;
|
|
string charmap;
|
|
bool printUsage = false;
|
|
bool printVersion = false;
|
|
string dumpBinary;
|
|
string gmm_header = "";
|
|
TextFormat textFormat = FMT_PLAIN_TEXT;
|
|
Options(int argc, char ** argv);
|
|
};
|
|
|
|
#endif //GUARD_OPTIONS_H
|