namespace housekeeping

This commit is contained in:
Justin Scofield
2022-06-20 13:21:17 -04:00
parent 122d92f121
commit 2654a08dff
19 changed files with 89 additions and 87 deletions

View File

@@ -38,9 +38,9 @@ add_executable(
application/Data/rom.cc application/Data/rom.cc
application/Data/OW/overworld.cc application/Data/OW/overworld.cc
application/Data/OW/overworld_map.cc application/Data/OW/overworld_map.cc
application/Graphics/bitmap.cc application/gfx/bitmap.cc
application/Graphics/tile.cc application/gfx/tile.cc
application/Graphics/palette.cc application/gfx/palette.cc
application/Editor/editor.cc application/Editor/editor.cc
application/Editor/overworld_editor.cc application/Editor/overworld_editor.cc
# GUI libraries # GUI libraries

View File

@@ -1,13 +1,13 @@
#include "overworld.h" #include "overworld.h"
#include "Graphics/tile.h" #include "gfx/tile.h"
namespace yaze { namespace yaze {
namespace application { namespace application {
namespace Data { namespace Data {
using namespace core; using namespace core;
using namespace Graphics; using namespace gfx;
Overworld::~Overworld() { Overworld::~Overworld() {
if (isLoaded) { if (isLoaded) {

View File

@@ -8,8 +8,8 @@
#include "Core/constants.h" #include "Core/constants.h"
#include "Data/rom.h" #include "Data/rom.h"
#include "Graphics/bitmap.h" #include "gfx/bitmap.h"
#include "Graphics/tile.h" #include "gfx/tile.h"
#include "overworld_map.h" #include "overworld_map.h"
namespace yaze { namespace yaze {
@@ -24,10 +24,10 @@ class Overworld {
void Load(Data::ROM & rom); void Load(Data::ROM & rom);
char* overworldMapPointer = new char[0x40000]; char* overworldMapPointer = new char[0x40000];
Graphics::Bitmap* overworldMapBitmap; gfx::Bitmap* overworldMapBitmap;
char* owactualMapPointer = new char[0x40000]; char* owactualMapPointer = new char[0x40000];
Graphics::Bitmap* owactualMapBitmap; gfx::Bitmap* owactualMapBitmap;
private: private:
Data::ROM rom_; Data::ROM rom_;
@@ -39,9 +39,9 @@ class Overworld {
ushort** allmapsTilesDW; // 64 maps * (32*32 tiles) ushort** allmapsTilesDW; // 64 maps * (32*32 tiles)
ushort** allmapsTilesSP; // 32 maps * (32*32 tiles) ushort** allmapsTilesSP; // 32 maps * (32*32 tiles)
std::vector<Graphics::Tile16> tiles16; std::vector<gfx::Tile16> tiles16;
std::vector<Graphics::Tile32> tiles32; std::vector<gfx::Tile32> tiles32;
std::vector<Graphics::Tile32> map16tiles; std::vector<gfx::Tile32> map16tiles;
std::vector<OverworldMap> allmaps; std::vector<OverworldMap> allmaps;

View File

@@ -1,17 +1,17 @@
#include "overworld_map.h" #include "overworld_map.h"
#include "Data/rom.h" #include "Data/rom.h"
#include "Graphics/tile.h" #include "gfx/tile.h"
namespace yaze { namespace yaze {
namespace application { namespace application {
namespace Data { namespace Data {
using namespace Core; using namespace core;
using namespace Graphics; using namespace gfx;
OverworldMap::OverworldMap(Data::ROM & rom, OverworldMap::OverworldMap(Data::ROM & rom,
const std::vector<Graphics::Tile16> tiles16, const std::vector<gfx::Tile16> tiles16,
uchar index) uchar index)
: rom_(rom), index(index), tiles16_(tiles16), parent(index) { : rom_(rom), index(index), tiles16_(tiles16), parent(index) {
if (index != 0x80) { if (index != 0x80) {

View File

@@ -4,8 +4,8 @@
#include <memory> #include <memory>
#include "Data/rom.h" #include "Data/rom.h"
#include "Graphics/bitmap.h" #include "gfx/bitmap.h"
#include "Graphics/tile.h" #include "gfx/tile.h"
namespace yaze { namespace yaze {
namespace application { namespace application {
@@ -29,8 +29,8 @@ class OverworldMap {
int* gfxPtr = new int[512 * 512]; int* gfxPtr = new int[512 * 512];
int* mapblockset16 = new int[1048576]; int* mapblockset16 = new int[1048576];
Graphics::Bitmap mapblockset16Bitmap; gfx::Bitmap mapblockset16Bitmap;
Graphics::Bitmap gfxBitmap; gfx::Bitmap gfxBitmap;
uchar* staticgfx = uchar* staticgfx =
new uchar[16]; // Need to be used to display map and not pre render it! new uchar[16]; // Need to be used to display map and not pre render it!
@@ -40,9 +40,9 @@ class OverworldMap {
Data::ROM rom_; Data::ROM rom_;
uchar* currentOWgfx16Ptr = new uchar[(128 * 512) / 2]; uchar* currentOWgfx16Ptr = new uchar[(128 * 512) / 2];
std::vector<Graphics::Tile16> tiles16_; std::vector<gfx::Tile16> tiles16_;
OverworldMap(Data::ROM & rom, const std::vector<Graphics::Tile16> tiles16, OverworldMap(Data::ROM & rom, const std::vector<gfx::Tile16> tiles16,
uchar index); uchar index);
void BuildMap(uchar* mapParent, int count, int gameState, void BuildMap(uchar* mapParent, int count, int gameState,
ushort** allmapsTilesLW, ushort** allmapsTilesDW, ushort** allmapsTilesLW, ushort** allmapsTilesDW,
@@ -57,10 +57,10 @@ class OverworldMap {
// void ReloadPalettes() { LoadPalette(); } // void ReloadPalettes() { LoadPalette(); }
void CopyTile(int x, int y, int xx, int yy, int offset, void CopyTile(int x, int y, int xx, int yy, int offset,
Graphics::TileInfo tile, uchar* gfx16Pointer, gfx::TileInfo tile, uchar* gfx16Pointer,
uchar* gfx8Pointer); uchar* gfx8Pointer);
void CopyTileToMap(int x, int y, int xx, int yy, int offset, void CopyTileToMap(int x, int y, int xx, int yy, int offset,
Graphics::TileInfo tile, uchar* gfx16Pointer, gfx::TileInfo tile, uchar* gfx16Pointer,
uchar* gfx8Pointer); uchar* gfx8Pointer);
void LoadPalette(); void LoadPalette();

View File

@@ -44,7 +44,7 @@ void ROM::LoadFromFile(const std::string &path) {
loaded = true; loaded = true;
} }
std::vector<tile8> ROM::ExtractTiles(Graphics::TilePreset &preset) { std::vector<tile8> ROM::ExtractTiles(gfx::TilePreset &preset) {
std::cout << "Extracting tiles..." << std::endl; std::cout << "Extracting tiles..." << std::endl;
uint filePos = 0; uint filePos = 0;
uint size_out = 0; uint size_out = 0;
@@ -55,7 +55,7 @@ std::vector<tile8> ROM::ExtractTiles(Graphics::TilePreset &preset) {
std::cout << "ROM Position: " << filePos << " from " std::cout << "ROM Position: " << filePos << " from "
<< preset.SNESTilesLocation << std::endl; << preset.SNESTilesLocation << std::endl;
// decompress the graphics // decompress the gfx
auto data = (char *)malloc(sizeof(char) * size); auto data = (char *)malloc(sizeof(char) * size);
memcpy(data, (current_rom_ + filePos), size); memcpy(data, (current_rom_ + filePos), size);
data = alttp_decompress_gfx(data, 0, size, &size_out, &compressed_size_); data = alttp_decompress_gfx(data, 0, size, &size_out, &compressed_size_);
@@ -82,7 +82,7 @@ std::vector<tile8> ROM::ExtractTiles(Graphics::TilePreset &preset) {
return rawTiles; return rawTiles;
} }
Graphics::SNESPalette ROM::ExtractPalette(Graphics::TilePreset &preset) { gfx::SNESPalette ROM::ExtractPalette(gfx::TilePreset &preset) {
uint filePos = uint filePos =
GetRomPosition(preset.pc_palette_location_, preset.SNESPaletteLocation); GetRomPosition(preset.pc_palette_location_, preset.SNESPaletteLocation);
std::cout << "Palette pos : " << filePos << std::endl; // TODO: make this hex std::cout << "Palette pos : " << filePos << std::endl; // TODO: make this hex
@@ -100,9 +100,9 @@ Graphics::SNESPalette ROM::ExtractPalette(Graphics::TilePreset &preset) {
std::cout << std::endl; std::cout << std::endl;
const unsigned char *data = palette_data.get(); const unsigned char *data = palette_data.get();
Graphics::SNESPalette pal(data); gfx::SNESPalette pal(data);
if (preset.no_zero_color_) { if (preset.no_zero_color_) {
Graphics::SNESColor col; gfx::SNESColor col;
col.setRgb(ImVec4(153, 153, 153, 255)); col.setRgb(ImVec4(153, 153, 153, 255));
pal.colors.push_back(col); pal.colors.push_back(col);
@@ -255,7 +255,7 @@ uchar *ROM::SNES3bppTo8bppSheet(uchar *buffer_in,
return sheet_buffer_out; return sheet_buffer_out;
} }
SDL_Texture *ROM::DrawGraphicsSheet(int offset) { SDL_Texture *ROM::DrawgfxSheet(int offset) {
SDL_Surface *surface = SDL_Surface *surface =
SDL_CreateRGBSurfaceWithFormat(0, 128, 32, 8, SDL_PIXELFORMAT_INDEX8); SDL_CreateRGBSurfaceWithFormat(0, 128, 32, 8, SDL_PIXELFORMAT_INDEX8);
std::cout << "Drawing surface #" << offset << std::endl; std::cout << "Drawing surface #" << offset << std::endl;

View File

@@ -14,7 +14,7 @@
#include <vector> #include <vector>
#include "Core/constants.h" #include "Core/constants.h"
#include "Graphics/tile.h" #include "gfx/tile.h"
namespace yaze { namespace yaze {
namespace application { namespace application {
@@ -28,12 +28,12 @@ class ROM {
void SetupRenderer(std::shared_ptr<SDL_Renderer> renderer); void SetupRenderer(std::shared_ptr<SDL_Renderer> renderer);
void LoadFromFile(const std::string& path); void LoadFromFile(const std::string& path);
std::vector<tile8> ExtractTiles(Graphics::TilePreset& preset); std::vector<tile8> ExtractTiles(gfx::TilePreset& preset);
Graphics::SNESPalette ExtractPalette(Graphics::TilePreset& preset); gfx::SNESPalette ExtractPalette(gfx::TilePreset& preset);
uint32_t GetRomPosition(int direct_addr, uint snes_addr) const; uint32_t GetRomPosition(int direct_addr, uint snes_addr) const;
char* Decompress(int pos, int size = 0x800, bool reversed = false); char* Decompress(int pos, int size = 0x800, bool reversed = false);
uchar* SNES3bppTo8bppSheet(uchar* buffer_in, int sheet_id = 0); uchar* SNES3bppTo8bppSheet(uchar* buffer_in, int sheet_id = 0);
SDL_Texture* DrawGraphicsSheet(int offset); SDL_Texture* DrawgfxSheet(int offset);
inline uchar* GetRawData() { return current_rom_; } inline uchar* GetRawData() { return current_rom_; }
const uchar* getTitle() const { return title; } const uchar* getTitle() const { return title; }

View File

@@ -9,8 +9,8 @@
#include "Core/constants.h" #include "Core/constants.h"
#include "Data/rom.h" #include "Data/rom.h"
#include "Editor/overworld_editor.h" #include "Editor/overworld_editor.h"
#include "Graphics/palette.h" #include "gfx/palette.h"
#include "Graphics/tile.h" #include "gfx/tile.h"
#include "gui/icons.h" #include "gui/icons.h"
#include "gui/input.h" #include "gui/input.h"
@@ -117,7 +117,7 @@ void Editor::UpdateScreen() {
DrawProjectEditor(); DrawProjectEditor();
DrawOverworldEditor(); DrawOverworldEditor();
DrawDungeonEditor(); DrawDungeonEditor();
DrawGraphicsEditor(); DrawgfxEditor();
DrawSpriteEditor(); DrawSpriteEditor();
DrawScreenEditor(); DrawScreenEditor();
DrawHUDEditor(); DrawHUDEditor();
@@ -280,7 +280,7 @@ void Editor::DrawHelpMenu() const {
} }
} }
void Editor::DrawGraphicsSheet(int offset) { void Editor::DrawgfxSheet(int offset) {
SDL_Surface *surface = SDL_Surface *surface =
SDL_CreateRGBSurfaceWithFormat(0, 128, 32, 8, SDL_PIXELFORMAT_INDEX8); SDL_CreateRGBSurfaceWithFormat(0, 128, 32, 8, SDL_PIXELFORMAT_INDEX8);
std::cout << "Drawing surface" << std::endl; std::cout << "Drawing surface" << std::endl;
@@ -345,9 +345,9 @@ void Editor::DrawProjectEditor() {
} }
ImGui::SetNextItemWidth(100.f); ImGui::SetNextItemWidth(100.f);
ImGui::InputInt("Tilesheet Offset", &tilesheet_offset); ImGui::InputInt("Tilesheet Offset", &tilesheet_offset);
BASIC_BUTTON("Retrieve Graphics") { BASIC_BUTTON("Retrieve gfx") {
if (rom_.isLoaded()) { if (rom_.isLoaded()) {
DrawGraphicsSheet(tilesheet_offset); DrawgfxSheet(tilesheet_offset);
loaded_image = true; loaded_image = true;
} }
} }
@@ -496,8 +496,8 @@ void Editor::DrawDungeonEditor() {
} }
} }
void Editor::DrawGraphicsEditor() { void Editor::DrawgfxEditor() {
if (ImGui::BeginTabItem("Graphics")) { if (ImGui::BeginTabItem("gfx")) {
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
} }

View File

@@ -10,7 +10,7 @@
#include "Core/constants.h" #include "Core/constants.h"
#include "Data/rom.h" #include "Data/rom.h"
#include "Editor/overworld_editor.h" #include "Editor/overworld_editor.h"
#include "Graphics/tile.h" #include "gfx/tile.h"
#include "gui/icons.h" #include "gui/icons.h"
#include "gui/input.h" #include "gui/input.h"
@@ -32,12 +32,12 @@ class Editor {
void DrawViewMenu(); void DrawViewMenu();
void DrawHelpMenu() const; void DrawHelpMenu() const;
void DrawGraphicsSheet(int offset = 0); void DrawgfxSheet(int offset = 0);
void DrawProjectEditor(); void DrawProjectEditor();
void DrawOverworldEditor(); void DrawOverworldEditor();
void DrawDungeonEditor(); void DrawDungeonEditor();
void DrawGraphicsEditor(); void DrawgfxEditor();
void DrawSpriteEditor(); void DrawSpriteEditor();
void DrawScreenEditor(); void DrawScreenEditor();
void DrawHUDEditor(); void DrawHUDEditor();
@@ -58,7 +58,7 @@ class Editor {
OverworldEditor overworld_editor_; OverworldEditor overworld_editor_;
ImVec4 current_palette_[8]; ImVec4 current_palette_[8];
Graphics::TilePreset current_set_; gfx::TilePreset current_set_;
ImGuiWindowFlags main_editor_flags_ = ImGuiWindowFlags main_editor_flags_ =
ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoCollapse |

View File

@@ -4,11 +4,12 @@
#include <cmath> #include <cmath>
#include "Graphics/bitmap.h" #include "gfx/bitmap.h"
#include "Graphics/icons.h" #include "gfx/tile.h"
#include "Graphics/tile.h" #include "gui/icons.h"
// first step would be to decompress all graphics data from the game
// first step would be to decompress all gfx data from the game
// (in alttp that's easy they're all located in the same location all the // (in alttp that's easy they're all located in the same location all the
// same sheet size 128x32) have a code that convert PC address to SNES and // same sheet size 128x32) have a code that convert PC address to SNES and
// vice-versa // vice-versa
@@ -34,10 +35,10 @@ void OverworldEditor::SetupROM(Data::ROM &rom) { rom_ = rom; }
void OverworldEditor::Update() { void OverworldEditor::Update() {
if (rom_.isLoaded()) { if (rom_.isLoaded()) {
if (!all_graphics_loaded_) { if (!all_gfx_loaded_) {
LoadGraphics(); Loadgfx();
// overworld_.Load(rom_); // overworld_.Load(rom_);
all_graphics_loaded_ = true; all_gfx_loaded_ = true;
} }
} }
@@ -275,8 +276,9 @@ void OverworldEditor::DrawTileSelector() {
if (ImGui::BeginTabItem("Tile8")) { if (ImGui::BeginTabItem("Tile8")) {
ImGuiStyle &style = ImGui::GetStyle(); ImGuiStyle &style = ImGui::GetStyle();
ImGuiID child_id = ImGui::GetID((void *)(intptr_t)1); ImGuiID child_id = ImGui::GetID((void *)(intptr_t)1);
bool child_is_visible = ImGui::BeginChild( bool child_is_visible =
child_id, ImGui::GetContentRegionAvail(), true, ImGuiWindowFlags_AlwaysVerticalScrollbar); ImGui::BeginChild(child_id, ImGui::GetContentRegionAvail(), true,
ImGuiWindowFlags_AlwaysVerticalScrollbar);
if (child_is_visible) // Avoid calling SetScrollHereY when running with if (child_is_visible) // Avoid calling SetScrollHereY when running with
// culled items // culled items
{ {
@@ -328,7 +330,7 @@ void OverworldEditor::DrawTile8Selector() {
ImGui::EndPopup(); ImGui::EndPopup();
} }
if (all_graphics_loaded_) { if (all_gfx_loaded_) {
for (const auto &[key, value] : all_texture_sheet_) { for (const auto &[key, value] : all_texture_sheet_) {
int offset = 64 * (key + 1); int offset = 64 * (key + 1);
int top_left_y = canvas_p0.y + 2; int top_left_y = canvas_p0.y + 2;
@@ -369,9 +371,9 @@ void OverworldEditor::DrawChangelist() {
ImGui::End(); ImGui::End();
} }
void OverworldEditor::LoadGraphics() { void OverworldEditor::Loadgfx() {
for (int i = 0; i < kNumSheetsToLoad; i++) { for (int i = 0; i < kNumSheetsToLoad; i++) {
all_texture_sheet_[i] = rom_.DrawGraphicsSheet(i); all_texture_sheet_[i] = rom_.DrawgfxSheet(i);
} }
} }

View File

@@ -4,8 +4,8 @@
#include <imgui/imgui.h> #include <imgui/imgui.h>
#include "Data/OW/overworld.h" #include "Data/OW/overworld.h"
#include "Graphics/palette.h" #include "gfx/palette.h"
#include "Graphics/tile.h" #include "gfx/tile.h"
#include "gui/icons.h" #include "gui/icons.h"
@@ -28,13 +28,13 @@ class OverworldEditor {
void DrawTile8Selector(); void DrawTile8Selector();
void DrawChangelist(); void DrawChangelist();
void LoadGraphics(); void Loadgfx();
Data::ROM rom_; Data::ROM rom_;
Data::Overworld overworld_; Data::Overworld overworld_;
Graphics::Bitmap allgfxBitmap; gfx::Bitmap allgfxBitmap;
Graphics::SNESPalette palette_; gfx::SNESPalette palette_;
Graphics::TilePreset current_set_; gfx::TilePreset current_set_;
std::unordered_map<unsigned int, SDL_Texture *> all_texture_sheet_; std::unordered_map<unsigned int, SDL_Texture *> all_texture_sheet_;
SDL_Texture *gfx_texture = nullptr; SDL_Texture *gfx_texture = nullptr;
@@ -58,7 +58,7 @@ class OverworldEditor {
bool doneLoaded = false; bool doneLoaded = false;
bool opt_enable_grid = true; bool opt_enable_grid = true;
bool show_changelist_ = false; bool show_changelist_ = false;
bool all_graphics_loaded_ = false; bool all_gfx_loaded_ = false;
constexpr static int kByteSize = 3; constexpr static int kByteSize = 3;
constexpr static int kMessageIdSize = 5; constexpr static int kMessageIdSize = 5;

View File

@@ -82,7 +82,7 @@ constexpr int NumberOfOWSprites = 352;
constexpr int NumberOfColors = 3143; constexpr int NumberOfColors = 3143;
// =========================================================================================== // ===========================================================================================
// Graphics // gfx
// =========================================================================================== // ===========================================================================================
constexpr int tile_address = 0x1B52; // JP = Same constexpr int tile_address = 0x1B52; // JP = Same
@@ -934,7 +934,7 @@ static const std::string Type3RoomObjectNames[] = {
"Bar bottles", "Bar bottles",
"Arrow game hole (west)", "Arrow game hole (west)",
"Arrow game hole (east)", "Arrow game hole (east)",
"Vitreous goo graphics", "Vitreous goo gfx",
"Fake pressure plate", "Fake pressure plate",
"Medusa head", "Medusa head",
"4-way shooter block", "4-way shooter block",

View File

@@ -6,7 +6,7 @@
namespace yaze { namespace yaze {
namespace application { namespace application {
namespace Graphics { namespace gfx {
int GetPCGfxAddress(char *romData, char id) { int GetPCGfxAddress(char *romData, char id) {
char **info1 = new char *[255]; char **info1 = new char *[255];
@@ -173,6 +173,6 @@ void CreateAllGfxData(char *romData, char *allgfx16Ptr) {
} }
} }
} // namespace Graphics } // namespace gfx
} // namespace application } // namespace application
} // namespace yaze } // namespace yaze

View File

@@ -7,7 +7,7 @@
namespace yaze { namespace yaze {
namespace application { namespace application {
namespace Graphics { namespace gfx {
class Bitmap { class Bitmap {
public: public:
@@ -30,7 +30,7 @@ int GetPCGfxAddress(char *romData, char id);
char *CreateAllGfxDataRaw(char *romData); char *CreateAllGfxDataRaw(char *romData);
void CreateAllGfxData(char *romData, char *allgfx16Ptr); void CreateAllGfxData(char *romData, char *allgfx16Ptr);
} // namespace Graphics } // namespace gfx
} // namespace application } // namespace application
} // namespace yaze } // namespace yaze

View File

@@ -5,7 +5,7 @@
namespace yaze { namespace yaze {
namespace application { namespace application {
namespace Graphics { namespace gfx {
SNESColor::SNESColor() : rgb(ImVec4(0.f, 0.f, 0.f, 0.f)) {} SNESColor::SNESColor() : rgb(ImVec4(0.f, 0.f, 0.f, 0.f)) {}
@@ -108,6 +108,6 @@ SDL_Palette* SNESPalette::GetSDL_Palette() {
return sdl_palette.get(); return sdl_palette.get();
} }
} // namespace Graphics } // namespace gfx
} // namespace application } // namespace application
} // namespace yaze } // namespace yaze

View File

@@ -1,5 +1,5 @@
#ifndef YAZE_APPLICATION_GRAPHICS_PALETTE_H #ifndef YAZE_APPLICATION_gfx_PALETTE_H
#define YAZE_APPLICATION_GRAPHICS_PALETTE_H #define YAZE_APPLICATION_gfx_PALETTE_H
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#include <imgui/imgui.h> #include <imgui/imgui.h>
@@ -13,7 +13,7 @@
namespace yaze { namespace yaze {
namespace application { namespace application {
namespace Graphics { namespace gfx {
struct SNESColor { struct SNESColor {
SNESColor(); SNESColor();
@@ -43,8 +43,8 @@ class SNESPalette {
std::vector<SDL_Color*> colors_arrays_; std::vector<SDL_Color*> colors_arrays_;
}; };
} // namespace Graphics } // namespace gfx
} // namespace application } // namespace application
} // namespace yaze } // namespace yaze
#endif // YAZE_APPLICATION_GRAPHICS_PALETTE_H #endif // YAZE_APPLICATION_gfx_PALETTE_H

View File

@@ -10,7 +10,7 @@
namespace yaze { namespace yaze {
namespace application { namespace application {
namespace Graphics { namespace gfx {
TilesPattern::TilesPattern() { TilesPattern::TilesPattern() {
tiles_per_row_ = 16; tiles_per_row_ = 16;
@@ -108,6 +108,6 @@ std::vector<std::vector<tile8> > TilesPattern::transform(
return pattern.transform(tiles); return pattern.transform(tiles);
} }
} // namespace Graphics } // namespace gfx
} // namespace application } // namespace application
} // namespace yaze } // namespace yaze

View File

@@ -9,11 +9,11 @@
#include <vector> #include <vector>
#include "Core/constants.h" #include "Core/constants.h"
#include "Graphics/palette.h" #include "gfx/palette.h"
namespace yaze { namespace yaze {
namespace application { namespace application {
namespace Graphics { namespace gfx {
// vhopppcc cccccccc // vhopppcc cccccccc
// [0, 1] // [0, 1]
@@ -96,7 +96,7 @@ class TilePreset {
int SNESPaletteLocation = 0; int SNESPaletteLocation = 0;
}; };
} // namespace Graphics } // namespace gfx
} // namespace application } // namespace application
} // namespace yaze } // namespace yaze

View File

@@ -17,9 +17,9 @@ add_executable(
yaze_test yaze_test
yaze_test.cc yaze_test.cc
../src/application/Data/rom.cc ../src/application/Data/rom.cc
../src/application/Graphics/tile.cc ../src/application/gfx/tile.cc
../src/application/Graphics/tile.cc ../src/application/gfx/tile.cc
../src/application/Graphics/palette.cc ../src/application/gfx/palette.cc
${SNESHACKING_PATH}/compressions/alttpcompression.c ${SNESHACKING_PATH}/compressions/alttpcompression.c
${SNESHACKING_PATH}/compressions/stdnintendo.c ${SNESHACKING_PATH}/compressions/stdnintendo.c
${SNESHACKING_PATH}/tile.c ${SNESHACKING_PATH}/tile.c