diff options
Diffstat (limited to 'Source/Core/VideoCommon/Assets/CustomAsset.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Assets/CustomAsset.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Assets/CustomAsset.cpp b/Source/Core/VideoCommon/Assets/CustomAsset.cpp index 5a9155d829..2b41d60a21 100644 --- a/Source/Core/VideoCommon/Assets/CustomAsset.cpp +++ b/Source/Core/VideoCommon/Assets/CustomAsset.cpp @@ -11,7 +11,7 @@ CustomAsset::CustomAsset(std::shared_ptr<CustomAssetLibrary> library, { } -bool CustomAsset::Load() +std::size_t CustomAsset::Load() { const auto load_information = LoadImpl(m_asset_id); if (load_information.m_bytes_loaded > 0) @@ -19,8 +19,9 @@ bool 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; + return m_bytes_loaded; } - return load_information.m_bytes_loaded != 0; + return 0; } std::size_t CustomAsset::Unload() |
