mirror of
https://github.com/dazedcat19/FMD2.git
synced 2024-11-27 05:41:08 +00:00
Converter: Add error message when modules.txt is not present (#430)
This commit is contained in:
parent
b5f96f4008
commit
4f291ae7a3
@ -73,12 +73,17 @@ begin
|
|||||||
modules.Sorted := false;
|
modules.Sorted := false;
|
||||||
modules.LoadFromFile('modules.txt');
|
modules.LoadFromFile('modules.txt');
|
||||||
for i:=0 to modules.Count-1 do
|
for i:=0 to modules.Count-1 do
|
||||||
begin
|
begin
|
||||||
m:=modules[i].Split(' ');
|
m:=modules[i].Split(' ');
|
||||||
modules[i] := m[1]+'='+m[0];
|
modules[i] := m[1]+'='+m[0];
|
||||||
end;
|
end;
|
||||||
modules.Sorted := true;
|
modules.Sorted := true;
|
||||||
modules.CaseSensitive := false;
|
modules.CaseSensitive := false;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
writeln('modules.txt not found! Exiting... ');
|
||||||
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user