ysyx-workbench/npc/include/config.hpp

24 lines
558 B
C++
Raw Normal View History

2024-04-09 09:03:21 +00:00
#ifndef _NPC_CONFIG_H_
#define _NPC_CONFIG_H_
#include <CLI/App.hpp>
#include <CLI/CLI.hpp>
#include <CLI/Validators.hpp>
2024-04-12 01:35:41 +00:00
#include <cstddef>
2024-04-09 09:03:21 +00:00
#include <filesystem>
2024-04-12 01:35:41 +00:00
#include <utility>
2024-04-09 09:03:21 +00:00
struct Config {
std::filesystem::path memory_file;
2024-04-12 01:35:41 +00:00
uint64_t max_sim_time = 0;
2024-04-09 09:03:21 +00:00
bool memory_file_binary = {true};
2024-04-12 01:35:41 +00:00
bool do_mtrace{false};
std::vector<std::array<std::size_t, 2>> mtrace_ranges{
{0x80000000, 0x8ffffffff}};
2024-04-09 09:03:21 +00:00
std::filesystem::path wavefile;
std::filesystem::path lib_ref;
void cli_parse(int argc, char **argv);
};
extern Config config;
#endif