static Game() { //CustomGXTs = new Dictionary<string, string>(); CustomGXTs = new TextDictionary(); TextHook.RegisterCallback(key => { if (CustomGXTs.ContainsKey(key)) { return CustomGXTs[key]; } return null; }); #if GTA_SA GamePad = new Pad(new IntPtr(0xB73458)); GamePad2 = new Pad(new IntPtr(0xB7358C)); #endif InstallFolder = System.Windows.Forms.Application.StartupPath; }
static Game() { //CustomGXTs = new Dictionary<string, string>(); CustomGXTs = new TextDictionary(); TextHook.RegisterCallback(key => { if (CustomGXTs.ContainsKey(key)) { return(CustomGXTs[key]); } return(null); }); #if GTA_SA GamePad = new Pad(new IntPtr(0xB73458)); GamePad2 = new Pad(new IntPtr(0xB7358C)); #endif InstallFolder = System.Windows.Forms.Application.StartupPath; }