equal
deleted
inserted
replaced
376 ParseCommand('rotmask', true); |
376 ParseCommand('rotmask', true); |
377 MainLoop(); |
377 MainLoop(); |
378 |
378 |
379 // clean up all the memory allocated |
379 // clean up all the memory allocated |
380 freeEverything(true); |
380 freeEverything(true); |
381 if alsoShutdownFrontend then |
|
382 halt; |
|
383 end; |
381 end; |
384 |
382 |
385 procedure initEverything (complete:boolean); |
383 procedure initEverything (complete:boolean); |
386 begin |
384 begin |
387 Randomize(); |
385 Randomize(); |
388 |
386 |
389 if complete then |
387 uUtils.initModule(complete); // this opens the debug file, must be the first |
390 cLogfileBase:= 'game' |
|
391 else |
|
392 cLogfileBase:= 'preview'; |
|
393 |
|
394 uUtils.initModule; // this opens the debug file, must be the first |
|
395 uMisc.initModule; |
388 uMisc.initModule; |
396 uVariables.initModule; |
389 uVariables.initModule; |
397 uConsole.initModule; |
390 uConsole.initModule; |
398 uCommands.initModule; |
391 uCommands.initModule; |
399 uCommandHandlers.initModule; |
392 uCommandHandlers.initModule; |