aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/UltraStar.dpr
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-04-06 11:36:03 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-04-06 11:36:03 +0000
commitb2a824d8f4fcf4d9038e2a360ac586fb0279e739 (patch)
tree79c473600e6ada136c7b2e63c8725565f8c4c521 /Game/Code/UltraStar.dpr
parentda94f9cb1798038b5bbf898b1a92ab03c3a1628e (diff)
downloadusdx-b2a824d8f4fcf4d9038e2a360ac586fb0279e739.tar.gz
usdx-b2a824d8f4fcf4d9038e2a360ac586fb0279e739.tar.xz
usdx-b2a824d8f4fcf4d9038e2a360ac586fb0279e739.zip
removed lazarus dependencies
- added an implementation of AllocateHWnd/DeallocateHWnd to UCommon for the Win32 only units DirWatch and Midi... (do not use AllocateHWnd somewhere else) - added an own implementation of ShowMessage to UCommon (uses MessageBox in Windows, console-output otherwise) - linux still needs lresources for the lrs-file (will be removed soon) - the FPC windows version uses windows resources now (instead of lrs ones). compile them with windres (in FPC's "bin" dir) or delphi (a batch-file for windres will follow soon) - changed path-separator from '\' to '/' in RC-file for windres compatibility git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1006 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/UltraStar.dpr')
-rw-r--r--Game/Code/UltraStar.dpr19
1 files changed, 9 insertions, 10 deletions
diff --git a/Game/Code/UltraStar.dpr b/Game/Code/UltraStar.dpr
index 42502802..5f1ba7e1 100644
--- a/Game/Code/UltraStar.dpr
+++ b/Game/Code/UltraStar.dpr
@@ -1,12 +1,19 @@
{$IFNDEF FPC} // This is here, so linux & MacOS X Versions can simply include the uses
- // from the dpr. Saves dupicating the uses clause.
+ // from the dpr. Saves duplicating the uses clause.
program UltraStar;
+{$IFDEF MSWINDOWS}
{$R 'UltraStar.res' 'UltraStar.rc'}
- {$I switches.inc}
+{$ENDIF}
+
+{$I switches.inc}
uses
{$ENDIF}
+ {$IFDEF Unix} // http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial
+ cthreads, // THIS MUST be the first used unit in FPC!!
+ cwstring, // Enable Unicode support
+ {$ENDIF}
//------------------------------
//Includes - 3rd Party Libraries
@@ -32,7 +39,6 @@ uses
{$IFDEF MSWINDOWS}
midiout in 'lib\midi\midiout.pas',
- midiin in 'lib\midi\midiin.pas',
CIRCBUF in 'lib\midi\CIRCBUF.PAS',
MidiType in 'lib\midi\MidiType.PAS',
MidiDefs in 'lib\midi\MidiDefs.PAS',
@@ -140,11 +146,6 @@ uses
UPlatformLinux in 'Classes\UPlatformLinux.pas',
{$ENDIF}
-{$IFDEF FPC}
- ulazjpeg in 'Classes\Ulazjpeg.pas',
-{$ENDIF}
-
-
//------------------------------
//Includes - Media support classes....
// Make sure UMedia always first, then UMedia_dummy
@@ -239,8 +240,6 @@ uses
{$IFNDEF FPC}
begin
- //Core := TCore.Create('lol', 1234);
Main;
- //Core.Run;
end.
{$ENDIF}