Skip to content

Commit

Permalink
fix: mappings file dump location (#534)
Browse files Browse the repository at this point in the history
* fix: mappings file dump location

* chore: update changelog
  • Loading branch information
Buckminsterfullerene02 authored May 29, 2024
1 parent 6c84261 commit 5c1bfc4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion UE4SS/src/USMapGenerator/Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <Unreal/UScriptStruct.hpp>
#include <Unreal/UnrealVersion.hpp>

#include "UE4SSProgram.hpp"

namespace RC::OutTheShade
{
using namespace ::RC::Unreal;
Expand Down Expand Up @@ -504,7 +506,8 @@ namespace RC::OutTheShade
UsmapData.resize(UncompressedStream.size());
memcpy(UsmapData.data(), UncompressedStream.data(), UsmapData.size());

auto FileOutput = FileWriter("Mappings.usmap");
auto filename = to_string(UE4SSProgram::get_program().get_working_directory()) + "//Mappings.usmap";
auto FileOutput = FileWriter(filename.c_str());

FileOutput.Write<uint16_t>(0x30C4); // magic
FileOutput.Write<uint8_t>(0); // version
Expand Down
7 changes: 6 additions & 1 deletion assets/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ v3.1.0
==============
TBD

some notes about most important changes such as:
- changing of default ue4ss install location, overriding and its backwards compatibility
- new build system
- linux port

## New
Added support for UE Version 5.4 - ([UE4SS #503](https://github.com/UE4SS-RE/RE-UE4SS/pull/503))

Expand Down Expand Up @@ -39,7 +44,7 @@ This can be used when calling `FileHandle::memory_map`, unlike `OpenFor::Writing
## Changes

### General
Changed the default location of the UE4SS release assets to be in `game executable directory/ue4ss/`. ([UE4SS #506](https://github.com/UE4SS-RE/RE-UE4SS/pull/506)) - Buckminsterfullerene
Changed the default location of the UE4SS release assets to be in `game executable directory/ue4ss/`. This change is backwards compatible with the old location. ([UE4SS #506](https://github.com/UE4SS-RE/RE-UE4SS/pull/506)) - Buckminsterfullerene

### Live View
Fixed the majority of the lag ([UE4SS #512](https://github.com/UE4SS-RE/RE-UE4SS/pull/512))
Expand Down

0 comments on commit 5c1bfc4

Please sign in to comment.