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
// XCOM-TFtD_DisableFullscreen.idc | |
// Simple IDC script for IDA Pro that prevents the game (XCOM: Terror from the Deep) from going fullscren | |
#include <idc.idc> | |
static main() | |
{ | |
auto IDirectDraw7_SetCooperativeLevel = 0x0046587E; | |
if (!RunTo(IDirectDraw7_SetCooperativeLevel)) |
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
import idaapi | |
import idc | |
class MemoryPattern(object): | |
def __init__(self, pattern, wildcards, patch): | |
self._pattern = pattern | |
self._wildcards = wildcards | |
self._patch = patch | |
def compareTo(self, buffer, offset): |