From acdb0ee72922a82d24a3d568b3bbd23802269980 Mon Sep 17 00:00:00 2001 From: Functionable <40835042+Functionable@users.noreply.github.com> Date: Tue, 9 Dec 2025 23:53:57 +0000 Subject: [PATCH] ISO: Small clean up Cleaning up old comments and fixing small mistakes in ISO.cpp --- rpcs3/Loader/ISO.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcs3/Loader/ISO.cpp b/rpcs3/Loader/ISO.cpp index db11f14c84..4ba55fae78 100644 --- a/rpcs3/Loader/ISO.cpp +++ b/rpcs3/Loader/ISO.cpp @@ -7,7 +7,6 @@ #include #include -// TODO: replace with file check for iso! bool is_file_iso(const std::string& path) { if (fs::is_dir(path)) return false; @@ -355,7 +354,7 @@ std::pair iso_file::get_extent_pos(u64 pos) const { auto it = m_meta.extents.begin(); - while(pos >= it->size && it < m_meta.extents.end() - 1) + while(pos >= it->size && it != m_meta.extents.end() - 1) { pos -= it->size; @@ -405,7 +404,7 @@ u64 iso_file::read_at(u64 offset, void* buffer, u64 size) if (size > total_read && (offset + total_read) < total_size) { u64 second_total_read = read_at(offset + total_read, - static_cast(buffer) + total_read, + reinterpret_cast(buffer) + total_read, size - total_read ); @@ -580,6 +579,7 @@ std::unique_ptr iso_device::open_dir(const std::string& path) // pointing to a file instead of a folder, which translates to error::unknown. // doing the same here. fs::g_tls_error = fs::error::unknown; + return nullptr; } return std::make_unique(*node);