mirror of
https://github.com/citra-emu/citra-nightly.git
synced 2024-12-26 00:55:35 +00:00
Rename InvalidateTransferable to InvalidateAll to match what it does
This commit is contained in:
parent
7092ba8480
commit
2d86bc6db5
|
@ -133,7 +133,7 @@ std::optional<std::vector<ShaderDiskCacheRaw>> ShaderDiskCache::LoadTransferable
|
|||
if (version < NativeVersion) {
|
||||
LOG_INFO(Render_OpenGL, "Transferable shader cache is old - removing");
|
||||
file.Close();
|
||||
InvalidateTransferable();
|
||||
InvalidateAll();
|
||||
return {};
|
||||
}
|
||||
if (version > NativeVersion) {
|
||||
|
@ -298,7 +298,7 @@ bool ShaderDiskCache::SaveDecompiledFile(u64 unique_identifier,
|
|||
return true;
|
||||
}
|
||||
|
||||
void ShaderDiskCache::InvalidateTransferable() {
|
||||
void ShaderDiskCache::InvalidateAll() {
|
||||
if (!FileUtil::Delete(GetTransferablePath())) {
|
||||
LOG_ERROR(Render_OpenGL, "Failed to invalidate transferable file={}",
|
||||
GetTransferablePath());
|
||||
|
@ -331,7 +331,7 @@ void ShaderDiskCache::SaveRaw(const ShaderDiskCacheRaw& entry) {
|
|||
if (file.WriteObject(TransferableEntryKind::Raw) != 1 || !entry.Save(file)) {
|
||||
LOG_ERROR(Render_OpenGL, "Failed to save raw transferable cache entry - removing");
|
||||
file.Close();
|
||||
InvalidateTransferable();
|
||||
InvalidateAll();
|
||||
return;
|
||||
}
|
||||
transferable.insert({id, entry});
|
||||
|
|
|
@ -99,7 +99,7 @@ public:
|
|||
std::pair<ShaderDecompiledMap, ShaderDumpsMap> LoadPrecompiled();
|
||||
|
||||
/// Removes the transferable (and precompiled) cache file.
|
||||
void InvalidateTransferable();
|
||||
void InvalidateAll();
|
||||
|
||||
/// Removes the precompiled cache file and clears virtual precompiled cache file.
|
||||
void InvalidatePrecompiled();
|
||||
|
|
|
@ -481,8 +481,7 @@ void ShaderProgramManager::LoadDiskCache(const std::atomic_bool& stop_loading,
|
|||
"Invalid hash in entry={:016x} (obtained hash={:016x}) - removing "
|
||||
"shader cache",
|
||||
raw.GetUniqueIdentifier(), calculated_hash);
|
||||
disk_cache.InvalidateTransferable();
|
||||
disk_cache.InvalidatePrecompiled();
|
||||
disk_cache.InvalidateAll();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -600,7 +599,7 @@ void ShaderProgramManager::LoadDiskCache(const std::atomic_bool& stop_loading,
|
|||
LoadTransferable(0, raws.size(), raws);
|
||||
|
||||
if (compilation_failed) {
|
||||
disk_cache.InvalidateTransferable();
|
||||
disk_cache.InvalidateAll();
|
||||
}
|
||||
|
||||
if (precompiled_cache_altered) {
|
||||
|
|
Loading…
Reference in a new issue