Skip to content

Instantly share code, notes, and snippets.

@k0ta0uchi
Created April 2, 2025 03:43
Show Gist options
  • Save k0ta0uchi/a5ead281008d85ace65c05daa52e5ab0 to your computer and use it in GitHub Desktop.
Save k0ta0uchi/a5ead281008d85ace65c05daa52e5ab0 to your computer and use it in GitHub Desktop.
アサクリシャドウズ音バグini自動修正立ち上げbat
@echo off
REM コードページを UTF-8 に設定
chcp 65001
REM ACShadows.ini ファイルの Sound 設定を ja-JP に変更
echo ACShadows.ini を編集して Sound を ja-JP に設定します...
REM ACShadows.ini が存在するディレクトリに移動 (必要に応じてパスを修正)
REM 例: cd "C:\Games\YourGameDirectory"
REM echo 現在のディレクトリ: %cd%
REM 変数を定義 (PowerShell 互換のため)
set "iniFilePath=ACShadows.ini"
set "oldString=Sound=en-US"
set "newString=Sound=ja-JP"
REM ACShadows.ini ファイルを Sound=en-US から Sound=ja-JP に置換
powershell -Command "$iniFilePath = '%iniFilePath%'; $oldString = '%oldString%'; $newString = '%newString%'; (Get-Content -Path $iniFilePath -Encoding UTF8) -replace [regex]::Escape($oldString), $newString | Set-Content -Path $iniFilePath -Encoding UTF8"
echo ACShadows.ini の Sound 設定を ja-JP に変更しました。
start uplay://launch/8006/0
echo 処理が完了しました。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment