mirror of
https://github.com/moparisthebest/Simba
synced 2025-02-16 07:10:10 -05:00
GetSetLoadSaveDefaultKeyValue -> private.
Use GetSetLoadSaveDefaultKeyValueIfNotExists. (w0t) Also fixes a few minor things. git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@386 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
699432aab6
commit
6aaa97b0ee
@ -41,6 +41,9 @@ uses
|
||||
SynEditMiscClasses, LMessages, Buttons, PairSplitter,about, framefunctionlist,
|
||||
ocr, updateform, simbasettings;
|
||||
|
||||
const
|
||||
SimbaVersion = 386;
|
||||
|
||||
type
|
||||
|
||||
{ TMufasaTab }
|
||||
@ -324,7 +327,6 @@ const
|
||||
// Rip Mufasa -> Simba ftw
|
||||
//WindowTitle = 'Mufasa v2 - %s';//Title, where %s = the place of the filename.
|
||||
WindowTitle = 'Simba - %s';//Title, where %s = the place of the filename.
|
||||
SimbaVersion = 365;
|
||||
Panel_State = 0;
|
||||
Panel_ScriptName = 1;
|
||||
Panel_ScriptPath = 2;
|
||||
|
@ -74,7 +74,7 @@ begin
|
||||
begin
|
||||
SimbaVersionThread := TSimbaVersionThread.Create(true);
|
||||
|
||||
SimbaVersionThread.InputURL := SettingsForm.Settings.GetSetLoadSaveDefaultKeyValue(
|
||||
SimbaVersionThread.InputURL := SettingsForm.Settings.GetSetLoadSaveDefaultKeyValueIfNotExists(
|
||||
'Settings/Updater/RemoteVersionLink',
|
||||
'http://old.villavu.com/merlijn/Simba'{$IFDEF WINDOWS} +
|
||||
'.exe'{$ENDIF} + '.version',
|
||||
@ -150,7 +150,7 @@ begin
|
||||
FCancelling := False;
|
||||
FCancelled := False;
|
||||
|
||||
Updater.FileURL := SettingsForm.Settings.GetSetLoadSaveDefaultKeyValue(
|
||||
Updater.FileURL := SettingsForm.Settings.GetSetLoadSaveDefaultKeyValueIfNotExists(
|
||||
'Settings/Updater/RemoteLink',
|
||||
'http://old.villavu.com/merlijn/Simba'{$IFDEF WINDOWS} +'.exe'{$ENDIF},
|
||||
SimbaSettingsFile
|
||||
|
@ -89,10 +89,10 @@ type
|
||||
|
||||
// Horrible name
|
||||
function GetSetDefaultKeyValue(KeyName, defVal: String): String;
|
||||
|
||||
private
|
||||
// /facepalm
|
||||
function GetSetLoadSaveDefaultKeyValue(KeyName, defVal, fileName: String): String;
|
||||
|
||||
public
|
||||
// AAAAAAAAAAAHG??
|
||||
function GetSetLoadSaveDefaultKeyValueIfNotExists(KeyName, defVal, fileName: String): String;
|
||||
|
||||
@ -407,7 +407,7 @@ end;
|
||||
function TMMLSettings.GetSetLoadSaveDefaultKeyValueIfNotExists(KeyName, defVal, fileName: String): String;
|
||||
begin
|
||||
if KeyExists(KeyName) then
|
||||
exit(GetSetDefaultKeyValue(KeyName, defVal))
|
||||
Exit(GetSetDefaultKeyValue(KeyName, defVal))
|
||||
else
|
||||
Exit(GetSetLoadSaveDefaultKeyValue(KeyName, defVal, fileName));
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user