From 2fe0ce6152fa8f4fdd5f7cc851033cbc3b7991a7 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Wed, 3 Jun 2026 18:07:16 +0200 Subject: [PATCH] - [CHG] Tot el codi mogut a la carpeta "source" --- Makefile | 6 +++--- lagueirtofile | 2 +- apu.cpp => source/apu.cpp | 0 apu.h => source/apu.h | 0 audio_viewer.cpp => source/audio_viewer.cpp | 0 audio_viewer.h => source/audio_viewer.h | 0 debug.cpp => source/debug.cpp | 0 debug.h => source/debug.h | 0 display.cpp => source/display.cpp | 0 display.h => source/display.h | 0 interrupts.h => source/interrupts.h | 0 main.cpp => source/main.cpp | 0 mbc1.cpp => source/mbc1.cpp | 0 mbc1.h => source/mbc1.h | 0 mbc3.cpp => source/mbc3.cpp | 0 mbc3.h => source/mbc3.h | 0 mbc_none.cpp => source/mbc_none.cpp | 0 mbc_none.h => source/mbc_none.h | 0 mem.cpp => source/mem.cpp | 0 mem.h => source/mem.h | 0 ppu.cpp => source/ppu.cpp | 0 ppu.h => source/ppu.h | 0 sm83.cpp => source/sm83.cpp | 0 sm83.h => source/sm83.h | 0 sm83dis.cpp => source/sm83dis.cpp | 1 - sm83dis.h => source/sm83dis.h | 0 ui.cpp => source/ui.cpp | 0 ui.h => source/ui.h | 0 ui_menu.cpp => source/ui_menu.cpp | 0 ui_menu.h => source/ui_menu.h | 0 ui_window.cpp => source/ui_window.cpp | 0 ui_window.h => source/ui_window.h | 0 32 files changed, 4 insertions(+), 5 deletions(-) rename apu.cpp => source/apu.cpp (100%) rename apu.h => source/apu.h (100%) rename audio_viewer.cpp => source/audio_viewer.cpp (100%) rename audio_viewer.h => source/audio_viewer.h (100%) rename debug.cpp => source/debug.cpp (100%) rename debug.h => source/debug.h (100%) rename display.cpp => source/display.cpp (100%) rename display.h => source/display.h (100%) rename interrupts.h => source/interrupts.h (100%) rename main.cpp => source/main.cpp (100%) rename mbc1.cpp => source/mbc1.cpp (100%) rename mbc1.h => source/mbc1.h (100%) rename mbc3.cpp => source/mbc3.cpp (100%) rename mbc3.h => source/mbc3.h (100%) rename mbc_none.cpp => source/mbc_none.cpp (100%) rename mbc_none.h => source/mbc_none.h (100%) rename mem.cpp => source/mem.cpp (100%) rename mem.h => source/mem.h (100%) rename ppu.cpp => source/ppu.cpp (100%) rename ppu.h => source/ppu.h (100%) rename sm83.cpp => source/sm83.cpp (100%) rename sm83.h => source/sm83.h (100%) rename sm83dis.cpp => source/sm83dis.cpp (99%) rename sm83dis.h => source/sm83dis.h (100%) rename ui.cpp => source/ui.cpp (100%) rename ui.h => source/ui.h (100%) rename ui_menu.cpp => source/ui_menu.cpp (100%) rename ui_menu.h => source/ui_menu.h (100%) rename ui_window.cpp => source/ui_window.cpp (100%) rename ui_window.h => source/ui_window.h (100%) diff --git a/Makefile b/Makefile index 0fa2868..d91dfbb 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ compile: - g++ -g *.cpp -lSDL2 -o gb + g++ -g source/*.cpp -lSDL2 -o gb run: compile ./gb tetris.gb @@ -11,7 +11,7 @@ debug1: compile gdb -ex run gb release: - g++ -O3 *.cpp -lSDL2 -o gb + g++ -O3 source/*.cpp -lSDL2 -o gb profile: - g++ -g *.cpp -lSDL2 -o gb -pg + g++ -g source/*.cpp -lSDL2 -o gb -pg diff --git a/lagueirtofile b/lagueirtofile index d5fc4b8..640154e 100644 --- a/lagueirtofile +++ b/lagueirtofile @@ -2,5 +2,5 @@ cppflags = -g libs = -lSDL2 executable = gb -sourcepath = . +sourcepath = source buildpath = build diff --git a/apu.cpp b/source/apu.cpp similarity index 100% rename from apu.cpp rename to source/apu.cpp diff --git a/apu.h b/source/apu.h similarity index 100% rename from apu.h rename to source/apu.h diff --git a/audio_viewer.cpp b/source/audio_viewer.cpp similarity index 100% rename from audio_viewer.cpp rename to source/audio_viewer.cpp diff --git a/audio_viewer.h b/source/audio_viewer.h similarity index 100% rename from audio_viewer.h rename to source/audio_viewer.h diff --git a/debug.cpp b/source/debug.cpp similarity index 100% rename from debug.cpp rename to source/debug.cpp diff --git a/debug.h b/source/debug.h similarity index 100% rename from debug.h rename to source/debug.h diff --git a/display.cpp b/source/display.cpp similarity index 100% rename from display.cpp rename to source/display.cpp diff --git a/display.h b/source/display.h similarity index 100% rename from display.h rename to source/display.h diff --git a/interrupts.h b/source/interrupts.h similarity index 100% rename from interrupts.h rename to source/interrupts.h diff --git a/main.cpp b/source/main.cpp similarity index 100% rename from main.cpp rename to source/main.cpp diff --git a/mbc1.cpp b/source/mbc1.cpp similarity index 100% rename from mbc1.cpp rename to source/mbc1.cpp diff --git a/mbc1.h b/source/mbc1.h similarity index 100% rename from mbc1.h rename to source/mbc1.h diff --git a/mbc3.cpp b/source/mbc3.cpp similarity index 100% rename from mbc3.cpp rename to source/mbc3.cpp diff --git a/mbc3.h b/source/mbc3.h similarity index 100% rename from mbc3.h rename to source/mbc3.h diff --git a/mbc_none.cpp b/source/mbc_none.cpp similarity index 100% rename from mbc_none.cpp rename to source/mbc_none.cpp diff --git a/mbc_none.h b/source/mbc_none.h similarity index 100% rename from mbc_none.h rename to source/mbc_none.h diff --git a/mem.cpp b/source/mem.cpp similarity index 100% rename from mem.cpp rename to source/mem.cpp diff --git a/mem.h b/source/mem.h similarity index 100% rename from mem.h rename to source/mem.h diff --git a/ppu.cpp b/source/ppu.cpp similarity index 100% rename from ppu.cpp rename to source/ppu.cpp diff --git a/ppu.h b/source/ppu.h similarity index 100% rename from ppu.h rename to source/ppu.h diff --git a/sm83.cpp b/source/sm83.cpp similarity index 100% rename from sm83.cpp rename to source/sm83.cpp diff --git a/sm83.h b/source/sm83.h similarity index 100% rename from sm83.h rename to source/sm83.h diff --git a/sm83dis.cpp b/source/sm83dis.cpp similarity index 99% rename from sm83dis.cpp rename to source/sm83dis.cpp index f5a288b..838c605 100644 --- a/sm83dis.cpp +++ b/source/sm83dis.cpp @@ -1,5 +1,4 @@ #include "sm83dis.h" -#include "sm83.h" #include "mem.h" #include #include diff --git a/sm83dis.h b/source/sm83dis.h similarity index 100% rename from sm83dis.h rename to source/sm83dis.h diff --git a/ui.cpp b/source/ui.cpp similarity index 100% rename from ui.cpp rename to source/ui.cpp diff --git a/ui.h b/source/ui.h similarity index 100% rename from ui.h rename to source/ui.h diff --git a/ui_menu.cpp b/source/ui_menu.cpp similarity index 100% rename from ui_menu.cpp rename to source/ui_menu.cpp diff --git a/ui_menu.h b/source/ui_menu.h similarity index 100% rename from ui_menu.h rename to source/ui_menu.h diff --git a/ui_window.cpp b/source/ui_window.cpp similarity index 100% rename from ui_window.cpp rename to source/ui_window.cpp diff --git a/ui_window.h b/source/ui_window.h similarity index 100% rename from ui_window.h rename to source/ui_window.h