hedgewars/uConsts.pas
changeset 12604 95f0e475ca8e
parent 12598 d6bd8b327a09
child 12654 2837dee472cc
equal deleted inserted replaced
12603:9805a1f8fb93 12604:95f0e475ca8e
    25 
    25 
    26 {$INCLUDE "config.inc"}
    26 {$INCLUDE "config.inc"}
    27 
    27 
    28 const
    28 const
    29     HDPIScaleFactor     =  1;
    29     HDPIScaleFactor     =  1;
       
    30 
       
    31     // application return codes
    30     HaltNoError         =  0;
    32     HaltNoError         =  0;
    31     HaltUsageError      =  1;
    33 
    32     HaltFatalError      =  2;
    34     // error codes are placed in range 50-99 because that way then don't overlap with run-time errors of pascal
    33     HaltStartupError    =  3;
    35     // see https://www.freepascal.org/docs-html/user/userap4.html
    34     HaltFatalErrorNoIPC =  4;
    36     HaltUsageError      =  51;
       
    37     HaltFatalError      =  52;
       
    38     HaltStartupError    =  53;
       
    39     HaltFatalErrorNoIPC =  54;
    35 
    40 
    36     // for automatic tests
    41     // for automatic tests
    37     HaltTestSuccess     =  0;
    42     HaltTestSuccess     =  0;
    38     HaltTestFailed      =  10;
    43     HaltTestFailed      =  60;
    39     HaltTestLuaError    =  11;
    44     HaltTestLuaError    =  61;
    40     HaltTestUnexpected  =  12;
    45     HaltTestUnexpected  =  62;
    41 
    46 
    42 
    47 
    43     sfMax = 1000;
    48     sfMax = 1000;
    44 
    49 
    45     // message constants
    50     // message constants