Skip to content

Commit

Permalink
thanks bro
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNaeem committed Sep 5, 2022
1 parent 7796825 commit e24484f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion UnrealMappingsDumper/UnrealMappingsDumper.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<LanguageStandard>stdcpplatest</LanguageStandard>
<DisableSpecificWarnings>4244;</DisableSpecificWarnings>
<DisableSpecificWarnings>4244;4267;</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down
6 changes: 3 additions & 3 deletions UnrealMappingsDumper/dumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ void Dumper<Engine>::Run(ECompressionMethod CompressionMethod) const
StreamWriter Buffer;
phmap::parallel_flat_hash_map<Engine::FName, int> NameMap;

std::vector<typename Engine::UEnum*> Enums;
std::vector<typename Engine::UStruct*> Structs; // TODO: a better way than making this completely dynamic
std::vector<class Engine::UEnum*> Enums;
std::vector<class Engine::UStruct*> Structs; // TODO: a better way than making this completely dynamic

std::function<void(typename Engine::FProperty*&, EPropertyType)> WritePropertyWrapper{}; // hacky.. i know
std::function<void(class Engine::FProperty*&, EPropertyType)> WritePropertyWrapper{}; // hacky.. i know

auto WriteProperty = [&](Engine::FProperty*& Prop, EPropertyType Type)
{
Expand Down
6 changes: 6 additions & 0 deletions UnrealMappingsDumper/unrealFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@

#include "unrealContainers.h"

#define DECLARE_UE_FUNC(name, returnVal, params) \
typedef returnval (*_name)(params); \
inline _name name; \

//DECLARE_UE_FUNC(FNameToString, void, (const void* pThis, FString& Out));

typedef void (*_FNameToString)(const void* pThis, FString& Out);
inline _FNameToString FNameToString;

0 comments on commit e24484f

Please sign in to comment.