예제 #1
0
파일: Game.cs 프로젝트: Debug-/gtadotnet
        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;
        }
예제 #2
0
        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;
        }