+ Added file updating
This commit is contained in:
@@ -27,7 +27,15 @@ public class BenchmarkFramework
|
||||
BenchmarkInput input = new BenchmarkInput(args);
|
||||
return ExecuteCommand(input.key, input);
|
||||
}
|
||||
|
||||
|
||||
public void Update()
|
||||
{
|
||||
synchronized(benchmarkManager)
|
||||
{
|
||||
benchmarkManager.Update();
|
||||
}
|
||||
}
|
||||
|
||||
// Registers a command
|
||||
private void RegisterCommand(String commandName, BenchmarkCommand command)
|
||||
{
|
||||
|
||||
@@ -174,7 +174,10 @@ public class BenchmarkManager
|
||||
private void OnRescan(MonitoredFile file)
|
||||
{
|
||||
// For now, all we need is to note that something was adjusted.
|
||||
if(file.path.endsWith(extension))
|
||||
if(file.path.toString().contains(extension))
|
||||
{
|
||||
BenchmarkLog.Log("File status changed: " + file.path);
|
||||
needsUpdate = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user