MCPcopy Create free account
hub / github.com/Rezonality/zep / OnFileChanged

Method OnFileChanged

src/editor.cpp:118–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void ZepEditor::OnFileChanged(const ZepPath& path)
119{
120 if (path.filename() == "zep.cfg")
121 {
122 ZLOG(INFO, "Reloading config");
123 LoadConfig(path);
124 Broadcast(std::make_shared<ZepMessage>(Msg::ConfigChanged));
125 }
126}
127
128// If you pass a valid path to a 'zep.cfg' file, then editor settings will serialize from that
129// You can even edit it inside zep for immediate changes :)

Callers 1

ZepContainerImGuiMethod · 0.80

Calls 1

filenameMethod · 0.80

Tested by

no test coverage detected