mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 07:39:45 -06:00
IOFile: Make origin parameter to Seek() an enum class.
This commit is contained in:
@ -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))
|
||||
{
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user