1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
|
program UltraStar;
{$IFDEF MSWINDOWS}
{$R 'UltraStar.res' 'UltraStar.rc'}
{$ENDIF}
{$IFDEF FPC}
{$MODE Delphi}
{$ENDIF}
{$I switches.inc}
//{$DEFINE CONSOLE}
// TODO: check if this is needed for MacOSX too
{$IFDEF MSWINDOWS}
// Set global application-type (GUI/CONSOLE) switch for Windows.
// CONSOLE is the default for FPC, GUI for Delphi, so we have
// to specify one of the two in any case.
{$IFDEF CONSOLE}
{$APPTYPE CONSOLE}
{$ELSE}
{$APPTYPE GUI}
{$ENDIF}
{$ENDIF}
uses
{$IFDEF Unix}
cthreads, // THIS MUST be the first used unit in FPC if Threads are used!!
// (see http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial)
{$IFNDEF DARWIN}
cwstring, // Enable Unicode support. MacOSX misses some references to iconv.
{$ENDIF}
{$ENDIF}
{$IFNDEF FPC}
ctypes in 'lib\ctypes\ctypes.pas', // FPC compatibility types for C libs
{$ENDIF}
//------------------------------
//Includes - 3rd Party Libraries
//------------------------------
moduleloader in 'lib\JEDI-SDL\SDL\Pas\moduleloader.pas',
gl in 'lib\JEDI-SDL\OpenGL\Pas\gl.pas',
glu in 'lib\JEDI-SDL\OpenGL\Pas\glu.pas',
glext in 'lib\JEDI-SDL\OpenGL\Pas\glext.pas',
sdl in 'lib\JEDI-SDL\SDL\Pas\sdl.pas',
sdl_image in 'lib\JEDI-SDL\SDL_Image\Pas\sdl_image.pas',
//sdl_ttf in 'lib\JEDI-SDL\SDL_ttf\Pas\sdl_ttf.pas',
sdlutils in 'lib\JEDI-SDL\SDL\Pas\sdlutils.pas',
UMediaCore_SDL in 'Classes\UMediaCore_SDL.pas',
zlib in 'lib\zlib\zlib.pas',
png in 'lib\libpng\png.pas',
{$IFDEF UseBass}
bass in 'lib\bass\delphi\bass.pas',
UAudioCore_Bass in 'Classes\UAudioCore_Bass.pas',
{$ENDIF}
{$IFDEF UsePortaudio}
portaudio in 'lib\portaudio\delphi\portaudio.pas',
UAudioCore_Portaudio in 'Classes\UAudioCore_Portaudio.pas',
{$ENDIF}
{$IFDEF UsePortmixer}
portmixer in 'lib\portmixer\delphi\portmixer.pas',
{$ENDIF}
{$IFDEF UseFFmpeg}
avcodec in 'lib\ffmpeg\avcodec.pas',
avformat in 'lib\ffmpeg\avformat.pas',
avutil in 'lib\ffmpeg\avutil.pas',
rational in 'lib\ffmpeg\rational.pas',
opt in 'lib\ffmpeg\opt.pas',
avio in 'lib\ffmpeg\avio.pas',
mathematics in 'lib\ffmpeg\mathematics.pas',
UMediaCore_FFmpeg in 'Classes\UMediaCore_FFmpeg.pas',
{$IFDEF UseSWScale}
swscale in 'lib\ffmpeg\swscale.pas',
{$ENDIF}
{$ENDIF}
{$IFDEF UseSRCResample}
samplerate in 'lib\samplerate\samplerate.pas',
{$ENDIF}
{$IFDEF UseProjectM}
projectM in 'lib\projectM\projectM.pas',
{$ENDIF}
{$IFDEF MSWINDOWS}
{$IFDEF FPC}
// FPC compatibility file for Allocate/DeallocateHWnd
WinAllocation in 'lib\other\WinAllocation.pas',
{$ENDIF}
midiout in 'lib\midi\midiout.pas',
CIRCBUF in 'lib\midi\CIRCBUF.PAS',
MidiType in 'lib\midi\MidiType.PAS',
MidiDefs in 'lib\midi\MidiDefs.PAS',
MidiCons in 'lib\midi\MidiCons.PAS',
MidiFile in 'lib\midi\MidiFile.PAS',
Delphmcb in 'lib\midi\Delphmcb.PAS',
DirWatch in 'lib\other\DirWatch.pas',
{$ENDIF}
{$IFDEF DARWIN}
PseudoThread in 'MacOSX/Wrapper/PseudoThread.pas',
{$ENDIF}
SQLiteTable3 in 'lib\SQLite\SQLiteTable3.pas',
SQLite3 in 'lib\SQLite\SQLite3.pas',
//------------------------------
//Includes - Menu System
//------------------------------
UDisplay in 'Menu\UDisplay.pas',
UMenu in 'Menu\UMenu.pas',
UMenuStatic in 'Menu\UMenuStatic.pas',
UMenuText in 'Menu\UMenuText.pas',
UMenuButton in 'Menu\UMenuButton.pas',
UMenuInteract in 'Menu\UMenuInteract.pas',
UMenuSelectSlide in 'Menu\UMenuSelectSlide.pas',
UDrawTexture in 'Menu\UDrawTexture.pas',
UMenuButtonCollection in 'Menu\UMenuButtonCollection.pas',
//------------------------------
//Includes - Classes
//------------------------------
UConfig in 'Classes\UConfig.pas',
UCommon in 'Classes\UCommon.pas',
UGraphic in 'Classes\UGraphic.pas',
UTexture in 'Classes\UTexture.pas',
ULanguage in 'Classes\ULanguage.pas',
UMain in 'Classes\UMain.pas',
UDraw in 'Classes\UDraw.pas',
URecord in 'Classes\URecord.pas',
UTime in 'Classes\UTime.pas',
TextGL in 'Classes\TextGL.pas',
USong in 'Classes\USong.pas',
UXMLSong in 'Classes\UXMLSong.pas',
USongs in 'Classes\USongs.pas',
UIni in 'Classes\UIni.pas',
UImage in 'Classes\UImage.pas',
ULyrics in 'Classes\ULyrics.pas',
UEditorLyrics in 'Classes\UEditorLyrics.pas',
USkins in 'Classes\USkins.pas',
UThemes in 'Classes\UThemes.pas',
ULog in 'Classes\ULog.pas',
UJoystick in 'Classes\UJoystick.pas',
//ULCD in 'Classes\ULCD.pas',
//ULight in 'Classes\ULight.pas',
UDataBase in 'Classes\UDataBase.pas',
UCovers in 'Classes\UCovers.pas',
UCatCovers in 'Classes\UCatCovers.pas',
UFiles in 'Classes\UFiles.pas',
UGraphicClasses in 'Classes\UGraphicClasses.pas',
UDLLManager in 'Classes\UDLLManager.pas',
UPlaylist in 'Classes\UPlaylist.pas',
UCommandLine in 'Classes\UCommandLine.pas',
URingBuffer in 'Classes\URingBuffer.pas',
UTextClasses in 'Classes\UTextClasses.pas',
USingScores in 'Classes\USingScores.pas',
USingNotes in 'Classes\USingNotes.pas',
UModules in 'Classes\UModules.pas', //List of Modules to Load
UHooks in 'Classes\UHooks.pas', //Hook Managing
UServices in 'Classes\UServices.pas', //Service Managing
UCore in 'Classes\UCore.pas', //Core, Maybe remove this
UCoreModule in 'Classes\UCoreModule.pas', //^
UPluginInterface in 'Classes\UPluginInterface.pas', //Interface offered by Core to Plugins
uPluginLoader in 'Classes\uPluginLoader.pas', //New Plugin Loader Module
UParty in 'Classes\UParty.pas', // TODO: rewrite Party Manager as Module, reomplent ability to offer party Mody by Plugin
UPlatform in 'Classes\UPlatform.pas',
{$IFDEF MSWINDOWS}
UPlatformWindows in 'Classes\UPlatformWindows.pas',
{$ENDIF}
{$IFDEF LINUX}
UPlatformLinux in 'Classes\UPlatformLinux.pas',
{$ENDIF}
{$IFDEF DARWIN}
UPlatformMacOSX in 'Classes/UPlatformMacOSX.pas',
{$ENDIF}
//------------------------------
//Includes - Media
//------------------------------
UMusic in 'Classes\UMusic.pas',
UAudioPlaybackBase in 'Classes\UAudioPlaybackBase.pas',
{$IF Defined(UsePortaudioPlayback) or Defined(UseSDLPlayback)}
UFFT in 'lib\fft\UFFT.pas',
UAudioPlayback_Softmixer in 'Classes\UAudioPlayback_SoftMixer.pas',
{$IFEND}
UAudioConverter in 'Classes\UAudioConverter.pas',
//******************************
//Pluggable media modules
// The modules are prioritized as in the include list below.
// This means the first entry has highest priority, the last lowest.
//******************************
// TODO : these all should be moved to a media folder
{$IFDEF UseFFmpegVideo}
UVideo in 'Classes\UVideo.pas',
{$ENDIF}
{$IFDEF UseProjectM}
// must be after UVideo, so it will not be the default video module
UVisualizer in 'Classes\UVisualizer.pas',
{$ENDIF}
{$IFDEF UseBASSInput}
UAudioInput_Bass in 'Classes\UAudioInput_Bass.pas',
{$ENDIF}
{$IFDEF UseBASSDecoder}
// prefer Bass to FFmpeg if possible
UAudioDecoder_Bass in 'Classes\UAudioDecoder_Bass.pas',
{$ENDIF}
{$IFDEF UseBASSPlayback}
UAudioPlayback_Bass in 'Classes\UAudioPlayback_Bass.pas',
{$ENDIF}
{$IFDEF UseSDLPlayback}
UAudioPlayback_SDL in 'Classes\UAudioPlayback_SDL.pas',
{$ENDIF}
{$IFDEF UsePortaudioInput}
UAudioInput_Portaudio in 'Classes\UAudioInput_Portaudio.pas',
{$ENDIF}
{$IFDEF UsePortaudioPlayback}
UAudioPlayback_Portaudio in 'Classes\UAudioPlayback_Portaudio.pas',
{$ENDIF}
{$IFDEF UseFFmpegDecoder}
UAudioDecoder_FFmpeg in 'Classes\UAudioDecoder_FFmpeg.pas',
{$ENDIF}
// fallback dummy, must be last
UMedia_dummy in 'Classes\UMedia_dummy.pas',
//------------------------------
//Includes - Screens
//------------------------------
UScreenLoading in 'Screens\UScreenLoading.pas',
UScreenWelcome in 'Screens\UScreenWelcome.pas',
UScreenMain in 'Screens\UScreenMain.pas',
UScreenName in 'Screens\UScreenName.pas',
UScreenLevel in 'Screens\UScreenLevel.pas',
UScreenSong in 'Screens\UScreenSong.pas',
UScreenSing in 'Screens\UScreenSing.pas',
UScreenScore in 'Screens\UScreenScore.pas',
UScreenOptions in 'Screens\UScreenOptions.pas',
UScreenOptionsGame in 'Screens\UScreenOptionsGame.pas',
UScreenOptionsGraphics in 'Screens\UScreenOptionsGraphics.pas',
UScreenOptionsSound in 'Screens\UScreenOptionsSound.pas',
UScreenOptionsLyrics in 'Screens\UScreenOptionsLyrics.pas',
UScreenOptionsThemes in 'Screens\UScreenOptionsThemes.pas',
UScreenOptionsRecord in 'Screens\UScreenOptionsRecord.pas',
UScreenOptionsAdvanced in 'Screens\UScreenOptionsAdvanced.pas',
UScreenEditSub in 'Screens\UScreenEditSub.pas',
UScreenEdit in 'Screens\UScreenEdit.pas',
UScreenEditConvert in 'Screens\UScreenEditConvert.pas',
UScreenEditHeader in 'Screens\UScreenEditHeader.pas',
UScreenOpen in 'Screens\UScreenOpen.pas',
UScreenTop5 in 'Screens\UScreenTop5.pas',
UScreenSongMenu in 'Screens\UScreenSongMenu.pas',
UScreenSongJumpto in 'Screens\UScreenSongJumpto.pas',
UScreenStatMain in 'Screens\UScreenStatMain.pas',
UScreenStatDetail in 'Screens\UScreenStatDetail.pas',
UScreenCredits in 'Screens\UScreenCredits.pas',
UScreenPopup in 'Screens\UScreenPopup.pas',
//Includes - Screens PartyMode
UScreenSingModi in 'Screens\UScreenSingModi.pas',
UScreenPartyNewRound in 'Screens\UScreenPartyNewRound.pas',
UScreenPartyScore in 'Screens\UScreenPartyScore.pas',
UScreenPartyPlayer in 'Screens\UScreenPartyPlayer.pas',
UScreenPartyOptions in 'Screens\UScreenPartyOptions.pas',
UScreenPartyWin in 'Screens\UScreenPartyWin.pas',
//------------------------------
//Includes - Modi SDK
//------------------------------
ModiSDK in '..\Modis\SDK\ModiSDK.pas', //Old SDK, will be deleted soon
UPluginDefs in '..\Modis\SDK\UPluginDefs.pas', //New SDK, not only Modis
UPartyDefs in '..\Modis\SDK\UPartyDefs.pas', //Headers to register Party Modes
SysUtils;
begin
Main;
end.
|