Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Yangff committed Jun 9, 2024
1 parent 3dd00e3 commit 9b45520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UE4SS/src/Platform/Win32/CrashDumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace RC
LONG WINAPI ExceptionHandler(_EXCEPTION_POINTERS* exception_pointers)
{
const auto now = time_point_cast<seconds>(system_clock::now());
const std::wstring dump_path = std::format(L"{}\\crash_{:%Y_%m_%d_%H_%M_%S}.dmp", StringType{UE4SSProgram::get_program().get_working_directory()}, now);
const std::wstring dump_path = std::format(L"{}\\crash_{:%Y_%m_%d_%H_%M_%S}.dmp", SystemStringType{UE4SSProgram::get_program().get_working_directory()}, now);

const HANDLE file = CreateFileW(dump_path.c_str(), GENERIC_WRITE, FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);

Expand Down
2 changes: 1 addition & 1 deletion UE4SS/src/UE4SSProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,7 @@ namespace RC
return m_mods_directory_str;
}

auto UE4SSProgram::get_legacy_root_directory() -> File::StringViewType
auto UE4SSProgram::get_legacy_root_directory() -> SystemStringViewType
{
return m_legacy_root_directory.c_str();
}
Expand Down

0 comments on commit 9b45520

Please sign in to comment.