Skip to content

Commit

Permalink
xrRender: Rename "shaders_cache" to "shaders_cache_oxr" (to not mess …
Browse files Browse the repository at this point in the history
…with original game)
  • Loading branch information
ShokerStlk committed Apr 26, 2020
1 parent ced5ae1 commit e4b3ed6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_GL/rgl_shaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ HRESULT CRender::shader_compile(LPCSTR name, IReader* fs, LPCSTR pFunctionName,
if (HW.ShaderBinarySupported)
{
string_path file;
strconcat(sizeof(file), file, "shaders_cache" DELIMITER, filename);
strconcat(sizeof(file), file, "shaders_cache_oxr" DELIMITER, filename);
FS.update_path(full_path, "$app_data_root$", file);

string_path shadersFolder;
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_R1/FStaticRender_Shaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ HRESULT CRender::shader_compile(LPCSTR name, IReader* fs, LPCSTR pFunctionName,
if (!match_shader_id(name, sh_name, m_file_set, temp_file_name))
{
string_path file;
strconcat(sizeof(file), file, "shaders_cache" DELIMITER, filename, DELIMITER, sh_name);
strconcat(sizeof(file), file, "shaders_cache_oxr" DELIMITER, filename, DELIMITER, sh_name);
strconcat(sizeof(filename), filename, filename, DELIMITER, sh_name);
FS.update_path(file_name, "$app_data_root$", file);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_R2/r2_shaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ HRESULT CRender::shader_compile(
if (!match_shader_id(name, sh_name, m_file_set, temp_file_name))
{
string_path file;
strconcat(sizeof(file), file, "shaders_cache" DELIMITER, filename, DELIMITER, sh_name);
strconcat(sizeof(file), file, "shaders_cache_oxr" DELIMITER, filename, DELIMITER, sh_name);
strconcat(sizeof(filename), filename, filename, DELIMITER, sh_name);
FS.update_path(file_name, "$app_data_root$", file);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_R3/r3_shaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ HRESULT CRender::shader_compile(LPCSTR name, IReader* fs, LPCSTR pFunctionName,
if (!match_shader_id(name, sh_name, m_file_set, temp_file_name))
{
string_path file;
strconcat(sizeof(file), file, "shaders_cache" DELIMITER, filename, DELIMITER, sh_name);
strconcat(sizeof(file), file, "shaders_cache_oxr" DELIMITER, filename, DELIMITER, sh_name);
strconcat(sizeof(filename), filename, filename, DELIMITER, sh_name);
FS.update_path(file_name, "$app_data_root$", file);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_R4/r4_shaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ HRESULT CRender::shader_compile(LPCSTR name, IReader* fs, LPCSTR pFunctionName,
if (!match_shader_id(name, sh_name.c_str(), m_file_set, temp_file_name))
{
string_path file;
strconcat(sizeof(file), file, "shaders_cache" DELIMITER, filename, DELIMITER, sh_name.c_str());
strconcat(sizeof(file), file, "shaders_cache_oxr" DELIMITER, filename, DELIMITER, sh_name.c_str());
strconcat(sizeof(filename), filename, filename, DELIMITER, sh_name.c_str());
FS.update_path(file_name, "$app_data_root$", file);
}
Expand Down

0 comments on commit e4b3ed6

Please sign in to comment.