yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
overworld_validate_commands.h
Go to the documentation of this file.
1#ifndef YAZE_CLI_HANDLERS_TOOLS_OVERWORLD_VALIDATE_COMMANDS_H
2#define YAZE_CLI_HANDLERS_TOOLS_OVERWORLD_VALIDATE_COMMANDS_H
3
5
6namespace yaze::cli {
7
18 public:
19 std::string GetName() const override { return "overworld-validate"; }
20
21 std::string GetDescription() const {
22 return "Validate overworld map32 pointers and decompression";
23 }
24
25 std::string GetUsage() const override {
26 return "overworld-validate --rom <path> [--include-tail] [--check-tile16] "
27 "[--format json|text] [--verbose]";
28 }
29
30 std::string GetDefaultFormat() const override { return "text"; }
31
32 std::string GetOutputTitle() const override { return "Overworld Validation"; }
33
34 Descriptor Describe() const override {
35 Descriptor desc;
36 desc.display_name = "overworld-validate";
37 desc.summary = "Validate map32 pointer tables and decompression for all "
38 "overworld maps. Detects corruption and pointer issues.";
39 desc.todo_reference = "todo#overworld-validate";
40 return desc;
41 }
42
43 absl::Status ValidateArgs(
44 const resources::ArgumentParser& parser) override {
45 return absl::OkStatus();
46 }
47
48 absl::Status Execute(Rom* rom, const resources::ArgumentParser& parser,
49 resources::OutputFormatter& formatter) override;
50};
51
52} // namespace yaze::cli
53
54#endif // YAZE_CLI_HANDLERS_TOOLS_OVERWORLD_VALIDATE_COMMANDS_H
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Definition rom.h:49
Validate overworld map32 pointers and decompression.
absl::Status Execute(Rom *rom, const resources::ArgumentParser &parser, resources::OutputFormatter &formatter) override
Execute the command business logic.
std::string GetUsage() const override
Get the command usage string.
std::string GetOutputTitle() const override
Get the output title for formatting.
Descriptor Describe() const override
Provide metadata for TUI/help summaries.
std::string GetDefaultFormat() const override
Get the default output format ("json" or "text")
absl::Status ValidateArgs(const resources::ArgumentParser &parser) override
Validate command arguments.
std::string GetName() const override
Get the command name.
Utility for parsing common CLI argument patterns.
Base class for CLI command handlers.
Utility for consistent output formatting across commands.