You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: assets/Changelog.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,8 @@ Added override Lua files for ProcessLocalScriptFunction and ProcessInternal [UE4
45
45
46
46
Added override Lua files for CallFunctionByNameWithArguments [UE4SS #848](https://github.com/UE4SS-RE/RE-UE4SS/pull/848) - M3C3I
47
47
48
+
Add error messages in places where only error codes were previously logged (e.g. load a C++ mod) [UE4SS #902](https://github.com/UE4SS-RE/RE-UE4SS/pull/902)
if (!WriteFile(file.get_file(), data, num_bytes_to_write, &bytes_written, nullptr))
101
105
{
102
-
THROW_INTERNAL_FILE_ERROR(fmt::format("[WinFile::write_to_file] Tried writing to file but was unable to complete operation. Error: {}", GetLastError()))
106
+
THROW_INTERNAL_FILE_ERROR(fmt::format("[WinFile::write_to_file] Tried writing to file but was unable to complete operation. error: {}",
107
+
to_string(Win32Error(GetLastError())).c_str()))
103
108
}
104
109
}
105
110
@@ -168,10 +173,8 @@ namespace RC::File
168
173
{
169
174
returnfalse;
170
175
}
171
-
else
172
-
{
173
-
deserialize_identifying_properties();
174
-
}
176
+
177
+
deserialize_identifying_properties();
175
178
}
176
179
177
180
BY_HANDLE_FILE_INFORMATION live_info{};
@@ -292,8 +295,8 @@ namespace RC::File
292
295
auto res = ReadFile(cache_file.get_raw_handle(), &m_cache, cache_size, &bytes_read, nullptr);
293
296
if (res == 0)
294
297
{
295
-
THROW_INTERNAL_FILE_ERROR(
296
-
fmt::format("[WinFile::get_serialized_item] Tried deserializing file but was unable to complete operation. Error: {}", GetLastError()))
298
+
THROW_INTERNAL_FILE_ERROR(fmt::format("[WinFile::get_serialized_item] Tried deserializing file but was unable to complete operation. error: {}",
THROW_INTERNAL_FILE_ERROR(fmt::format("[WinFile::write_string_to_file] Tried writing string to file but string_size was 0. Error: {}", GetLastError()))
393
+
THROW_INTERNAL_FILE_ERROR(fmt::format("[WinFile::write_string_to_file] Tried writing string to file but string_size was 0. {}",
if (GetFileInformationByHandle(m_file, &file_info) == 0)
414
419
{
415
-
THROW_INTERNAL_FILE_ERROR(fmt::format("[WinFile::is_same_as] Tried retrieving file information by handle. Error: {}", GetLastError()))
420
+
THROW_INTERNAL_FILE_ERROR(fmt::format("[WinFile::is_same_as] Tried retrieving file information by handle. {}", to_string(Win32Error(GetLastError())).c_str()))
416
421
}
417
422
418
423
BY_HANDLE_FILE_INFORMATION other_file_info{};
419
424
if (GetFileInformationByHandle(other_file.get_file(), &other_file_info) == 0)
420
425
{
421
-
THROW_INTERNAL_FILE_ERROR(fmt::format("[WinFile::is_same_as] Tried retrieving file information by handle. Error: {}", GetLastError()))
426
+
THROW_INTERNAL_FILE_ERROR(fmt::format("[WinFile::is_same_as] Tried retrieving file information by handle. {}", to_string(Win32Error(GetLastError())).c_str()))
422
427
}
423
428
424
429
if (file_info.dwVolumeSerialNumber != other_file_info.dwVolumeSerialNumber)
0 commit comments