From 39989a6107e2ef07df0f55197ee7fbdc848f2145 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 30 Aug 2015 16:38:51 -0700 Subject: [PATCH] Adding log lines to help find unimplemented NtQueryInformationFile calls. --- src/xenia/kernel/xboxkrnl_io.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xenia/kernel/xboxkrnl_io.cc b/src/xenia/kernel/xboxkrnl_io.cc index 598d67c27..80a9b7da6 100644 --- a/src/xenia/kernel/xboxkrnl_io.cc +++ b/src/xenia/kernel/xboxkrnl_io.cc @@ -387,7 +387,6 @@ dword_result_t NtQueryInformationFile( // Internal unique file pointer. Not sure why anyone would want this. assert_true(length == 8); info = 8; - // TODO(benvanik): use pointer to fs:: entry? xe::store_and_swap(file_info_ptr, xe::memory::hash_combine(0, file->path())); @@ -398,7 +397,6 @@ dword_result_t NtQueryInformationFile( // }; assert_true(length == 8); info = 8; - xe::store_and_swap(file_info_ptr, file->position()); break; case XFileNetworkOpenInformation: { @@ -427,6 +425,9 @@ dword_result_t NtQueryInformationFile( } case XFileXctdCompressionInformation: { assert_true(length == 4); + XELOGE( + "NtQueryInformationFile(XFileXctdCompressionInformation) " + "unimplemented"); // This is wrong and puts files into wrong states for games that use // XctdDecompression. /* @@ -454,7 +455,7 @@ dword_result_t NtQueryInformationFile( case XFileSectorInformation: // TODO(benvanik): return sector this file's on. assert_true(length == 4); - + XELOGE("NtQueryInformationFile(XFileSectorInformation) unimplemented"); result = X_STATUS_UNSUCCESSFUL; info = 0; break;