remove app namespace

This commit is contained in:
scawful
2024-12-28 21:28:51 -05:00
parent 3ebe17c7bd
commit e05e7c35db
174 changed files with 475 additions and 658 deletions

View File

@@ -48,7 +48,7 @@ class CommandHandler {
virtual ~CommandHandler() = default;
virtual absl::Status handle(const std::vector<std::string>& arg_vec) = 0;
app::Rom rom_;
Rom rom_;
};
class ApplyPatch : public CommandHandler {
@@ -130,7 +130,7 @@ class SnesToPc : public CommandHandler {
std::stringstream ss(arg.data());
uint32_t snes_address;
ss >> std::hex >> snes_address;
uint32_t pc_address = app::core::SnesToPc(snes_address);
uint32_t pc_address = core::SnesToPc(snes_address);
std::cout << std::hex << pc_address << std::endl;
return absl::OkStatus();
}
@@ -149,7 +149,7 @@ class PcToSnes : public CommandHandler {
std::stringstream ss(arg.data());
uint32_t pc_address;
ss >> std::hex >> pc_address;
uint32_t snes_address = app::core::PcToSnes(pc_address);
uint32_t snes_address = core::PcToSnes(pc_address);
ColorModifier blue(ColorCode::FG_BLUE);
std::cout << "SNES LoROM Address: ";
std::cout << blue << "$" << std::uppercase << std::hex << snes_address

View File

@@ -15,7 +15,7 @@ absl::Status ApplyPatch::handle(const std::vector<std::string>& arg_vec) {
// Apply patch
std::vector<uint8_t> patched;
app::core::ApplyBpsPatch(source, patch, patched);
core::ApplyBpsPatch(source, patch, patched);
// Save patched file
std::ofstream patched_rom("patched.sfc", std::ios::binary);
@@ -48,7 +48,7 @@ absl::Status CreatePatch::handle(const std::vector<std::string>& arg_vec) {
std::vector<uint8_t> target;
std::vector<uint8_t> patch;
// Create patch
app::core::CreateBpsPatch(source, target, patch);
core::CreateBpsPatch(source, target, patch);
// Save patch to file
// std::ofstream patchFile("patch.bps", ios::binary);