Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ZHMModSDK/Include/Glacier/SDestinationLocationInfo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#pragma once

#include "ZString.h"

// Localised display text not keys
struct SDestinationLocationInfo {
ZString m_sCity;
ZString m_sCountry;
ZString m_sName;
};
5 changes: 5 additions & 0 deletions ZHMModSDK/Include/Hooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class ZHitmanMorphemePostProcessor;
class ZHM5WeaponRecoilController;
class ZEvergreenCampaignManager;
class ZFreeCameraControlEditorStyleEntity;
struct SDestinationLocationInfo;

class ZHMSDK_API Hooks {
public:
Expand Down Expand Up @@ -350,4 +351,8 @@ class ZHMSDK_API Hooks {
static Hook<ZString* (
ZFreeCameraControlEditorStyleEntity* th, ZString& result
)>* ZFreeCameraControlEditorStyleEntity_GenerateActionBindingString;

static Hook<const SDestinationLocationInfo*(
IEvergreenTerritoryDefinition_EDestination eDestination
)>* GetDestinationLocationInfo;
};
9 changes: 8 additions & 1 deletion ZHMModSDK/Src/Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,4 +636,11 @@ PATTERN_HOOK(
// "xxxxxxxxxxxxxxxxxxxxxxx????xxx",
// ZInputActionManager_ParseAsignment,
// bool(ZInputActionManager* th, ZInputTokenStream* pkStream)
//);
//);

PATTERN_HOOK(
"\x48\x8B\xC4\x89\x48\x08\x55\x41\x54\x48\x8D\xA8\x00\x00\x00\x00\x48\x81\xEC\x00\x00\x00\x00\x80\x3D\x00\x00\x00\x00\x00\x44\x8B\xE1\x48\x8D\x0D",
"xxxxxxxxxxxx????xxx????xx????xxxxxxx",
GetDestinationLocationInfo,
const SDestinationLocationInfo*(IEvergreenTerritoryDefinition_EDestination eDestination)
);
Loading