Skip to content

Commit

Permalink
powershell script for compat flag removal
Browse files Browse the repository at this point in the history
Windows sets IgnoreFreeLibrary for gw2 if it crashed or *unknown reason*
This flag stops d3d9.dll based mods to work properly.
Script removes all flags setted up, so game can run "normally" and use mods.
  • Loading branch information
megai2 committed Apr 25, 2020
1 parent 7127933 commit 115f1a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fix_compat_flags.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$current_sid = [System.Security.Principal.WindowsIdentity]::GetCurrent().User | Select-Object -ExpandProperty Value

Remove-ItemProperty -Path "Registry::HKEY_USERS\$current_sid\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" -Name *Gw2-64.exe

pause

0 comments on commit 115f1a8

Please sign in to comment.