summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c8c2269)
raw | patch | inline | side by side (parent: c8c2269)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 22 May 2023 17:48:31 +0000 (20:48 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 22 May 2023 17:48:31 +0000 (20:48 +0300) |
src/editor/f_main.pas | patch | blob | history |
diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas
index 8d11a3b7cb75b8d8b3c70f8be2d690b912c97fcc..be9dee3915e746363fd9c91ff7fd9b22abb05ab5 100644 (file)
--- a/src/editor/f_main.pas
+++ b/src/editor/f_main.pas
begin
if MapTestProcess.Running = false then
begin
+ if MapTestProcess.ExitCode <> 0 then
+ Application.MessageBox(PChar(_lc[I_MSG_EXEC_ERROR]), 'FIXME', MB_OK or MB_ICONERROR);
SysUtils.DeleteFile(MapTestFile);
MapTestFile := '';
FreeAndNil(MapTestProcess);
end
else
begin
- MessageBox(0, 'FIXME', PChar(_lc[I_MSG_EXEC_ERROR]), MB_OK or MB_ICONERROR);
+ Application.MessageBox(PChar(_lc[I_MSG_EXEC_ERROR]), 'FIXME', MB_OK or MB_ICONERROR);
SysUtils.DeleteFile(newWAD);
proc.Free();
end;