Skip to content

Commit

Permalink
Support the new Hypervisor standard, support LuaBackend, remove Drahs…
Browse files Browse the repository at this point in the history
…id's fix.
  • Loading branch information
TopazTK committed May 26, 2022
1 parent 0fd35a7 commit 2d45d68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
20 changes: 2 additions & 18 deletions KH2/AxaFormBase/BaseSimpleForm/createInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,31 +34,15 @@ public unsafe static BaseSimpleForm createInstance(AppInterface* _app, string ti
{
UpdateAgent.UpdateCheck();

if (File.Exists("DBGHELP.dll") || File.Exists("DINPUT8.dll") || File.Exists("LuaBackend.dll"))
{
var _boxMessage = "Re:Fixed detected the presence of LuaBackend! Unfortunately,\n" +
"LuaBackend does not support Re:Fixed. Please use LuaFrontend!\n" +
"The game cannot start until LuaBackendHook is removed.";

var _boxTitle = "LuaBackend Detected!";
var _boxButtons = MessageBoxButtons.OK;

MessageBox.Show(_boxMessage, _boxTitle, _boxButtons, MessageBoxIcon.Error);
Environment.Exit(-1);
}

if (BaseSimpleForm.theInstance == null)
new BaseSimpleForm(_app, "KINGDOM HEARTS II - FINAL MIX [Re:Fixed v2.10]");
new BaseSimpleForm(_app, "KINGDOM HEARTS II - FINAL MIX [Re:Fixed v2.75]");

Variables.DiscordClient.Initialize();

CancelSource = new CancellationTokenSource();
MainToken = BaseSimpleForm.CancelSource.Token;

Variables.GameProcess = Process.GetCurrentProcess();
Variables.GameHandle = Variables.GameProcess.Handle;
Variables.ExeAddress = (ulong)Variables.GameProcess.MainModule.BaseAddress.ToInt64();
Variables.GameAddress = Variables.ExeAddress + Variables.BaseAddress;
Hypervisor.AttachProcess(Process.GetCurrentProcess(), 0x56454E);

MainTask = Task.Factory.StartNew(
delegate()
Expand Down
7 changes: 0 additions & 7 deletions KH2/Reproduce.asm
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@

### ALL OF THESE MUST BE DONE PRE-PATCH ###

-> Fix Framelimiter

VERSION 0.0:
@0x1190CF => [C7 83 98 59 00 00 00 20 00 00] to [90 90 90 90 90 90 90 90 90 90]
VERSION 0.1:
@0x1190DF => [C7 83 A0 59 00 00 00 20 00 00] to [90 90 90 90 90 90 90 90 90 90]

-> True Kingdom Hearts I Command Menu

VERSION 0.0:
Expand Down

0 comments on commit 2d45d68

Please sign in to comment.