Route recording cleanup through platform services
This commit is contained in:
10
src/app.cpp
10
src/app.cpp
@@ -759,18 +759,12 @@ void App::rec_clear()
|
||||
{
|
||||
const auto plan = pp::app::plan_recording_clear(
|
||||
rec_running,
|
||||
#if defined(__IOS__) || defined(__OSX__)
|
||||
true
|
||||
#else
|
||||
false
|
||||
#endif
|
||||
platform_deletes_recorded_files_on_clear()
|
||||
);
|
||||
if (plan.stop_running_recording)
|
||||
rec_stop();
|
||||
#if defined(__IOS__) || defined(__OSX__)
|
||||
if (plan.delete_recorded_files)
|
||||
delete_all_files_in_path(rec_path);
|
||||
#endif
|
||||
clear_platform_recorded_files(rec_path);
|
||||
rec_count = plan.frame_count_after_clear;
|
||||
update_rec_frames();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user