rename command.h to z3ed.h, update structure
This commit is contained in:
@@ -7,13 +7,13 @@
|
|||||||
|
|
||||||
#include "absl/flags/flag.h"
|
#include "absl/flags/flag.h"
|
||||||
#include "app/core/constants.h"
|
#include "app/core/constants.h"
|
||||||
#include "cli/command.h"
|
#include "cli/z3ed.h"
|
||||||
|
#include "tui.h"
|
||||||
|
|
||||||
ABSL_FLAG(bool, verbose, false, "Enable verbose output");
|
ABSL_FLAG(bool, verbose, false, "Enable verbose output");
|
||||||
ABSL_FLAG(bool, debug, false, "Enable debug output");
|
ABSL_FLAG(bool, debug, false, "Enable debug output");
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @namespace yaze::cli
|
* @namespace yaze::cli
|
||||||
* @brief Namespace for the command line interface.
|
* @brief Namespace for the command line interface.
|
||||||
@@ -21,12 +21,13 @@ namespace yaze {
|
|||||||
namespace cli {
|
namespace cli {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
ColorModifier ylw(ColorCode::FG_YELLOW);
|
||||||
|
ColorModifier mag(ColorCode::FG_MAGENTA);
|
||||||
|
ColorModifier red(ColorCode::FG_RED);
|
||||||
|
ColorModifier reset(ColorCode::FG_RESET);
|
||||||
|
ColorModifier underline(ColorCode::FG_UNDERLINE);
|
||||||
|
|
||||||
void HelpCommand() {
|
void HelpCommand() {
|
||||||
ColorModifier ylw(ColorCode::FG_YELLOW);
|
|
||||||
ColorModifier mag(ColorCode::FG_MAGENTA);
|
|
||||||
ColorModifier red(ColorCode::FG_RED);
|
|
||||||
ColorModifier reset(ColorCode::FG_RESET);
|
|
||||||
ColorModifier underline(ColorCode::FG_UNDERLINE);
|
|
||||||
std::cout << "\n";
|
std::cout << "\n";
|
||||||
std::cout << ylw << " ▲ " << reset << " z3ed\n";
|
std::cout << ylw << " ▲ " << reset << " z3ed\n";
|
||||||
std::cout << ylw << "▲ ▲ " << reset << " by " << mag << "scawful\n\n"
|
std::cout << ylw << "▲ ▲ " << reset << " by " << mag << "scawful\n\n"
|
||||||
@@ -57,7 +58,7 @@ void HelpCommand() {
|
|||||||
std::cout << "\n";
|
std::cout << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
int RunCommandHandler(int argc, char* argv[]) {
|
int RunCommandHandler(int argc, char *argv[]) {
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
HelpCommand();
|
HelpCommand();
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
@@ -88,6 +89,8 @@ int RunCommandHandler(int argc, char* argv[]) {
|
|||||||
} // namespace cli
|
} // namespace cli
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
|
|
||||||
int main(int argc, char* argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
return yaze::cli::RunCommandHandler(argc, argv);
|
yaze::cli::ShowMain();
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
// return yaze::cli::RunCommandHandler(argc, argv);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ add_executable(
|
|||||||
app/core/common.cc
|
app/core/common.cc
|
||||||
app/core/project.cc
|
app/core/project.cc
|
||||||
app/core/platform/file_path.mm
|
app/core/platform/file_path.mm
|
||||||
|
app/core/utils/file_util.cc
|
||||||
${YAZE_APP_EMU_SRC}
|
${YAZE_APP_EMU_SRC}
|
||||||
${YAZE_APP_GFX_SRC}
|
${YAZE_APP_GFX_SRC}
|
||||||
${YAZE_APP_ZELDA3_SRC}
|
${YAZE_APP_ZELDA3_SRC}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#ifndef YAZE_CLI_COMMAND_HANDLER_H
|
#ifndef YAZE_CLI_Z3ED_H
|
||||||
#define YAZE_CLI_COMMAND_HANDLER_H
|
#define YAZE_CLI_Z3ED_H
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@@ -13,7 +13,6 @@
|
|||||||
#include "app/core/common.h"
|
#include "app/core/common.h"
|
||||||
#include "app/core/constants.h"
|
#include "app/core/constants.h"
|
||||||
#include "app/rom.h"
|
#include "app/rom.h"
|
||||||
#include "asar-dll-bindings/c/asar.h"
|
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace cli {
|
namespace cli {
|
||||||
Reference in New Issue
Block a user