Debian Codegraph @

examples/network/custom_url_handler/read_game_data_from_zip_standalone.dpr

raw
1 { AUTO-GENERATED PROGRAM FILE.
2
3 This file is used to build and run the application on desktop (standalone) platforms,
4 from various tools:
5 - Castle Game Engine command-line build tool
6 - Castle Game Engine editor
7 - Lazarus IDE
8 - Delphi IDE
9
10 You should not modify this file manually.
11 Regenerate it using CGE editor "Code -> Regenerate Program" menu item
12 or the command-line: "castle-engine generate-program".
13 Along with this file, we also generate CastleAutoGenerated unit. }
14
15 { Note: The "program" declaration is optional in Pascal.
16 But we keep using it, otherwise Delphi IDE breaks the "uses" clause when
17 adding units to the project. }
18 program read_game_data_from_zip_standalone;
19
20 {$ifdef MSWINDOWS} {$apptype GUI} {$endif}
21
22 { This adds icons and version info for Windows,
23 automatically created by "castle-engine compile". }
24 {$ifdef CASTLE_AUTO_GENERATED_RESOURCES} {$R castle-auto-generated-resources.res} {$endif}
25
26 uses
27 {$if defined(FPC) and (not defined(CASTLE_DISABLE_THREADS))}
28 {$info Thread support enabled.}
29 {$ifdef UNIX} CThreads, {$endif}
30 {$endif}
31 CastleAutoGenerated, CastleWindow, GameInitialize;
32
33 { Forces using a dedicated (faster) GPU on laptops with multiple GPUs.
34 See https://castle-engine.io/dedicated_gpu }
35 {$if (not defined(CASTLE_NO_FORCE_DEDICATED_GPU)) and
36 (defined(CPU386) or defined(CPUX64) or defined(CPUAMD64)) and
37 (defined(MSWINDOWS) or (defined(LINUX) and defined(FPC)))
38 }
39 {$ifdef FPC}
40 {$asmmode intel}
41 {$endif}
42
43 procedure NvOptimusEnablement; {$ifdef FPC}assembler; nostackframe;{$endif}
44 asm
45 {$ifdef CPU64}
46 {$ifndef FPC}
47 .NOFRAME
48 {$endif}
49 {$endif}
50 dd 1
51 end;
52
53 procedure AmdPowerXpressRequestHighPerformance; {$ifdef FPC}assembler; nostackframe;{$endif}
54 asm
55 {$ifdef CPU64}
56 {$ifndef FPC}
57 .NOFRAME
58 {$endif}
59 {$endif}
60 dd 1
61 end;
62
63 exports
64 NvOptimusEnablement,
65 AmdPowerXpressRequestHighPerformance;
66 {$ifend}
67
68 begin
69 Application.MainWindow.OpenAndRun;
70 end.