mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Made a change to the way APPDATA was resolved due to a bug with the built in @AppDataDir macro in AutoIt on some systems.
Now using a function to get the DOS environment variable "APPDATA" instead of the AutoIt macro. ************ From: ************ If FileFindFirstFile("..\..\Rainmeter.ini") <> - 1 Then $DataFolder = "..\..\" ElseIf FileFindFirstFile(@AppDataDir & "\Rainmeter\Rainmeter.ini") <> - 1 Then $DataFolder = @AppDataDir & "\Rainmeter\" Else MsgBox(48, "RainThemes Error", "Unable to locate Rainmeter.ini") Exit EndIf ************** To: ************** $AppDataDir = EnvGet("APPDATA") If FileFindFirstFile("..\..\Rainmeter.ini") <> - 1 Then $DataFolder = "..\..\" ElseIf FileFindFirstFile($AppDataDir & "\Rainmeter\Rainmeter.ini") <> - 1 Then $DataFolder = $AppDataDir & "\Rainmeter\" Else MsgBox(48, "RainThemes Error", "Unable to locate Rainmeter.ini") Exit EndIf
This commit is contained in:
parent
cf8bb22e3a
commit
9aaa7ecbf2