mirror of
https://github.com/moparisthebest/Simba
synced 2025-02-16 07:10:10 -05:00
Fuck you
This commit is contained in:
parent
ab4d147e08
commit
6c1ba3dc42
@ -1418,27 +1418,14 @@ var
|
|||||||
ErrorMsg : string;
|
ErrorMsg : string;
|
||||||
begin
|
begin
|
||||||
DoRun := false;
|
DoRun := false;
|
||||||
<<<<<<< HEAD
|
if (Paramcount = 1) and not (Application.HasOption('open')) then // paramcount = 1 means we got only one parameter. We assume this to be a file. // and try to open it accordingly
|
||||||
=======
|
|
||||||
// paramcount = 1 means we got only one parameter. We assume this to be a file.
|
|
||||||
// and try to open it accordingly
|
|
||||||
>>>>>>> c8103490d871d7f0c46c3bbf5d9a954a2be64c97
|
|
||||||
if (Paramcount = 1) and not (Application.HasOption('open')) then
|
|
||||||
begin
|
begin
|
||||||
writeln('Opening file: ' + ParamStr(1));
|
writeln('Opening file: ' + ParamStr(1));
|
||||||
if FileExists(ParamStr(1)) then
|
if FileExists(ParamStr(1)) then
|
||||||
begin
|
|
||||||
LoadScriptFile(paramstr(1));
|
LoadScriptFile(paramstr(1));
|
||||||
end;
|
end else // we have more parameters. Check for specific options. (-r -o, --run --open)
|
||||||
end else
|
|
||||||
<<<<<<< HEAD
|
|
||||||
begin;
|
begin;
|
||||||
ErrorMsg:=Application.CheckOptions('ro:',['run','open:']);
|
|
||||||
=======
|
|
||||||
// we have more parameters. Check for specific options. (-r -o, --run --open)
|
|
||||||
begin
|
|
||||||
ErrorMsg:=Application.CheckOptions('ro:',['run', 'open:']);
|
ErrorMsg:=Application.CheckOptions('ro:',['run', 'open:']);
|
||||||
>>>>>>> c8103490d871d7f0c46c3bbf5d9a954a2be64c97
|
|
||||||
if ErrorMsg <> '' then
|
if ErrorMsg <> '' then
|
||||||
begin
|
begin
|
||||||
mDebugLn('ERROR IN COMMAND LINE ARGS: ' + ErrorMSG)
|
mDebugLn('ERROR IN COMMAND LINE ARGS: ' + ErrorMSG)
|
||||||
|
Loading…
Reference in New Issue
Block a user