yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
z3ed.cc
Go to the documentation of this file.
1#include "cli/z3ed.h"
2
3#include <cstring>
4#include <iostream>
5#include <memory>
6#include <string>
7#include <unordered_map>
8#include <vector>
9
10#include "cli/tui.h"
11#include "util/flag.h"
12#include "util/macro.h"
13
14DEFINE_FLAG(std::string, rom_file, "", "The ROM file to load.");
15DEFINE_FLAG(std::string, bps_file, "", "The BPS file to apply.");
16
17DEFINE_FLAG(std::string, src_file, "", "The source file.");
18DEFINE_FLAG(std::string, modified_file, "", "The modified file.");
19
20DEFINE_FLAG(std::string, bin_file, "", "The binary file to export to.");
21DEFINE_FLAG(std::string, address, "", "The address to convert.");
22DEFINE_FLAG(std::string, length, "", "The length of the data to read.");
23
24DEFINE_FLAG(std::string, file_size, "", "The size of the file to expand to.");
25DEFINE_FLAG(std::string, dest_rom, "", "The destination ROM file.");
26
27int main(int argc, char *argv[]) {
29 RETURN_IF_EXCEPTION(flag_parser.Parse(argc, argv));
31 return EXIT_SUCCESS;
32}
void Parse(int argc, char **argv)
Definition flag.h:119
#define DEFINE_FLAG(type, name, default_val, help_text)
Definition flag.h:106
#define RETURN_IF_EXCEPTION(expression)
Definition macro.h:101
void ShowMain()
Definition tui.cc:568
FlagRegistry * global_flag_registry()
Definition flag.h:99
int main(int argc, char *argv[])
Definition z3ed.cc:27