diff --git a/rpcs3/Crypto/unpkg.cpp b/rpcs3/Crypto/unpkg.cpp index 63821189e4..3cf6aa7911 100644 --- a/rpcs3/Crypto/unpkg.cpp +++ b/rpcs3/Crypto/unpkg.cpp @@ -66,6 +66,7 @@ bool package_reader::read_header() return false; } + pkg_log.notice("Path: '%s'", m_path); pkg_log.notice("Header: pkg_magic = 0x%x = \"%s\"", +m_header.pkg_magic, std::string(reinterpret_cast(&m_header.pkg_magic), 4)); pkg_log.notice("Header: pkg_type = 0x%x = %d", m_header.pkg_type, m_header.pkg_type); pkg_log.notice("Header: pkg_platform = 0x%x = %d", m_header.pkg_platform, m_header.pkg_platform); @@ -933,14 +934,14 @@ void package_reader::extract_worker(thread_key thread_data_key) if (data_span.size() != block_size) { extract_success = false; - pkg_log.error("Failed to extract file %s", path); + pkg_log.error("Failed to extract file %s (data_span.size=%d, block_size=%d)", path, data_span.size(), block_size); break; } if (out.write(data_span.data(), block_size) != block_size) { extract_success = false; - pkg_log.error("Failed to write file %s", path); + pkg_log.error("Failed to write file %s (error=%s)", path, fs::g_tls_error); break; } @@ -953,7 +954,7 @@ void package_reader::extract_worker(thread_key thread_data_key) if (!out || !fs::write_file(path, fs::rewrite, static_cast>*>(out.release().get())->obj)) { m_num_failures++; - pkg_log.error("Failed to create file %s", path); + pkg_log.error("Failed to create file %s (error=%s)", path, fs::g_tls_error); break; } } @@ -983,7 +984,7 @@ void package_reader::extract_worker(thread_key thread_data_key) else { m_num_failures++; - pkg_log.error("Failed to create file %s", path); + pkg_log.error("Failed to create file %s (is_buffered=%d, did_overwrite=%d, error=%s)", path, is_buffered, did_overwrite, fs::g_tls_error); } break;