diff options
| author | Léo Lam <leo@leolam.fr> | 2021-04-22 23:36:39 +0200 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-04-22 23:39:46 +0200 |
| commit | 2015796b8014cdbdd472cb1140361e050ceaf758 (patch) | |
| tree | fb0e437ea42595d7a05a395bf41087f11fce6a49 /src | |
| parent | e631e0dc2b3d920f36eeec01413c22195928d885 (diff) | |
ksys: Fix signature of KingEditorComponent::syncData
The buffer needs to be mutable. ActorParamMgr modifies it for example
Diffstat (limited to 'src')
| -rw-r--r-- | src/KingSystem/ActorSystem/actActorParamMgr.h | 2 | ||||
| -rw-r--r-- | src/KingSystem/GameData/gdtManager.cpp | 2 | ||||
| -rw-r--r-- | src/KingSystem/GameData/gdtManager.h | 2 | ||||
| -rw-r--r-- | src/KingSystem/System/KingEditor.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/KingSystem/ActorSystem/actActorParamMgr.h b/src/KingSystem/ActorSystem/actActorParamMgr.h index 452c5855..c39c4709 100644 --- a/src/KingSystem/ActorSystem/actActorParamMgr.h +++ b/src/KingSystem/ActorSystem/actActorParamMgr.h @@ -30,7 +30,7 @@ class ActorParamMgr final : public sead::hostio::Node, public KingEditorComponen public: const char* getName() const override { return "AglXml"; } - void syncData(const char* data) override; + void syncData(char* data) override; DebugMessage& getDebugMessage() { return mDebugMessage; } sead::Heap* getDebugHeap() const { return mDebugHeap; } diff --git a/src/KingSystem/GameData/gdtManager.cpp b/src/KingSystem/GameData/gdtManager.cpp index 8258bd56..2e392908 100644 --- a/src/KingSystem/GameData/gdtManager.cpp +++ b/src/KingSystem/GameData/gdtManager.cpp @@ -664,7 +664,7 @@ void Manager::destroyRetryBuffer() { } } -void Manager::syncData(const char* data) { +void Manager::syncData(char* data) { const sead::SafeString cmd = data; if (cmd.compare("SyncStart") == 0) { if (util::getDebugHeap()) { diff --git a/src/KingSystem/GameData/gdtManager.h b/src/KingSystem/GameData/gdtManager.h index fa48a737..c480977e 100644 --- a/src/KingSystem/GameData/gdtManager.h +++ b/src/KingSystem/GameData/gdtManager.h @@ -218,7 +218,7 @@ class Manager : public IManager, public KingEditorComponent { Manager(); ~Manager() override; const char* getName() const override { return "GameData"; } - void syncData(const char* data) override; + void syncData(char* data) override; public: struct ResetEvent { diff --git a/src/KingSystem/System/KingEditor.h b/src/KingSystem/System/KingEditor.h index ec310f3c..25b40aa1 100644 --- a/src/KingSystem/System/KingEditor.h +++ b/src/KingSystem/System/KingEditor.h @@ -10,7 +10,7 @@ namespace ksys { class KingEditorComponent { public: virtual const char* getName() const = 0; - virtual void syncData(const char* data) = 0; + virtual void syncData(char* data) = 0; void log(const char* message, void* x = {}, int y = {}) const; |
