powershell Powershell脚本,用于从已编译的twine游戏中删除保存加密代码。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell Powershell脚本,用于从已编译的twine游戏中删除保存加密代码。相关的知识,希望对你有一定的参考价值。
$GameFile = Read-Host -Prompt 'Input your the file name of the game file'
Write-Host "Replacing write save function..."
(Get-Content $GameFile) | ForEach-Object { $_ -replace 'compressToBase64.+},decompressFromBase64', 'compressToBase64:function(e){return e},decompressFromBase64' } | Set-Content $GameFile
Write-Host "Replacing read save function..."
(Get-Content $GameFile) | ForEach-Object { $_ -replace 'decompressFromBase64.+},compressToUTF16', 'decompressFromBase64:function(e){return e},compressToUTF16' } | Set-Content $GameFile
Write-Host "Done!"
Write-Host -NoNewLine 'Press any key to continue...';
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');
以上是关于powershell Powershell脚本,用于从已编译的twine游戏中删除保存加密代码。的主要内容,如果未能解决你的问题,请参考以下文章