Skip to content

Commit

Permalink
update verchk and some strings
Browse files Browse the repository at this point in the history
  • Loading branch information
trulyspinach committed May 20, 2020
1 parent b91eb17 commit d178c44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions AMD Power Gadget/ProcessorModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ class ProcessorModel {
&outputStr, &outputStrCount)
AMDRyzenCPUPowerManagementVersion = String(cString: Array(outputStr[0...outputStrCount-1]))

if AMDRyzenCPUPowerManagementVersion != "0.6.4" {
alertAndQuit(message: "Your AMDRyzenCPUPowerManagement version is outdated.\n\nPlease use the lastest version and start this application again.")
let compatVers = ["0.6.3", "0.6.4"]

if !compatVers.contains(AMDRyzenCPUPowerManagementVersion){
alertAndQuit(message: "Your AMDRyzenCPUPowerManagement version is outdated. Please use the lastest version and start this application again.")
}


Expand Down
2 changes: 1 addition & 1 deletion AMDRyzenCPUPowerManagement/AMDRyzenCPUPMUserClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ bool AMDRyzenCPUPMUserClient::hasPrivilege(){

char buf[128];
snprintf(buf, 128,
"A process is trying to make changes to your system.\n\nAffected process name: %s\nAuthorize?",
"A process is trying to make changes to your system.\nAffected process name: %s\n\nAuthorize?",
taskProcessBinaryName);

unsigned int rf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>AMD Power Gadget.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
<integer>1</integer>
</dict>
<key>AMDRyzenCPUPowerManagement.xcscheme_^#shared#^_</key>
<dict>
Expand All @@ -17,7 +17,7 @@
<key>SMCAMDProcessor.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>2</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
Expand Down

0 comments on commit d178c44

Please sign in to comment.