디버그 메모리덤프가 켜져있으면 VAN128 오류를 발생시킵니다.
한번 롤을 켰다가 오류가 나면 기능을 꺼도 재부팅을 해야 해결되고 롤 클라이언트 실행 전에만 꺼주면 문제가 없어서 간단하게 파워쉘 스크립트로 해결했습니다.
$CrashDumpRegistryPath = 'HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl'
$CrashDumpRegistryName = 'CrashDumpEnabled'
$CrashDumpValue = Get-ItemPropertyValue -Path $CrashDumpRegistryPath -Name $CrashDumpRegistryName
if ($CrashDumpValue -ne 0)
{
$CrashDumpRegistryResult = Start-Process pwsh -Verb runas -Argument "-NoExit -Command Set-ItemProperty -Path $CrashDumpRegistryPath -Name $CrashDumpRegistryName -Value 0"
if ($CrashDumpRegistryResult -ne 0)
{
Write-Host "레지스트리 설정에 실패했습니다."
return -1
}
}
$LolRegistryPath = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Riot Game league_of_legends.live'
$LolRegistryName = 'UninstallString'
$LolUninstallValue = Get-ItemPropertyValue -Path $LolRegistryPath -Name $LolRegistryName
$RiotClientPathArgs = $LolUninstallValue -split '--'
$RiotClientPath = $RiotClientPathArgs[0].Trim().Replace('"', '')
if (-not (Test-Path $RiotClientPath))
{
Write-Error "라이엇 클라이언트 설치 경로를 찾을 수 없습니다."
return -2
}
& $RiotClientPath --launch-product=league_of_legends --launch-patchline=live
2024-11-07 스크립트를 여러번 실행할때 레지스트리 설정 실패로 롤 실행안되는 문제 수정
'ETC' 카테고리의 다른 글
게임인재원 1기 졸업전시회 (0) | 2021.06.22 |
---|---|
프로그래밍 폰트 (0) | 2021.05.24 |