pokeheartgold/tools/msgenc/Options.h
Konrad Borowski b5813304a1 Fix build on Fedora 38
It's necessary to explicitly include cstdint when compiling
pokeheartgold on Fedora 38.
2023-04-18 23:17:54 +02:00

35 lines
702 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,
};
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 = "";
typedef int txtfmt;
static const txtfmt PlainText = 0;
static const txtfmt GamefreakGMM = 1;
txtfmt textFormat = PlainText;
Options(int argc, char ** argv);
};
#endif //GUARD_OPTIONS_H