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

@@ -13,7 +13,6 @@
#include "app/emu/memory/memory.h"
namespace yaze {
namespace app {
namespace emu {
namespace audio {
@@ -203,5 +202,5 @@ void Apu::SpcIdle(bool waiting) { Cycle(); }
} // namespace audio
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -11,7 +11,6 @@
#include "app/emu/memory/memory.h"
namespace yaze {
namespace app {
namespace emu {
namespace audio {
@@ -95,7 +94,7 @@ class Apu {
} // namespace audio
} // namespace emu
} // namespace app
} // namespace yaze
#endif

View File

@@ -5,7 +5,6 @@
#include "app/emu/memory/memory.h"
namespace yaze {
namespace app {
namespace emu {
namespace audio {
@@ -633,5 +632,5 @@ void Dsp::GetSamples(int16_t* sample_data, int samples_per_frame,
} // namespace audio
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -9,7 +9,6 @@
#include "app/emu/memory/memory.h"
namespace yaze {
namespace app {
namespace emu {
namespace audio {
@@ -157,7 +156,7 @@ class Dsp {
} // namespace audio
} // namespace emu
} // namespace app
} // namespace yaze
#endif // YAZE_APP_EMU_AUDIO_S_DSP_H

View File

@@ -1,7 +1,6 @@
#include "app/emu/audio/spc700.h"
namespace yaze {
namespace app {
namespace emu {
namespace audio {
@@ -148,5 +147,5 @@ uint16_t Spc700::addr_plus_i_indexed() {
} // namespace audio
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -1,7 +1,6 @@
#include "app/emu/audio/spc700.h"
namespace yaze {
namespace app {
namespace emu {
namespace audio {
@@ -483,5 +482,5 @@ void Spc700::STOP() {}
} // namespace audio
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -9,7 +9,6 @@
#include "app/emu/audio/internal/opcodes.h"
namespace yaze {
namespace app {
namespace emu {
namespace audio {
@@ -1326,5 +1325,5 @@ void Spc700::LogInstruction(uint16_t initial_pc, uint8_t opcode) {
} // namespace audio
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -8,7 +8,6 @@
#include <vector>
namespace yaze {
namespace app {
namespace emu {
namespace audio {
@@ -339,6 +338,6 @@ class Spc700 {
} // namespace audio
} // namespace emu
} // namespace app
} // namespace yaze
#endif // YAZE_APP_EMU_SPC700_H

View File

@@ -4,7 +4,6 @@
#include <cstdint>
namespace yaze {
namespace app {
namespace emu {
class Clock {
@@ -57,7 +56,7 @@ class ClockImpl : public Clock {
};
} // namespace emu
} // namespace app
} // namespace yaze
#endif // YAZE_APP_EMU_CLOCK_H_

View File

@@ -9,7 +9,6 @@
#include "app/emu/cpu/internal/opcodes.h"
namespace yaze {
namespace app {
namespace emu {
void Cpu::Reset(bool hard) {
@@ -2260,5 +2259,5 @@ uint8_t Cpu::GetInstructionLength(uint8_t opcode) {
*/
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -13,7 +13,6 @@
#include "app/emu/memory/memory.h"
namespace yaze {
namespace app {
namespace emu {
class InstructionEntry {
@@ -799,7 +798,7 @@ class Cpu : public core::ExperimentFlags {
};
} // namespace emu
} // namespace app
} // namespace yaze
#endif // YAZE_APP_EMU_CPU_H_

View File

@@ -1,7 +1,6 @@
#include "app/emu/cpu/cpu.h"
namespace yaze {
namespace app {
namespace emu {
void Cpu::AdrImp() {
@@ -186,5 +185,5 @@ uint16_t Cpu::StackRelative() {
}
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -5,7 +5,6 @@
#include "app/emu/cpu/cpu.h"
namespace yaze {
namespace app {
namespace emu {
/**
@@ -398,5 +397,5 @@ void Cpu::ORA(uint32_t low, uint32_t high) {
}
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -27,8 +27,8 @@
#include "imgui/imgui.h"
#include "imgui_memory_editor.h"
using namespace yaze::app;
using yaze::app::core::SDL_Deleter;
using namespace yaze;
using yaze::core::SDL_Deleter;
int main(int argc, char **argv) {
absl::InitializeSymbolizer(argv[0]);

View File

@@ -15,7 +15,6 @@
#include "imgui_memory_editor.h"
namespace yaze {
namespace app {
namespace emu {
namespace {
@@ -540,5 +539,5 @@ void Emulator::RenderCpuInstructionLog(
}
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -10,10 +10,9 @@
#include "imgui/imgui.h"
namespace yaze {
namespace app {
/**
* @namespace yaze::app::emu
* @namespace yaze::emu
* @brief SNES Emulation and debugging tools.
*/
namespace emu {
@@ -190,7 +189,7 @@ class Emulator : public SharedRom {
};
} // namespace emu
} // namespace app
} // namespace yaze
#endif // YAZE_APP_CORE_EMULATOR_H

View File

@@ -13,7 +13,6 @@
#include "app/emu/cpu/internal/opcodes.h"
namespace yaze {
namespace app {
namespace emu {
enum class AddressingMode {
@@ -444,5 +443,5 @@ class AsmParser {
};
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -3,7 +3,6 @@
#include <iostream>
namespace yaze {
namespace app {
namespace emu {
namespace memory {
namespace dma {
@@ -372,5 +371,5 @@ void StartDma(MemoryImpl* memory, uint8_t val, bool hdma) {
} // namespace dma
} // namespace memory
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -7,7 +7,6 @@
#include "app/emu/snes.h"
namespace yaze {
namespace app {
namespace emu {
namespace memory {
namespace dma {
@@ -31,7 +30,7 @@ void DoDma(SNES* snes, MemoryImpl* memory, int cycles);
} // namespace dma
} // namespace memory
} // namespace emu
} // namespace app
} // namespace yaze
#endif // YAZE_APP_EMU_MEMORY_DMA_H

View File

@@ -4,7 +4,6 @@
#include <cstdint>
namespace yaze {
namespace app {
namespace emu {
namespace memory {
@@ -31,7 +30,7 @@ typedef struct DmaChannel {
} // namespace memory
} // namespace emu
} // namespace app
} // namespace yaze
#endif // YAZE_APP_EMU_MEMORY_DMA_CHANNEL_H

View File

@@ -8,7 +8,6 @@
#include "imgui/imgui.h"
namespace yaze {
namespace app {
namespace emu {
namespace memory {
@@ -167,5 +166,5 @@ uint32_t MemoryImpl::GetMappedAddress(uint32_t address) const {
} // namespace memory
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -27,7 +27,6 @@
// 7F 0000-FFFF System RAM
namespace yaze {
namespace app {
namespace emu {
namespace memory {
@@ -309,7 +308,7 @@ class MemoryImpl : public Memory {
} // namespace memory
} // namespace emu
} // namespace app
} // namespace yaze
#endif // MEM_H

View File

@@ -15,7 +15,6 @@
#include "app/rom.h"
namespace yaze {
namespace app {
namespace emu {
namespace {
@@ -574,5 +573,5 @@ void SNES::InitAccessTime(bool recalc) {
}
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -10,7 +10,6 @@
#include "app/emu/video/ppu.h"
namespace yaze {
namespace app {
namespace emu {
struct Input {
@@ -131,7 +130,7 @@ class SNES {
};
} // namespace emu
} // namespace app
} // namespace yaze
#endif // YAZE_APP_EMU_SNES_H

View File

@@ -7,7 +7,6 @@
#include "app/emu/memory/memory.h"
namespace yaze {
namespace app {
namespace emu {
namespace video {
@@ -1056,5 +1055,5 @@ void Ppu::PutPixels(uint8_t* pixels) {
} // namespace video
} // namespace emu
} // namespace app
} // namespace yaze

View File

@@ -11,7 +11,6 @@
#include "app/rom.h"
namespace yaze {
namespace app {
namespace emu {
namespace video {
@@ -458,7 +457,7 @@ class Ppu : public SharedRom {
} // namespace video
} // namespace emu
} // namespace app
} // namespace yaze
#endif // YAZE_APP_EMU_PPU_H

View File

@@ -6,7 +6,6 @@
#include <vector>
namespace yaze {
namespace app {
namespace emu {
namespace video {
namespace PpuRegisters {
@@ -416,7 +415,7 @@ struct STAT78 {
} // namespace PpuRegisters
} // namespace video
} // namespace emu
} // namespace app
} // namespace yaze
#endif // YAZE_APP_EMU_VIDEO_PPU_REGISTERS_H