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

@@ -16,6 +16,7 @@ void android_pick_file_save(std::function<void(std::string)> callback);
std::string android_get_clipboard();
bool android_set_clipboard(const std::string& s);
#elif __APPLE__
void delete_all_files_in_path(const std::string& source_path);
#elif __LINUX__
#include <tinyfiledialogs.h>
std::string linux_home_path();
@@ -211,6 +212,24 @@ public:
{
}
[[nodiscard]] bool deletes_recorded_files_on_clear() override
{
#if defined(__IOS__) || defined(__OSX__)
return true;
#else
return false;
#endif
}
void clear_recorded_files(std::string_view recording_path) override
{
#if defined(__IOS__) || defined(__OSX__)
delete_all_files_in_path(std::string(recording_path));
#else
(void)recording_path;
#endif
}
void update_platform_frame(float delta_time_seconds) override
{
(void)delta_time_seconds;