mirror of
https://github.com/PhoenixPE/PhoenixPE.git
synced 2025-09-16 10:08:05 +02:00
Fixed an issue with Chinese language selection in CPU-Z.script
This commit is contained in:
@@ -35,8 +35,8 @@ Author=Homes32
|
|||||||
Level=5
|
Level=5
|
||||||
Selected=False
|
Selected=False
|
||||||
Mandatory=False
|
Mandatory=False
|
||||||
Version=1.0.17.0
|
Version=1.0.18.0
|
||||||
Date=2025-07-20
|
Date=2025-09-04
|
||||||
|
|
||||||
[Variables]
|
[Variables]
|
||||||
%ProgramFolder%="CPU-Z"
|
%ProgramFolder%="CPU-Z"
|
||||||
@@ -52,10 +52,7 @@ Echo,"Processing %ScriptTitle%..."
|
|||||||
|
|
||||||
If,%cb_RunFromRam%,Equal,True,RunFromRam
|
If,%cb_RunFromRam%,Equal,True,RunFromRam
|
||||||
If,%SourceArch%,Equal,x64,Set,%ProgramExe%,"cpuz_x64.exe"
|
If,%SourceArch%,Equal,x64,Set,%ProgramExe%,"cpuz_x64.exe"
|
||||||
If,%cmb_Language%,Equal,"Chinese",Begin
|
If,%cmb_Language%,Equal,"Chinese",Set,%SetupFile%,%SetupFile-cn%
|
||||||
Set,%DownloadURL%,%DownloadURL-cn%
|
|
||||||
Set,%SetupFile%,%SetupFile-cn%
|
|
||||||
End
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
// Extract
|
// Extract
|
||||||
@@ -108,7 +105,7 @@ If,Not,#r,Equal,0,Halt,"Error: Failed to extract [%SetupFile%]."
|
|||||||
Echo,"Downloading %ScriptTitle%..."
|
Echo,"Downloading %ScriptTitle%..."
|
||||||
If,%cmb_Language%,Equal,"Chinese",Begin
|
If,%cmb_Language%,Equal,"Chinese",Begin
|
||||||
Set,%DownloadURL%,%DownloadURL-cn%
|
Set,%DownloadURL%,%DownloadURL-cn%
|
||||||
Set,%SetupFile%,%SetupExe-cn%
|
Set,%SetupFile%,%SetupFile-cn%
|
||||||
End
|
End
|
||||||
WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
|
WebGet,%DownloadURL%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
|
||||||
If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
|
If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
|
||||||
|
Reference in New Issue
Block a user