-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ExHIBIT Auto-Install with newer games
- Loading branch information
1 parent
8bfd401
commit c663732
Showing
7 changed files
with
103 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using StringReloads.Engine.String; | ||
using StringReloads.Hook.Base; | ||
using System; | ||
|
||
namespace StringReloads.Hook.Others | ||
{ | ||
unsafe class ExHIBIT_Question : Hook<ExHIBIT_QuestionDelegate> | ||
{ | ||
public override string Library => "resident.dll"; | ||
|
||
public const string ExportName = "?prepareQuestion@RetouchSystem@@QAEXHPBD@Z"; | ||
|
||
public override string Export => ExportName; | ||
|
||
public override void Initialize() | ||
{ | ||
HookDelegate = hExHIBIT_Question; | ||
Compile(); | ||
} | ||
|
||
private void hExHIBIT_Question(void* This, void* a1, void* Text) | ||
{ | ||
Text = EntryPoint.SRL.ProcessString((CString)Text); | ||
Bypass(This, a1, Text); | ||
} | ||
} | ||
} |
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,26 @@ | ||
using StringReloads.Engine.String; | ||
using StringReloads.Hook.Base; | ||
|
||
namespace StringReloads.Hook.Others | ||
{ | ||
unsafe class ExHIBIT_Say11 : Hook<ExHIBIT_Say11Delegate> | ||
{ | ||
public override string Library => "resident.dll"; | ||
|
||
//?say@RetouchAdvCharacter@@QAEXHPBD0_NHHHHPAVRetouchPrintParam@@KPAVUxRuFukidashiData@@@Z | ||
public const string ExportName = "?say@RetouchAdvCharacter@@QAEXHPBD0_NHHHHPAVRetouchPrintParam@@KPAVUxRuFukidashiData@@@Z"; | ||
|
||
public override string Export => ExportName; | ||
|
||
public override void Initialize() | ||
{ | ||
HookDelegate = hExHIBIT_Say12; | ||
Compile(); | ||
} | ||
|
||
void hExHIBIT_Say12(void* This, void* a1, void* a2, byte* Text, void* a4, void* a5, void* a6, void* a7, void* a8, void* a9, void* a10, void* a11) { | ||
Text = EntryPoint.SRL.ProcessString((CString)Text); | ||
Bypass(This, a1, a2, Text, a4, a5, a6, a7, a8, a9, a10, a11); | ||
} | ||
} | ||
} |
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