Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions Main.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,7 @@ object FormMain: TFormMain
Style = csDropDownList
TabOrder = 2
Items.Strings = (
'Use default'
'Russian'
'English'
'French'
'German'
'Italian'
'Spanish')
'Use default')
end
object CheckBoxFullScreen: TCheckBox
Left = 8
Expand Down
8 changes: 5 additions & 3 deletions Main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ procedure TFormMain.ButtonPatchClick(Sender: TObject);
R.RootKey:=HKEY_CURRENT_USER;
try
if R.OpenKey('Software\Codemasters\Perimeter\Intf', True) then begin
AddLog('Set locale to '+ComboBoxLang.Items[ComboBoxLang.ItemIndex]);
R.WriteString('Locale', ComboBoxLang.Items[ComboBoxLang.ItemIndex]);
AddLog('Set locale to '+Lang);
R.WriteString('Locale', Lang);
end;
finally
R.Free;
Expand Down Expand Up @@ -574,6 +574,8 @@ procedure TFormMain.FormCreate(Sender: TObject);
R:TResolution;
p:integer;
begin
ComboBoxLang.Items.LoadFromFile('CustomLanguage.ini');
ComboBoxLang.ItemIndex:=0;
ComboBoxResolutions.Items.Clear();
for fullName in TDirectory.GetFiles('resolutions\') do begin
if UpperCase(ExtractFileExt(fullName))='.BAT' then begin
Expand Down Expand Up @@ -704,7 +706,7 @@ procedure TFormMain.Start;
StringList:=TStringList.Create;
StringList.LoadFromFile('Perimeter.ini');

ComboBoxLang.ItemIndex:=0;


for i := 0 to StringList.Count-1 do begin
if ParseKeyValue(StringList.Strings[i],key,value) then begin
Expand Down