refactor: Update CMake presets and improve MusicEditor initialization
- Added binary directory paths to CMake presets for better build organization. - Enhanced the macOS AI preset description to include networking capabilities. - Refactored MusicEditor constructor to remove ROM dependency, simplifying initialization. - Cleaned up unused ROM pointer methods in MusicEditor for improved clarity.
This commit is contained in:
@@ -48,7 +48,7 @@ class EditorSet {
|
||||
: assembly_editor_(rom),
|
||||
dungeon_editor_(rom),
|
||||
graphics_editor_(rom),
|
||||
music_editor_(rom),
|
||||
music_editor_(),
|
||||
overworld_editor_(rom),
|
||||
palette_editor_(rom),
|
||||
screen_editor_(rom),
|
||||
|
||||
@@ -57,7 +57,8 @@ const ImGuiTableFlags music_editor_flags_ = ImGuiTableFlags_SizingFixedFit |
|
||||
*/
|
||||
class MusicEditor : public Editor {
|
||||
public:
|
||||
MusicEditor(Rom* rom) : Editor(rom), assembly_editor_(rom), apu_(rom->memory_impl()) {}
|
||||
MusicEditor() : Editor(EditorType::kMusic) {}
|
||||
|
||||
void Initialize() override;
|
||||
absl::Status Load() override;
|
||||
absl::Status Save() override { return absl::UnimplementedError("Save"); }
|
||||
@@ -68,12 +69,6 @@ class MusicEditor : public Editor {
|
||||
absl::Status Undo() override { return absl::UnimplementedError("Undo"); }
|
||||
absl::Status Redo() override { return absl::UnimplementedError("Redo"); }
|
||||
absl::Status Find() override { return absl::UnimplementedError("Find"); }
|
||||
|
||||
// Set the ROM pointer
|
||||
void set_rom(Rom* rom) { rom_ = rom; }
|
||||
|
||||
// Get the ROM pointer
|
||||
Rom* rom() const { return rom_; }
|
||||
|
||||
private:
|
||||
// UI Drawing Methods
|
||||
|
||||
Reference in New Issue
Block a user