Created
December 14, 2020 12:34
-
-
Save SoRA-X7/01d2d119b7d3766904eb1d1dc2c86d07 to your computer and use it in GitHub Desktop.
PPT_TextFix
This file contains hidden or 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
using System; | |
using System.IO; | |
namespace PPT_TextFix { | |
class Program { | |
static void Main(string[] args) { | |
if (args.Length == 0) { | |
Console.WriteLine("No file specified / ファイルが指定されていません。"); | |
Console.WriteLine("Using default executable path / Steamのデフォルトのパスで実行します。"); | |
args = new[] { | |
@"C:\Program Files (x86)\Steam\steamapps\common\PuyoPuyoTetris\puyopuyotetris.exe" | |
}; | |
} | |
Console.WriteLine(args[0]); | |
try { | |
using var fs = File.Open(args[0], FileMode.Open, FileAccess.ReadWrite); | |
fs.Seek(0x39D400, SeekOrigin.Begin); | |
fs.Write(new byte[]{0x00, 0x00, 0x00, 0x3E}, 0, 4); | |
fs.Seek(0x2C49975, SeekOrigin.Begin); | |
fs.Write(new byte[]{0x8D, 0x1C, 0xCD, 0x00, 0x00, 0x00, 0x00}, 0, 7); | |
Console.WriteLine(); | |
Console.WriteLine("Process successfully finished / 処理が正常に終了しました。"); | |
Console.Read(); | |
} catch (Exception e) { | |
Console.WriteLine(e); | |
Console.Read(); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment