Route recording cleanup through platform services

This commit is contained in:
2026-06-03 05:04:14 +02:00
parent 578b1f6082
commit ac4d065c78
10 changed files with 86 additions and 14 deletions

View File

@@ -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();
}