-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add 'Marvel Ultimate Alliance' support
- Loading branch information
Showing
4 changed files
with
85 additions
and
17 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,20 @@ | ||
// game_mua.h | ||
|
||
#ifndef __GAME_MUA_H | ||
#define __GAME_MUA_H | ||
|
||
#include "include/global.h" | ||
|
||
static char mua_key[] = "SOFTWARE\\Activision\\Marvel Ultimate Alliance\\Settings\\Display"; | ||
static GUID mua_guid = {0xA5B4AF14, 0xA34F, 0x4677, {0xBE, 0x65, 0x95, 0x52, 0xDC, 0x25, 0x6D, 0x3A}}; | ||
|
||
// missing registry key causes crash on startup | ||
__forceinline static void mua_create_key() { | ||
CreateRegKey(HKEY_CURRENT_USER, mua_key); | ||
} | ||
|
||
__noinline static void patch_mua() { | ||
mua_create_key(); | ||
} | ||
|
||
#endif // __GAME_MUA_H |
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