summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Assets/CustomAsset.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2025-05-04 17:50:14 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2025-06-06 23:03:02 -0500
commitbafe78203d4eb508c8b9e5d55923cde8d60b72ce (patch)
tree57e9dccc0ea236ec8c035954663243ff1d9a424b /Source/Core/VideoCommon/Assets/CustomAsset.cpp
parent15f125ebeee950924c1317abbfdbc600d480ae78 (diff)
VideoCommon: remove 'GetLastAssetWriteTime' and switch to a steady_clock for asset times
Diffstat (limited to 'Source/Core/VideoCommon/Assets/CustomAsset.cpp')
-rw-r--r--Source/Core/VideoCommon/Assets/CustomAsset.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/Core/VideoCommon/Assets/CustomAsset.cpp b/Source/Core/VideoCommon/Assets/CustomAsset.cpp
index 2b41d60a21..0fc495fe44 100644
--- a/Source/Core/VideoCommon/Assets/CustomAsset.cpp
+++ b/Source/Core/VideoCommon/Assets/CustomAsset.cpp
@@ -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;