Skip to content

Commit

Permalink
Converter: Add error message when modules.txt is not present (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
Inareous authored Mar 21, 2021
1 parent b5f96f4 commit 4f291ae
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions utils/userdataconverter/converter.lpr
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,17 @@ function QuotedStrD(const S: String): String;
modules.Sorted := false;
modules.LoadFromFile('modules.txt');
for i:=0 to modules.Count-1 do
begin
begin
m:=modules[i].Split(' ');
modules[i] := m[1]+'='+m[0];
end;
end;
modules.Sorted := true;
modules.CaseSensitive := false;
end
else
begin
writeln('modules.txt not found! Exiting... ');
exit;
end;


Expand Down

0 comments on commit 4f291ae

Please sign in to comment.