#include "absl/debugging/failure_signal_handler.h"
#include "absl/debugging/symbolize.h"
#include "app/core/controller.h"
#include "app/core/features.h"
#include "util/flag.h"
#include "util/log.h"
Go to the source code of this file.
Namespaces | |
namespace | yaze |
Main namespace for the application. | |
Macros | |
#define | IMGUI_DEFINE_MATH_OPERATORS |
Functions | |
DEFINE_FLAG (std::string, rom_file, "", "The ROM file to load.") | |
DEFINE_FLAG (std::string, log_file, "", "Output log file path for debugging.") | |
DEFINE_FLAG (bool, debug, false, "Enable debug logging and verbose output.") | |
DEFINE_FLAG (std::string, log_categories, "", "Comma-separated list of log categories to enable. " "If empty, all categories are logged. " "Example: --log_categories=\"Room,DungeonEditor\" to filter noisy logs.") | |
DEFINE_FLAG (std::string, editor, "", "The editor to open on startup. " "Available editors: Assembly, Dungeon, Graphics, Music, Overworld, " "Palette, Screen, Sprite, Message, Hex, Agent, Settings. " "Example: --editor=Dungeon") | |
DEFINE_FLAG (std::string, cards, "", "A comma-separated list of cards to open within the specified editor. " "For Dungeon editor: 'Rooms List', 'Room Matrix', 'Entrances List', " "'Room Graphics', 'Object Editor', 'Palette Editor', or 'Room N' (where N is room ID). " "Example: --cards=\"Rooms List,Room 0,Room 105\"") | |
int | main (int argc, char **argv) |
DEFINE_FLAG | ( | std::string | , |
rom_file | , | ||
"" | , | ||
"The ROM file to load." | |||
) |
DEFINE_FLAG | ( | std::string | , |
log_file | , | ||
"" | , | ||
"Output log file path for debugging." | |||
) |
DEFINE_FLAG | ( | bool | , |
debug | , | ||
false | , | ||
"Enable debug logging and verbose output." | |||
) |
DEFINE_FLAG | ( | std::string | , |
log_categories | , | ||
"" | , | ||
"Comma-separated list of log categories to enable. " "If | empty, | ||
all categories are logged. " "Example:-- | log_categories = \"Room,DungeonEditor\" to filter noisy logs." |
||
) |
DEFINE_FLAG | ( | std::string | , |
editor | , | ||
"" | , | ||
"The editor to open on startup. " "Available editors: | Assembly, | ||
Dungeon | , | ||
Graphics | , | ||
Music | , | ||
Overworld | , | ||
" " | Palette, | ||
Screen | , | ||
Sprite | , | ||
Message | , | ||
Hex | , | ||
Agent | |||
) |
DEFINE_FLAG | ( | std::string | , |
cards | , | ||
"" | , | ||
"A comma-separated list of cards to open within the specified editor. " "For Dungeon editor: 'Rooms List' | , | ||
'Room Matrix' | , | ||
'Entrances List' | , | ||
" " 'Room Graphics' | , | ||
'Object Editor' | , | ||
'Palette Editor' | , | ||
or 'Room N'(where N is room ID). " "Example:-- | cards = \"Rooms List,Room 0,Room 105\"" |
||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 51 of file main.cc.
References yaze::util::LogManager::configure(), EXIT_IF_ERROR, yaze::core::FeatureFlags::get(), yaze::test::TestManager::Get(), yaze::util::global_flag_registry(), yaze::util::INFO, yaze::util::LogManager::instance(), yaze::core::FeatureFlags::Flags::kLogToConsole, LOG_INFO, yaze::util::FlagParser::Parse(), RETURN_IF_EXCEPTION, and yaze::util::YAZE_DEBUG.