Skip to content

Commit

Permalink
Update PluginAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
dfranx committed Jul 12, 2020
1 parent f351683 commit 7ec6fba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Shadertoy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
4 changes: 2 additions & 2 deletions inc/PluginAPI/Plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7ec6fba

Please sign in to comment.