Remove unused includes and clean up header files
This commit is contained in:
@@ -4,14 +4,11 @@
|
|||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <memory>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "absl/status/statusor.h"
|
|
||||||
#include "absl/strings/str_cat.h"
|
#include "absl/strings/str_cat.h"
|
||||||
#include "absl/strings/str_format.h"
|
#include "absl/strings/str_format.h"
|
||||||
#include "absl/strings/string_view.h"
|
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace core {
|
namespace core {
|
||||||
|
|||||||
@@ -5,11 +5,8 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <memory>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "absl/container/flat_hash_map.h"
|
|
||||||
#include "absl/status/statusor.h"
|
|
||||||
#include "absl/strings/str_format.h"
|
#include "absl/strings/str_format.h"
|
||||||
#include "absl/strings/str_cat.h"
|
#include "absl/strings/str_cat.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,30 +1,12 @@
|
|||||||
#ifndef YAZE_APP_EDITOR_CODE_MEMORY_EDITOR_H
|
#ifndef YAZE_APP_EDITOR_CODE_MEMORY_EDITOR_H
|
||||||
#define YAZE_APP_EDITOR_CODE_MEMORY_EDITOR_H
|
#define YAZE_APP_EDITOR_CODE_MEMORY_EDITOR_H
|
||||||
|
|
||||||
#include "absl/status/status.h"
|
|
||||||
#include "app/core/constants.h"
|
#include "app/core/constants.h"
|
||||||
#include "app/core/platform/file_dialog.h"
|
#include "app/core/platform/file_dialog.h"
|
||||||
#include "app/core/project.h"
|
|
||||||
#include "app/editor/code/assembly_editor.h"
|
|
||||||
#include "app/editor/code/memory_editor.h"
|
#include "app/editor/code/memory_editor.h"
|
||||||
#include "app/editor/dungeon/dungeon_editor.h"
|
|
||||||
#include "app/editor/editor.h"
|
|
||||||
#include "app/editor/graphics/graphics_editor.h"
|
|
||||||
#include "app/editor/graphics/palette_editor.h"
|
|
||||||
#include "app/editor/graphics/screen_editor.h"
|
|
||||||
#include "app/editor/music/music_editor.h"
|
|
||||||
#include "app/editor/overworld/overworld_editor.h"
|
|
||||||
#include "app/editor/sprite/sprite_editor.h"
|
|
||||||
#include "app/emu/emulator.h"
|
|
||||||
#include "app/gfx/snes_palette.h"
|
|
||||||
#include "app/gfx/snes_tile.h"
|
|
||||||
#include "app/gui/canvas.h"
|
|
||||||
#include "app/gui/icons.h"
|
|
||||||
#include "app/gui/input.h"
|
#include "app/gui/input.h"
|
||||||
#include "app/gui/style.h"
|
|
||||||
#include "app/rom.h"
|
#include "app/rom.h"
|
||||||
#include "imgui/imgui.h"
|
#include "imgui/imgui.h"
|
||||||
#include "imgui/misc/cpp/imgui_stdlib.h"
|
|
||||||
#include "imgui_memory_editor.h"
|
#include "imgui_memory_editor.h"
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
#define YAZE_APP_EDITOR_DUNGEONEDITOR_H
|
#define YAZE_APP_EDITOR_DUNGEONEDITOR_H
|
||||||
|
|
||||||
#include "absl/container/flat_hash_map.h"
|
#include "absl/container/flat_hash_map.h"
|
||||||
#include "app/core/common.h"
|
|
||||||
#include "app/editor/editor.h"
|
#include "app/editor/editor.h"
|
||||||
#include "app/editor/graphics/gfx_group_editor.h"
|
#include "app/editor/graphics/gfx_group_editor.h"
|
||||||
#include "app/editor/graphics/palette_editor.h"
|
#include "app/editor/graphics/palette_editor.h"
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#include "absl/status/status.h"
|
#include "absl/status/status.h"
|
||||||
#include "absl/strings/str_cat.h"
|
#include "absl/strings/str_cat.h"
|
||||||
#include "app/gfx/bitmap.h"
|
|
||||||
#include "app/gfx/snes_palette.h"
|
#include "app/gfx/snes_palette.h"
|
||||||
#include "app/gui/canvas.h"
|
#include "app/gui/canvas.h"
|
||||||
#include "app/gui/color.h"
|
#include "app/gui/color.h"
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
#include "app/core/platform/clipboard.h"
|
#include "app/core/platform/clipboard.h"
|
||||||
#include "app/core/platform/file_dialog.h"
|
#include "app/core/platform/file_dialog.h"
|
||||||
#include "app/core/platform/renderer.h"
|
#include "app/core/platform/renderer.h"
|
||||||
#include "app/editor/graphics/palette_editor.h"
|
|
||||||
#include "app/gfx/bitmap.h"
|
#include "app/gfx/bitmap.h"
|
||||||
#include "app/gfx/compression.h"
|
#include "app/gfx/compression.h"
|
||||||
#include "app/gfx/scad_format.h"
|
#include "app/gfx/scad_format.h"
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
#include "absl/strings/str_format.h"
|
#include "absl/strings/str_format.h"
|
||||||
#include "app/editor/code/assembly_editor.h"
|
#include "app/editor/code/assembly_editor.h"
|
||||||
#include "app/gui/canvas.h"
|
|
||||||
#include "app/gui/icons.h"
|
#include "app/gui/icons.h"
|
||||||
#include "app/gui/input.h"
|
#include "app/gui/input.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,8 @@
|
|||||||
#ifndef YAZE_APP_EDITOR_MUSIC_EDITOR_H
|
#ifndef YAZE_APP_EDITOR_MUSIC_EDITOR_H
|
||||||
#define YAZE_APP_EDITOR_MUSIC_EDITOR_H
|
#define YAZE_APP_EDITOR_MUSIC_EDITOR_H
|
||||||
|
|
||||||
#include "absl/strings/str_format.h"
|
|
||||||
#include "app/editor/code/assembly_editor.h"
|
#include "app/editor/code/assembly_editor.h"
|
||||||
#include "app/editor/editor.h"
|
#include "app/editor/editor.h"
|
||||||
#include "app/gui/canvas.h"
|
|
||||||
#include "app/gui/icons.h"
|
|
||||||
#include "app/gui/input.h"
|
|
||||||
#include "app/rom.h"
|
#include "app/rom.h"
|
||||||
#include "app/zelda3/music/tracker.h"
|
#include "app/zelda3/music/tracker.h"
|
||||||
#include "imgui/imgui.h"
|
#include "imgui/imgui.h"
|
||||||
@@ -50,6 +46,10 @@ static constexpr absl::string_view kSongNotes[] = {
|
|||||||
"C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "C",
|
"C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "C",
|
||||||
"C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "C"};
|
"C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "C"};
|
||||||
|
|
||||||
|
const ImGuiTableFlags toolset_table_flags_ = ImGuiTableFlags_SizingFixedFit;
|
||||||
|
const ImGuiTableFlags music_editor_flags_ = ImGuiTableFlags_SizingFixedFit |
|
||||||
|
ImGuiTableFlags_Resizable |
|
||||||
|
ImGuiTableFlags_Reorderable;
|
||||||
/**
|
/**
|
||||||
* @class MusicEditor
|
* @class MusicEditor
|
||||||
* @brief A class for editing music data in a Rom.
|
* @brief A class for editing music data in a Rom.
|
||||||
@@ -77,10 +77,6 @@ class MusicEditor : public SharedRom, public Editor {
|
|||||||
zelda3::music::Tracker music_tracker_;
|
zelda3::music::Tracker music_tracker_;
|
||||||
|
|
||||||
AssemblyEditor assembly_editor_;
|
AssemblyEditor assembly_editor_;
|
||||||
ImGuiTableFlags toolset_table_flags_ = ImGuiTableFlags_SizingFixedFit;
|
|
||||||
ImGuiTableFlags music_editor_flags_ = ImGuiTableFlags_SizingFixedFit |
|
|
||||||
ImGuiTableFlags_Resizable |
|
|
||||||
ImGuiTableFlags_Reorderable;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace editor
|
} // namespace editor
|
||||||
|
|||||||
@@ -4,7 +4,10 @@
|
|||||||
#include "imgui/imgui.h"
|
#include "imgui/imgui.h"
|
||||||
|
|
||||||
#include "app/zelda3/common.h"
|
#include "app/zelda3/common.h"
|
||||||
#include "app/zelda3/overworld/overworld.h"
|
#include "app/zelda3/overworld/overworld_exit.h"
|
||||||
|
#include "app/zelda3/overworld/overworld_item.h"
|
||||||
|
#include "app/zelda3/overworld/overworld_entrance.h"
|
||||||
|
#include "app/zelda3/sprite/sprite.h"
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace editor {
|
namespace editor {
|
||||||
|
|||||||
@@ -15,7 +15,6 @@
|
|||||||
#include "app/gfx/bitmap.h"
|
#include "app/gfx/bitmap.h"
|
||||||
#include "app/gfx/snes_palette.h"
|
#include "app/gfx/snes_palette.h"
|
||||||
#include "app/gui/canvas.h"
|
#include "app/gui/canvas.h"
|
||||||
#include "app/gui/color.h"
|
|
||||||
#include "app/gui/icons.h"
|
#include "app/gui/icons.h"
|
||||||
#include "app/gui/input.h"
|
#include "app/gui/input.h"
|
||||||
#include "app/gui/style.h"
|
#include "app/gui/style.h"
|
||||||
|
|||||||
@@ -89,8 +89,6 @@ class OverworldEditor : public Editor, public gfx::GfxContext {
|
|||||||
}
|
}
|
||||||
absl::Status Save();
|
absl::Status Save();
|
||||||
|
|
||||||
auto overworld() { return &overworld_; }
|
|
||||||
|
|
||||||
int jump_to_tab() { return jump_to_tab_; }
|
int jump_to_tab() { return jump_to_tab_; }
|
||||||
int jump_to_tab_ = -1;
|
int jump_to_tab_ = -1;
|
||||||
|
|
||||||
@@ -104,24 +102,9 @@ class OverworldEditor : public Editor, public gfx::GfxContext {
|
|||||||
absl::Status LoadGraphics();
|
absl::Status LoadGraphics();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/**
|
|
||||||
* @brief Draws the canvas, tile16 selector, and toolset in fullscreen
|
|
||||||
*/
|
|
||||||
void DrawFullscreenCanvas();
|
void DrawFullscreenCanvas();
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Toolset for entrances, exits, items, sprites, and transports.
|
|
||||||
*/
|
|
||||||
void DrawToolset();
|
void DrawToolset();
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Draws the overworld map settings. Graphics, palettes, etc.
|
|
||||||
*/
|
|
||||||
void DrawOverworldMapSettings();
|
void DrawOverworldMapSettings();
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Draw the overworld settings for ZSCustomOverworld.
|
|
||||||
*/
|
|
||||||
void DrawCustomOverworldMapSettings();
|
void DrawCustomOverworldMapSettings();
|
||||||
|
|
||||||
void RefreshChildMap(int i);
|
void RefreshChildMap(int i);
|
||||||
@@ -163,10 +146,6 @@ class OverworldEditor : public Editor, public gfx::GfxContext {
|
|||||||
*/
|
*/
|
||||||
absl::Status CheckForCurrentMap();
|
absl::Status CheckForCurrentMap();
|
||||||
void CheckForMousePan();
|
void CheckForMousePan();
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Allows the user to make changes to the overworld map.
|
|
||||||
*/
|
|
||||||
void DrawOverworldCanvas();
|
void DrawOverworldCanvas();
|
||||||
|
|
||||||
absl::Status DrawTile16Selector();
|
absl::Status DrawTile16Selector();
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
#ifndef YAZE_APP_EDITOR_SPRITE_EDITOR_H
|
#ifndef YAZE_APP_EDITOR_SPRITE_EDITOR_H
|
||||||
#define YAZE_APP_EDITOR_SPRITE_EDITOR_H
|
#define YAZE_APP_EDITOR_SPRITE_EDITOR_H
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#include "absl/status/status.h"
|
#include "absl/status/status.h"
|
||||||
#include "app/editor/sprite/zsprite.h"
|
#include "app/editor/sprite/zsprite.h"
|
||||||
#include "app/editor/editor.h"
|
#include "app/editor/editor.h"
|
||||||
@@ -112,4 +115,4 @@ class SpriteEditor : public SharedRom, public Editor {
|
|||||||
} // namespace editor
|
} // namespace editor
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
|
|
||||||
#endif // YAZE_APP_EDITOR_SPRITE_EDITOR_H
|
#endif // YAZE_APP_EDITOR_SPRITE_EDITOR_H
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#ifndef YAZE_APP_EDITOR_SPRITE_ZSPRITE_H
|
#ifndef YAZE_APP_EDITOR_SPRITE_ZSPRITE_H
|
||||||
#define YAZE_APP_EDITOR_SPRITE_ZSPRITE_H
|
#define YAZE_APP_EDITOR_SPRITE_ZSPRITE_H
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
@@ -9,8 +8,6 @@
|
|||||||
|
|
||||||
#include "app/core/constants.h"
|
#include "app/core/constants.h"
|
||||||
#include "absl/status/status.h"
|
#include "absl/status/status.h"
|
||||||
#include "app/gfx/snes_tile.h"
|
|
||||||
#include "imgui/imgui.h"
|
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace editor {
|
namespace editor {
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
#include "popup_manager.h"
|
#include "popup_manager.h"
|
||||||
|
|
||||||
#include "imgui/imgui.h"
|
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace editor {
|
namespace editor {
|
||||||
|
|
||||||
@@ -11,8 +9,5 @@ PopupManager::PopupManager() {
|
|||||||
PopupManager::~PopupManager() {
|
PopupManager::~PopupManager() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace editor
|
} // namespace editor
|
||||||
|
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ class PopupManager {
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // namespace editor
|
} // namespace editor
|
||||||
|
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
|
|
||||||
#endif // YAZE_APP_EDITOR_POPUP_MANAGER_H
|
#endif // YAZE_APP_EDITOR_POPUP_MANAGER_H
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
#include "app/emu/memory/memory.h"
|
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace emu {
|
namespace emu {
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,8 @@
|
|||||||
#define YAZE_APP_EMU_AUDIO_S_DSP_H
|
#define YAZE_APP_EMU_AUDIO_S_DSP_H
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <functional>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "app/emu/audio/spc700.h"
|
|
||||||
#include "app/emu/memory/memory.h"
|
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace emu {
|
namespace emu {
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "app/core/common.h"
|
||||||
#include "app/emu/cpu/internal/opcodes.h"
|
#include "app/emu/cpu/internal/opcodes.h"
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
|
|||||||
@@ -3,13 +3,9 @@
|
|||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <iostream>
|
|
||||||
#include <unordered_map>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "app/core/common.h"
|
|
||||||
#include "app/emu/cpu/clock.h"
|
#include "app/emu/cpu/clock.h"
|
||||||
#include "app/emu/cpu/internal/opcodes.h"
|
|
||||||
#include "app/emu/memory/memory.h"
|
#include "app/emu/memory/memory.h"
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
@@ -797,7 +793,6 @@ class Cpu {
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // namespace emu
|
} // namespace emu
|
||||||
|
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
|
|
||||||
#endif // YAZE_APP_EMU_CPU_H_
|
#endif // YAZE_APP_EMU_CPU_H_
|
||||||
|
|||||||
@@ -185,5 +185,4 @@ uint16_t Cpu::StackRelative() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // namespace emu
|
} // namespace emu
|
||||||
|
} // namespace yaze
|
||||||
} // namespace yaze
|
|
||||||
|
|||||||
@@ -1,16 +1,8 @@
|
|||||||
#include <iostream>
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include "app/emu/cpu/cpu.h"
|
#include "app/emu/cpu/cpu.h"
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace emu {
|
namespace emu {
|
||||||
|
|
||||||
/**
|
|
||||||
* 65816 Instruction Set
|
|
||||||
*/
|
|
||||||
|
|
||||||
void Cpu::And(uint32_t low, uint32_t high) {
|
void Cpu::And(uint32_t low, uint32_t high) {
|
||||||
if (GetAccumulatorSize()) {
|
if (GetAccumulatorSize()) {
|
||||||
CheckInt();
|
CheckInt();
|
||||||
@@ -397,5 +389,4 @@ void Cpu::ORA(uint32_t low, uint32_t high) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // namespace emu
|
} // namespace emu
|
||||||
|
} // namespace yaze
|
||||||
} // namespace yaze
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include "app/core/platform/file_dialog.h"
|
#include "app/core/platform/file_dialog.h"
|
||||||
#include "app/core/platform/renderer.h"
|
#include "app/core/platform/renderer.h"
|
||||||
|
#include "app/emu/cpu/internal/opcodes.h"
|
||||||
#include "app/gui/icons.h"
|
#include "app/gui/icons.h"
|
||||||
#include "app/gui/input.h"
|
#include "app/gui/input.h"
|
||||||
#include "app/gui/zeml.h"
|
#include "app/gui/zeml.h"
|
||||||
|
|||||||
@@ -5,12 +5,10 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <iostream>
|
|
||||||
#include <memory>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "absl/container/flat_hash_map.h" // for flat_hash_map
|
#include "absl/container/flat_hash_map.h"
|
||||||
#include "absl/status/status.h" // for Status
|
#include "absl/status/status.h"
|
||||||
#include "absl/status/statusor.h"
|
#include "absl/status/statusor.h"
|
||||||
#include "app/core/constants.h"
|
#include "app/core/constants.h"
|
||||||
#include "app/gfx/snes_color.h"
|
#include "app/gfx/snes_color.h"
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
#include "color.h"
|
#include "color.h"
|
||||||
|
|
||||||
#include <cmath>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
#include "app/gfx/bitmap.h"
|
|
||||||
#include "app/gfx/snes_color.h"
|
#include "app/gfx/snes_color.h"
|
||||||
#include "app/gfx/snes_palette.h"
|
#include "app/gfx/snes_palette.h"
|
||||||
#include "imgui/imgui.h"
|
#include "imgui/imgui.h"
|
||||||
@@ -168,5 +164,4 @@ void SelectablePalettePipeline(uint64_t& palette_id, bool& refresh_graphics,
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // namespace gui
|
} // namespace gui
|
||||||
|
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#include "input.h"
|
#include "input.h"
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <optional>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "absl/strings/string_view.h"
|
#include "absl/strings/string_view.h"
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <iostream>
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace zelda3 {
|
namespace zelda3 {
|
||||||
|
|
||||||
|
|
||||||
constexpr static inline absl::string_view Type1RoomObjectNames[] = {
|
constexpr static inline absl::string_view Type1RoomObjectNames[] = {
|
||||||
"Ceiling ↔",
|
"Ceiling ↔",
|
||||||
"Wall (top, north) ↔",
|
"Wall (top, north) ↔",
|
||||||
@@ -456,10 +455,7 @@ constexpr static inline absl::string_view Type3RoomObjectNames[] = {
|
|||||||
"Nothing",
|
"Nothing",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace zelda3
|
} // namespace zelda3
|
||||||
|
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
|
|
||||||
#endif // YAZE_APP_ZELDA3_DUNGEON_OBJECT_NAMES_H
|
#endif // YAZE_APP_ZELDA3_DUNGEON_OBJECT_NAMES_H
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace zelda3 {
|
namespace zelda3 {
|
||||||
|
|
||||||
|
|
||||||
void DungeonObjectRenderer::LoadObject(uint32_t routine_ptr,
|
void DungeonObjectRenderer::LoadObject(uint32_t routine_ptr,
|
||||||
std::array<uint8_t, 16>& sheet_ids) {
|
std::array<uint8_t, 16>& sheet_ids) {
|
||||||
vram_.sheets = sheet_ids;
|
vram_.sheets = sheet_ids;
|
||||||
@@ -111,8 +110,5 @@ void DungeonObjectRenderer::UpdateObjectBitmap() {
|
|||||||
bitmap_.Create(256, 256, 8, tilemap_);
|
bitmap_.Create(256, 256, 8, tilemap_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace zelda3
|
} // namespace zelda3
|
||||||
|
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <iostream>
|
|
||||||
#include <stdexcept>
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "app/emu/cpu/cpu.h"
|
#include "app/emu/cpu/cpu.h"
|
||||||
@@ -9,9 +6,7 @@
|
|||||||
#include "app/emu/video/ppu.h"
|
#include "app/emu/video/ppu.h"
|
||||||
#include "app/gfx/bitmap.h"
|
#include "app/gfx/bitmap.h"
|
||||||
#include "app/gfx/snes_palette.h"
|
#include "app/gfx/snes_palette.h"
|
||||||
#include "app/gfx/snes_tile.h"
|
|
||||||
#include "app/rom.h"
|
#include "app/rom.h"
|
||||||
#include "app/zelda3/dungeon/object_names.h"
|
|
||||||
|
|
||||||
namespace yaze {
|
namespace yaze {
|
||||||
namespace zelda3 {
|
namespace zelda3 {
|
||||||
@@ -50,4 +45,4 @@ class DungeonObjectRenderer : public SharedRom {
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // namespace zelda3
|
} // namespace zelda3
|
||||||
} // namespace yaze
|
} // namespace yaze
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ using ::testing::ElementsAreArray;
|
|||||||
using yaze::gfx::ConvertRgbToSnes;
|
using yaze::gfx::ConvertRgbToSnes;
|
||||||
using yaze::gfx::ConvertSnesToRgb;
|
using yaze::gfx::ConvertSnesToRgb;
|
||||||
using yaze::gfx::Extract;
|
using yaze::gfx::Extract;
|
||||||
using yaze::gfx::SnesPalette;
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
unsigned int test_convert(snes_color col) {
|
unsigned int test_convert(snes_color col) {
|
||||||
|
|||||||
Reference in New Issue
Block a user