Log script finishing. Fixed logging crashing too, woops

This commit is contained in:
danzel 2017-08-13 10:58:04 +12:00
parent 63ca1acd2b
commit 8ea7673a44
2 changed files with 5 additions and 0 deletions

View File

@ -73,6 +73,7 @@ namespace Log {
SUB(Audio, Sink) \ SUB(Audio, Sink) \
CLS(Input) \ CLS(Input) \
CLS(Network) \ CLS(Network) \
CLS(ScriptedInput) \
CLS(Loader) \ CLS(Loader) \
CLS(WebService) CLS(WebService)

View File

@ -104,6 +104,10 @@ void ScriptRunner::NotifyFrameFinished() {
scripted_buttons.get()->SetActiveButtons(script[script_index].buttons_active); scripted_buttons.get()->SetActiveButtons(script[script_index].buttons_active);
} }
} }
if (script_index >= script.size()) {
LOG_INFO(ScriptedInput, "Scripted Input finished at frame %i", frame_number);
}
} }
void ScriptRunner::SaveScreenshot() { void ScriptRunner::SaveScreenshot() {