Skip to content

Commit

Permalink
Actually Fix Unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Jun 29, 2021
1 parent 5fc9b5d commit 4bb84fa
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions WhyNotWin11.au3
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#AutoIt3Wrapper_Compile_Both=y
#AutoIt3Wrapper_UseX64=y
#AutoIt3Wrapper_Res_Description=Detection Script to help identify why your PC isn't Windows 11 Release Ready
#AutoIt3Wrapper_Res_Fileversion=2.3.0.0
#AutoIt3Wrapper_Res_Fileversion=2.3.0.1
#AutoIt3Wrapper_Res_ProductName=WhyNotWin11
#AutoIt3Wrapper_Res_ProductVersion=2.3.0
#AutoIt3Wrapper_Res_LegalCopyright=Robert Maehl, using LGPL 3 License
Expand All @@ -20,7 +20,7 @@
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

Global $aResults[11][3]
Global $sVersion = "2.3.0.0"
Global $sVersion = "2.3.0.1"
Global $aOutput[2] = ["", ""]

If @OSVersion = 'WIN_10' Then DllCall("User32.dll", "bool", "SetProcessDpiAwarenessContext" , "HWND", "DPI_AWARENESS_CONTEXT"-1)
Expand Down Expand Up @@ -889,7 +889,6 @@ Func _SetFile($sString, $sFile, $iOverwrite = $FO_READ)
EndFunc ;==>_SetFile

Func _Translate($sString)
_INIUnicode(@LocalAppDataDir & "\WhyNotWin11\Langs\0804.lang")
;Return BinaryToString(StringToBinary(INIRead(@LocalAppDataDir & "\WhyNotWin11\Langs\" & @MUILang & ".lang", "Strings", $sString, $sString)))
Return INIRead(@LocalAppDataDir & "\WhyNotWin11\Langs\0804.lang", "Strings", $sString, $sString)
_INIUnicode(@LocalAppDataDir & "\WhyNotWin11\Langs\" & @MUILang & ".lang")
Return INIRead(@LocalAppDataDir & "\WhyNotWin11\Langs\" & @MUILang & ".lang", "Strings", $sString, $sString)
EndFunc

0 comments on commit 4bb84fa

Please sign in to comment.