-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a load screen remover extra for rayman 2
Reverted the reload engine mode change from last commit because it didn't work
- Loading branch information
1 parent
0d079ef
commit 2970f79
Showing
4 changed files
with
33 additions
and
2 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
28 changes: 28 additions & 0 deletions
28
OpenSpaceToolbox/GameManager/Games/Rayman2/Rayman2LoadingScreenRemover.cs
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,28 @@ | ||
using System; | ||
using System.Threading; | ||
|
||
namespace OpenSpaceToolbox | ||
{ | ||
public class Rayman2LoadingScreenRemover : OpenspaceExtraAction { | ||
|
||
public Rayman2LoadingScreenRemover(Rayman2GameManager gameManager) : base(gameManager) | ||
{ | ||
Name = ShortName = $"⚠ Remove loading screens"; | ||
|
||
Tooltip = "⚠ Warning: these actions require a game restart to undo!"; | ||
} | ||
|
||
public override void Action() | ||
{ | ||
int processHandle = GameManager.GetProcessHandle(); | ||
if (processHandle < 0) | ||
return; | ||
|
||
byte[] nopInstructions = new byte[] { 0x90, 0x90, 0x90, 0x90, 0x90}; | ||
|
||
GameManager.WriteBytes(nopInstructions, 0x45F85E); | ||
GameManager.WriteBytes(nopInstructions, 0x4508F0); | ||
GameManager.WriteBytes(nopInstructions, 0x4043D6); | ||
} | ||
} | ||
} |
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