diff --git a/Shadertoy.h b/Shadertoy.h index 8f1005d..c388173 100644 --- a/Shadertoy.h +++ b/Shadertoy.h @@ -159,8 +159,8 @@ namespace st virtual bool ShaderEditor_HasStats(int langID, int editorID) { return 0; } // code editor - virtual void CodeEditor_SaveItem(const char* src, int srcLen, int id) { } - virtual void CodeEditor_CloseItem(int id) { } + virtual void CodeEditor_SaveItem(const char* src, int srcLen, const char* path) { } + virtual void CodeEditor_CloseItem(const char* path) { } virtual bool LanguageDefinition_Exists(int id) { return 0; } virtual int LanguageDefinition_GetKeywordCount(int id) { return 0; } virtual const char** LanguageDefinition_GetKeywords(int id) { return 0; } diff --git a/inc/PluginAPI/Plugin.h b/inc/PluginAPI/Plugin.h index 45570b2..a0a327c 100644 --- a/inc/PluginAPI/Plugin.h +++ b/inc/PluginAPI/Plugin.h @@ -286,8 +286,8 @@ namespace ed { virtual bool ShaderEditor_HasStats(int langID, int editorID) = 0; // code editor - virtual void CodeEditor_SaveItem(const char* src, int srcLen, int id) = 0; - virtual void CodeEditor_CloseItem(int id) = 0; + virtual void CodeEditor_SaveItem(const char* src, int srcLen, const char* path) { } + virtual void CodeEditor_CloseItem(const char* path) { } virtual bool LanguageDefinition_Exists(int id) = 0; virtual int LanguageDefinition_GetKeywordCount(int id) = 0; virtual const char** LanguageDefinition_GetKeywords(int id) = 0;