summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2022-01-29 11:59:58 +0100
committerGitHub <noreply@github.com>2022-01-29 11:59:58 +0100
commitaf5678ea758d493c419ca53c56a0ce4f8fa0ca0f (patch)
tree6e76a1fee0e79d593d95c9680d2353f9033b0ac6 /Source/Core/VideoCommon
parentfbe7cf675cf412af12d2f750c6162f6e4151c52c (diff)
parenta336c4386c154746ef2ea732b13872f5293666be (diff)
Merge pull request #10403 from AdmiralCurtiss/iofile-seek
Minor IOFile cleanup.
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/HiresTextures_DDSLoader.cpp2
-rw-r--r--Source/Core/VideoCommon/ShaderCache.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/HiresTextures_DDSLoader.cpp b/Source/Core/VideoCommon/HiresTextures_DDSLoader.cpp
index e5b4c0a3e9..f3b2daf5eb 100644
--- a/Source/Core/VideoCommon/HiresTextures_DDSLoader.cpp
+++ b/Source/Core/VideoCommon/HiresTextures_DDSLoader.cpp
@@ -447,7 +447,7 @@ bool HiresTexture::LoadDDSTexture(HiresTexture* tex, const std::string& filename
// Read first mip level, as it may have a custom pitch.
Level first_level;
- if (!file.Seek(info.first_mip_offset, SEEK_SET) ||
+ if (!file.Seek(info.first_mip_offset, File::SeekOrigin::Begin) ||
!ReadMipLevel(&first_level, file, filename, 0, info, info.width, info.height,
info.first_mip_row_length, info.first_mip_size))
{
diff --git a/Source/Core/VideoCommon/ShaderCache.cpp b/Source/Core/VideoCommon/ShaderCache.cpp
index eada4c970b..984793d9d8 100644
--- a/Source/Core/VideoCommon/ShaderCache.cpp
+++ b/Source/Core/VideoCommon/ShaderCache.cpp
@@ -772,7 +772,7 @@ void ShaderCache::LoadPipelineUIDCache()
// We open the file for reading and writing, so we must seek to the end before writing.
if (uid_file_valid)
- uid_file_valid = m_gx_pipeline_uid_cache_file.Seek(expected_size, SEEK_SET);
+ uid_file_valid = m_gx_pipeline_uid_cache_file.Seek(expected_size, File::SeekOrigin::Begin);
}
// If the file is invalid, close it. We re-open and truncate it below.