コード例 #1
0
 internal DivaScore(Manipulator manipulator)
 {
     isInitialized = false;
     Manipulator   = manipulator;
     // Allocation for Scores, thanks somewhatlurker
     scoreArray = Manipulator.AllocateMemory(4 * 1000 * 2 * 0xE4).ToInt64();
     for (int i = 0; i < 4; i++)
     {
         Manipulator.WriteInt64(PLAYER_DATA_ADDRESS + i * 0x18 + 0x5D0, scoreArray + i * 1000 * 2 * 0xE4);
         Manipulator.WriteInt64(PLAYER_DATA_ADDRESS + i * 0x18 + 0x5D8, scoreArray + (i + 1) * 1000 * 2 * 0xE4);
     }
     // Allocation for MyLists, thanks vladkorotnev
     myListArray = Manipulator.AllocateMemory(3 * 40 * 4).ToInt64();
     for (int i = 0; i < 3; i++)
     {
         Manipulator.WriteInt64(PLAYER_DATA_ADDRESS + i * 0x18 + 0x588, myListArray + i * 40 * 4);
         Manipulator.WriteInt64(PLAYER_DATA_ADDRESS + i * 0x18 + 0x590, myListArray + (i + 1) * 40 * 4);
     }
     new Thread(new ThreadStart(Initialize)).Start();
 }