Browse Source

* write error in case of problem with initializing resources

git-svn-id: trunk@4457 -
florian 19 years ago
parent
commit
41e6b149f7
1 changed files with 5 additions and 1 deletions
  1. 5 1
      fv/app.pas

+ 5 - 1
fv/app.pas

@@ -974,7 +974,11 @@ CONSTRUCTOR TApplication.Init;
 
 BEGIN
 {   InitMemory;}                                              { Start memory up }
-   InitResource;
+   if not(InitResource) then
+     begin
+       writeln('Fatal: Can''t init resources');
+       halt(1);
+     end;
    initkeyboard;
    if not Drivers.InitVideo then                              { Start video up }
      begin