[nostalgia/studio] Get save working

This commit is contained in:
2022-02-19 01:45:37 -06:00
parent 5b7dacd51f
commit 56ec063658
12 changed files with 73 additions and 27 deletions
@@ -119,6 +119,8 @@ class TileSheetEditorModel {
studio::UndoStack m_undoStack;
DrawCommand *m_ongoingDrawCommand = nullptr;
bool m_updated = false;
Context *m_ctx = nullptr;
ox::String m_path;
public:
TileSheetEditorModel(Context *ctx, const ox::String &path);
@@ -149,6 +151,8 @@ class TileSheetEditorModel {
void ackUpdate() noexcept;
ox::Error saveFile() noexcept;
constexpr studio::UndoStack *undoStack() noexcept {
return &m_undoStack;
}