mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 06:48:33 +00:00
VideoCommon: Move shader cache filename generation to common
This commit is contained in:
parent
7c5bbafdd1
commit
d01b0bf60f
9 changed files with 61 additions and 51 deletions
|
@ -552,14 +552,8 @@ void ProgramShaderCache::LoadProgramBinaries()
|
|||
}
|
||||
else
|
||||
{
|
||||
if (!File::Exists(File::GetUserPath(D_SHADERCACHE_IDX)))
|
||||
File::CreateDir(File::GetUserPath(D_SHADERCACHE_IDX));
|
||||
|
||||
std::string host_part = g_ActiveConfig.GetHostConfigFilename();
|
||||
std::string cache_filename =
|
||||
StringFromFormat("%sogl-%s-%s-shaders.cache", File::GetUserPath(D_SHADERCACHE_IDX).c_str(),
|
||||
SConfig::GetInstance().GetGameID().c_str(), host_part.c_str());
|
||||
|
||||
g_ActiveConfig.GetDiskCacheFileName(APIType::OpenGL, "ProgramBinaries", true, true);
|
||||
ProgramShaderCacheInserter inserter;
|
||||
g_program_disk_cache.OpenAndRead(cache_filename, inserter);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue