aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes/UMain.pas
diff options
context:
space:
mode:
Diffstat (limited to 'Game/Code/Classes/UMain.pas')
-rw-r--r--Game/Code/Classes/UMain.pas11
1 files changed, 6 insertions, 5 deletions
diff --git a/Game/Code/Classes/UMain.pas b/Game/Code/Classes/UMain.pas
index 46d86447..d045ee34 100644
--- a/Game/Code/Classes/UMain.pas
+++ b/Game/Code/Classes/UMain.pas
@@ -10,7 +10,6 @@ interface
uses
SDL,
- UGraphic,
UMusic,
URecord,
UTime,
@@ -21,8 +20,7 @@ uses
ULyrics,
UScreenSing,
USong,
- gl,
- UThemes;
+ gl;
type
PPLayerNote = ^TPlayerNote;
@@ -138,9 +136,11 @@ uses
UConfig,
UCore,
UCommon,
+ UGraphic,
UGraphicClasses,
UPluginDefs,
- UPlatform;
+ UPlatform,
+ UThemes;
@@ -167,6 +167,7 @@ begin
// Initialize SDL
// Without SDL_INIT_TIMER SDL_GetTicks() might return strange values
SDL_Init(SDL_INIT_VIDEO or SDL_INIT_TIMER);
+ SDL_EnableUnicode(1);
USTime := TTime.Create;
VideoBGTimer := TRelativeTimer.Create;
@@ -353,7 +354,7 @@ begin
// call an uninitialize routine for every initialize step
// or at least use the corresponding Free-Methods
- FinalizeSound();
+ FinalizeMedia();
TTF_Quit();
SDL_Quit();