mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 09:39:13 +00:00
VideoCommon: remove 'GetLastAssetWriteTime' and switch to a steady_clock for asset times
This commit is contained in:
parent
15f125ebee
commit
bafe78203d
5 changed files with 13 additions and 67 deletions
|
@ -18,7 +18,7 @@ std::size_t CustomAsset::Load()
|
|||
{
|
||||
std::lock_guard lk(m_info_lock);
|
||||
m_bytes_loaded = load_information.m_bytes_loaded;
|
||||
m_last_loaded_time = load_information.m_load_time;
|
||||
m_last_loaded_time = ClockType::now();
|
||||
return m_bytes_loaded;
|
||||
}
|
||||
return 0;
|
||||
|
@ -36,12 +36,7 @@ std::size_t CustomAsset::Unload()
|
|||
return bytes_loaded;
|
||||
}
|
||||
|
||||
CustomAssetLibrary::TimeType CustomAsset::GetLastWriteTime() const
|
||||
{
|
||||
return m_owning_library->GetLastAssetWriteTime(m_asset_id);
|
||||
}
|
||||
|
||||
const CustomAssetLibrary::TimeType& CustomAsset::GetLastLoadedTime() const
|
||||
const CustomAsset::TimeType& CustomAsset::GetLastLoadedTime() const
|
||||
{
|
||||
std::lock_guard lk(m_info_lock);
|
||||
return m_last_loaded_time;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue