remove app namespace
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user