@@ -59,7 +59,7 @@ namespace rift::editor
59
59
60
60
int Editor::Run (StringView projectPath)
61
61
{
62
- fileWatcher.StartAsync ();
62
+ fileWatcher.StartWatchingAsync ();
63
63
64
64
// Setup window
65
65
p::Info (" Initializing editor..." );
@@ -108,10 +108,10 @@ namespace rift::editor
108
108
ast::FunctionsSystem::ClearAddedTags (ast);
109
109
ast::TransactionSystem::ClearTags (ast);
110
110
111
- if (bFilesDirty )
111
+ if (filesDirty )
112
112
{
113
113
ast::LoadSystem::Run (ast);
114
- bFilesDirty = false ;
114
+ filesDirty = false ;
115
115
}
116
116
ast::FunctionsSystem::ResolveCallFunctionIds (ast);
117
117
ast::TypeSystem::ResolveExprTypeIds (ast);
@@ -172,9 +172,9 @@ namespace rift::editor
172
172
173
173
// Start watching the project folder for file changes
174
174
ast.Add (GetProjectId (ast), fileWatcher.ListenPath (projectPath, true ,
175
- [](StringView path, StringView filename,
175
+ [](FileWatchId id, StringView path, StringView filename,
176
176
FileWatchAction action, StringView oldFilename) {
177
- Editor::Get ().bFilesDirty = true ;
177
+ Editor::Get ().filesDirty = true ;
178
178
}));
179
179
180
180
@@ -189,9 +189,9 @@ namespace rift::editor
189
189
void Editor::CloseProject ()
190
190
{
191
191
Id id = GetProjectId (ast);
192
- if (ast.IsValid (id) && ast.Has <p::FileListenerId >(id))
192
+ if (ast.IsValid (id) && ast.Has <p::FileWatchId >(id))
193
193
{
194
- fileWatcher.StopListening (ast.Get <p::FileListenerId >(id));
194
+ fileWatcher.StopListening (ast.Get <p::FileWatchId >(id));
195
195
}
196
196
ast::CloseProject (ast);
197
197
}
0 commit comments