Esempio n. 1
0
        public static void drawcircle(int x0, int y0, int radius)
        {
            HashmapDumper.SendRawEncoded($"touch 0 0");
            int x   = radius;
            int y   = 0;
            int err = 0;

            while (x >= y)
            {
                setPixel(x0 + x, y0 + y, 7);
                setPixel(x0 + y, y0 + x, 7);
                setPixel(x0 - y, y0 + x, 7);
                setPixel(x0 - x, y0 + y, 7);
                setPixel(x0 - x, y0 - y, 7);
                setPixel(x0 - y, y0 - x, 7);
                setPixel(x0 + y, y0 - x, 7);
                setPixel(x0 + x, y0 - y, 7);

                if (err <= 0)
                {
                    y   += 1;
                    err += 2 * y + 1;
                }

                if (err > 0)
                {
                    x   -= 1;
                    err -= 2 * x + 1;
                }
            }
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            if (!checkWriteAccess())
            {
                return;
            }

            HashmapDumper.sb.IP = IP; HashmapDumper.sb.Port = Port;

            //var dictionaryMainIcon = HashmapDumper.GetMainInventoryIconHashmap(HashmapDumper.offsetMainIcon);
            //string outputPathFull = outputMainPath + Path.DirectorySeparatorChar + mainIconMapName;
            //writeoutDictionary(dictionaryMainIcon, outputPathFull);

            //HashmapDumper.PrintMainPlusOffset(0x396F5A0, 8);
            //HashmapDumper.SendRawEncoded($"configure pollRate 34");
            //HashmapDumper.SendRawEncoded($"configure keySleepTime 50");
            //SendKeyCommand(true, HidKeyboardKey.HidKeyboardKey_T, HidKeyboardKey.HidKeyboardKey_E, HidKeyboardKey.HidKeyboardKey_S, HidKeyboardKey.HidKeyboardKey_T);

            /*SendKeyCommand(true, HidKeyboardKey.HidKeyboardKey_K, HidKeyboardKey.HidKeyboardKey_E, HidKeyboardKey.HidKeyboardKey_Y, HidKeyboardKey.HidKeyboardKey_B,
             *  HidKeyboardKey.HidKeyboardKey_O, HidKeyboardKey.HidKeyboardKey_A, HidKeyboardKey.HidKeyboardKey_R, HidKeyboardKey.HidKeyboardKey_D, HidKeyboardKey.HidKeyboardKey_Space);
             * Thread.Sleep(50);
             * SendKeyCommand(true, HidKeyboardKey.HidKeyboardKey_K, HidKeyboardKey.HidKeyboardKey_E, HidKeyboardKey.HidKeyboardKey_Y, HidKeyboardKey.HidKeyboardKey_B,
             *  HidKeyboardKey.HidKeyboardKey_O, HidKeyboardKey.HidKeyboardKey_A, HidKeyboardKey.HidKeyboardKey_R, HidKeyboardKey.HidKeyboardKey_D, HidKeyboardKey.HidKeyboardKey_Space);*/
            //HashmapDumper.SendRawEncoded($"keyMod 4 8 5 4 5 4");

            //HashmapDumper.SendRawEncoded("debugKeys");

            /*HashmapDumper.SendRawEncoded($"tap 450 420");
             * HashmapDumper.SendRawEncoded($"tap 450 420", false, false);
             * HashmapDumper.SendRawEncoded($"tap 450 420", false, false);
             * HashmapDumper.SendRawEncoded($"tap 450 420", false, false);
             * HashmapDumper.SendRawEncoded($"tap 450 540", false, false);
             * HashmapDumper.SendRawEncoded($"tap 450 480", false, false);
             * HashmapDumper.SendRawEncoded($"tap 450 540", false, false);
             * HashmapDumper.SendRawEncoded($"tap 450 540", false, false);*/

            var    dictionaryUnitIcon = HashmapDumper.GetMainInventoryIconHashmap(@"D:\Switch\ACNH\Unpackv2\patched_acnh_1_8_0\RawDumps\UnitIcon.Dmp");
            string outputPathUnitFull = outputMainPath + Path.DirectorySeparatorChar + unitIconMapName;

            writeoutDictionary(dictionaryUnitIcon, outputPathUnitFull);

            dictionaryUnitIcon = HashmapDumper.GetMainInventoryIconHashmap(@"D:\Switch\ACNH\Unpackv2\patched_acnh_1_8_0\RawDumps\MenuIcon.Dmp");
            outputPathUnitFull = outputMainPath + Path.DirectorySeparatorChar + mainIconMapName;
            writeoutDictionary(dictionaryUnitIcon, outputPathUnitFull);
        }
Esempio n. 3
0
 static void setPixel(int x, int y, int depth)
 {
     HashmapDumper.SendRawEncoded($"touch {x} {y}", false, false);
     Thread.Sleep(15);
 }
Esempio n. 4
0
 public static void SendKeyCommand(bool connect, params HidKeyboardKey[] keys)
 {
     HashmapDumper.SendRawEncoded($"key{string.Concat(keys.Select(z => $" {(int)z}"))}", false, connect);
 }