-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement all Underworld menu functions
- Loading branch information
1 parent
db47a29
commit eb68761
Showing
17 changed files
with
387 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#include "Input.h" | ||
|
||
#include "util/Hooking.h" | ||
|
||
void Input::DisableInput(bool disable) | ||
{ | ||
*(bool*)0x8551A9 = disable; | ||
*(bool*)GET_ADDRESS(0x1101689, 0x8551A9, 0xA02B79) = disable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "Animation.h" | ||
#include "util/Hooking.h" | ||
|
||
void G2EmulationInstanceSetAnimation(Instance* instance, int CurrentSection, int NewAnim, int NewFrame, int Frames) | ||
{ | ||
auto addr = GET_ADDRESS(0x4DEC30, 0x4DE690, 0x5B1EA0); | ||
|
||
Hooking::Call(addr, instance, CurrentSection, NewAnim, NewFrame, Frames); | ||
} | ||
|
||
void G2EmulationInstanceSetMode(Instance* instance, int CurrentSection, int Mode) | ||
{ | ||
auto addr = GET_ADDRESS(0x4DED90, 0x4DE7F0, 0x5B1F50); | ||
|
||
Hooking::Call(addr, instance, CurrentSection, Mode); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#pragma once | ||
|
||
#include "Instance.h" | ||
|
||
void G2EmulationInstanceSetAnimation(Instance* instance, int CurrentSection, int NewAnim, int NewFrame, int Frames); | ||
void G2EmulationInstanceSetMode(Instance* instance, int CurrentSection, int Mode); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "Stream.h" | ||
#include "util/Hooking.h" | ||
|
||
ObjectTracker* STREAM_GetObjectTrackerByName(char* name) | ||
{ | ||
auto addr = GET_ADDRESS(0x5D4270, 0x5DA260, 0x5C17D0); | ||
|
||
return Hooking::CallReturn<ObjectTracker*>(addr, name); | ||
} | ||
|
||
bool STREAM_PollLoadQueue() | ||
{ | ||
auto addr = GET_ADDRESS(0x5D51C0, 0x5DB190, 0x5C1DA0); | ||
|
||
return Hooking::CallReturn<bool>(addr); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
#include "instance/Object.h" | ||
|
||
#if TRAE || TR7 | ||
#define MAX_UNIT_NAME_LENGTH 20 | ||
#else | ||
#define MAX_UNIT_NAME_LENGTH 128 | ||
#endif | ||
|
||
struct ResolveObject; | ||
|
||
struct ObjectTracker | ||
{ | ||
ResolveObject* resolveObj; | ||
char* objectName; | ||
Object* object; | ||
__int16 objectID; | ||
__int16 objectStatus; | ||
}; | ||
|
||
ObjectTracker* STREAM_GetObjectTrackerByName(char* name); | ||
bool STREAM_PollLoadQueue(); |
Oops, something went wrong.