ADD: Print message on console when DC does not run because another instance is already running.

This commit is contained in:
cobines 2010-04-28 14:21:51 +00:00
commit d3fbe7ec41

View file

@ -62,7 +62,8 @@ begin
LoadPaths; // must be first
Application.ShowMainForm:= False;
Application.CreateForm(TfrmHackForm, frmHackForm);
if InitGlobs and IsInstanceAllowed then
if InitGlobs then
if IsInstanceAllowed then
begin
InitPasswordStore;
LoadPixMapManager;
@ -80,5 +81,9 @@ begin
Application.Run;
uKeyboard.CleanupKeyboard;
end
else
begin
DebugLn('Another instance of DC is already running. Exiting.');
end;
end.