Explorar el Código

* write error in case of problem with initializing resources

git-svn-id: trunk@4457 -
florian hace 19 años
padre
commit
41e6b149f7
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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