integrate sandbox manager with app lifecycle (LaunchApp, StopApp, IsAppRunning)
This commit is contained in:
@@ -379,9 +379,10 @@ std::optional<FileStat> VirtualFS::Stat(const std::string& path, std::string& er
|
||||
}
|
||||
|
||||
auto ftime = fs::last_write_time(physical_path, ec);
|
||||
auto sctp = std::chrono::time_point_cast<std::chrono::seconds>(
|
||||
std::chrono::clock_cast<std::chrono::system_clock>(ftime));
|
||||
stat.modified = sctp.time_since_epoch().count();
|
||||
// Convert file_time_type to system_clock (portable workaround for clock_cast)
|
||||
auto file_time_ns = ftime.time_since_epoch();
|
||||
auto sys_time_ns = std::chrono::duration_cast<std::chrono::seconds>(file_time_ns);
|
||||
stat.modified = sys_time_ns.count();
|
||||
|
||||
return stat;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user