2005-08-15 01:34:37 +02:00
|
|
|
/*
|
|
|
|
|
|
|
|
This module drives the game when running without Atlas (our integrated
|
|
|
|
map editor). It receives input and OS messages via SDL and feeds them
|
|
|
|
into the input dispatcher, where they are passed on to the game GUI and
|
|
|
|
simulation.
|
|
|
|
It also contains main(), which either runs the above controller or
|
|
|
|
that of Atlas depending on commandline parameters.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2004-06-03 20:38:14 +02:00
|
|
|
#include "precompiled.h"
|
|
|
|
|
2005-01-11 17:58:16 +01:00
|
|
|
#ifdef SCED
|
|
|
|
# include "ui/StdAfx.h"
|
|
|
|
# undef ERROR
|
|
|
|
#endif // SCED
|
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
#include "lib/input.h"
|
2005-06-16 23:50:20 +02:00
|
|
|
#include "lib/sdl.h"
|
|
|
|
#include "lib/timer.h"
|
2005-08-15 01:34:37 +02:00
|
|
|
#include "lib/res/file/vfs.h"
|
2005-08-12 19:06:53 +02:00
|
|
|
#include "lib/res/sound/snd.h"
|
2004-06-02 22:39:21 +02:00
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
#include "ps/GameSetup/GameSetup.h"
|
|
|
|
#include "ps/GameSetup/Atlas.h"
|
|
|
|
#include "ps/GameSetup/Config.h"
|
2005-03-22 03:17:55 +01:00
|
|
|
#include "ps/Loader.h"
|
2005-08-15 01:34:37 +02:00
|
|
|
#include "gui/GUI.h"
|
2004-06-02 22:39:21 +02:00
|
|
|
#include "ps/CConsole.h"
|
2005-08-15 01:34:37 +02:00
|
|
|
#include "ps/Profile.h"
|
2005-08-15 01:50:37 +02:00
|
|
|
#include "ps/Util.h"
|
2004-07-27 23:00:53 +02:00
|
|
|
#include "ps/Game.h"
|
2005-06-16 23:50:20 +02:00
|
|
|
#include "ps/Hotkey.h"
|
2005-08-15 01:34:37 +02:00
|
|
|
#include "ps/Interact.h"
|
|
|
|
#include "ps/Network/SessionManager.h"
|
2005-06-16 23:50:20 +02:00
|
|
|
#include "simulation/Scheduler.h"
|
2004-07-28 13:36:16 +02:00
|
|
|
#include "sound/CMusicPlayer.h"
|
2004-09-19 17:58:13 +02:00
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
#define LOG_CATEGORY "main"
|
2005-06-16 23:50:20 +02:00
|
|
|
|
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
void kill_mainloop();
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
2005-06-16 23:50:20 +02:00
|
|
|
|
|
|
|
|
2004-06-02 22:39:21 +02:00
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
//
|
|
|
|
// main app message handler
|
|
|
|
//
|
2004-05-24 22:25:48 +02:00
|
|
|
|
|
|
|
bool keys[SDLK_LAST];
|
2005-08-15 01:34:37 +02:00
|
|
|
bool mouse_buttons[5]; // CAN REMOVE AFTER MOVING RESET TO WSDL
|
2004-05-24 22:25:48 +02:00
|
|
|
|
2004-07-12 18:50:46 +02:00
|
|
|
bool g_active = true;
|
2005-08-15 01:34:37 +02:00
|
|
|
int g_mouse_x = 50, g_mouse_y = 50;
|
2004-05-24 22:25:48 +02:00
|
|
|
|
2004-07-09 14:44:12 +02:00
|
|
|
|
2005-08-14 17:23:59 +02:00
|
|
|
static int MainInputHandler(const SDL_Event* ev)
|
2004-05-24 22:25:48 +02:00
|
|
|
{
|
|
|
|
int c;
|
|
|
|
|
2004-06-26 00:13:48 +02:00
|
|
|
switch(ev->type)
|
2004-05-24 22:25:48 +02:00
|
|
|
{
|
2004-07-10 23:33:31 +02:00
|
|
|
case SDL_ACTIVEEVENT:
|
2005-08-15 01:34:37 +02:00
|
|
|
g_active = (ev->active.gain != 0);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SDL_KEYDOWN:
|
|
|
|
case SDL_KEYUP:
|
|
|
|
c = ev->key.keysym.sym;
|
|
|
|
keys[c] = (ev->type == SDL_KEYDOWN);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SDL_MOUSEBUTTONDOWN:
|
|
|
|
case SDL_MOUSEBUTTONUP:
|
|
|
|
c = ev->button.button;
|
|
|
|
if(c < ARRAY_SIZE(mouse_buttons))
|
|
|
|
mouse_buttons[c] = (ev->type == SDL_MOUSEBUTTONDOWN);
|
|
|
|
else
|
|
|
|
debug_warn("MainInputHandler: invalid mouse button");
|
2004-06-21 16:14:12 +02:00
|
|
|
break;
|
|
|
|
|
2004-07-20 21:30:35 +02:00
|
|
|
case SDL_MOUSEMOTION:
|
2005-01-23 18:35:36 +01:00
|
|
|
g_mouse_x = ev->motion.x;
|
|
|
|
g_mouse_y = ev->motion.y;
|
2004-07-20 21:30:35 +02:00
|
|
|
break;
|
|
|
|
|
2004-07-21 18:34:07 +02:00
|
|
|
case SDL_HOTKEYDOWN:
|
2005-08-15 01:34:37 +02:00
|
|
|
switch(ev->user.code)
|
2004-05-24 22:25:48 +02:00
|
|
|
{
|
2004-07-21 18:34:07 +02:00
|
|
|
case HOTKEY_EXIT:
|
2005-08-15 01:34:37 +02:00
|
|
|
kill_mainloop();
|
2004-05-24 22:25:48 +02:00
|
|
|
break;
|
2004-06-26 00:13:48 +02:00
|
|
|
|
2004-07-21 18:34:07 +02:00
|
|
|
case HOTKEY_SCREENSHOT:
|
2005-08-15 01:34:37 +02:00
|
|
|
WriteScreenshot("png");
|
2004-06-26 00:13:48 +02:00
|
|
|
break;
|
2004-07-21 18:34:07 +02:00
|
|
|
|
2004-07-28 13:36:16 +02:00
|
|
|
case HOTKEY_PLAYMUSIC:
|
|
|
|
break;
|
|
|
|
|
2004-07-21 18:34:07 +02:00
|
|
|
default:
|
2005-08-15 01:34:37 +02:00
|
|
|
return EV_PASS;
|
2004-05-24 22:25:48 +02:00
|
|
|
}
|
2005-08-15 01:34:37 +02:00
|
|
|
return EV_HANDLED;
|
2004-05-24 22:25:48 +02:00
|
|
|
}
|
|
|
|
|
2004-06-26 00:13:48 +02:00
|
|
|
return EV_PASS;
|
2004-05-24 22:25:48 +02:00
|
|
|
}
|
|
|
|
|
2005-06-16 23:50:20 +02:00
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
// dispatch all pending events to the various receivers.
|
|
|
|
static void PumpEvents()
|
2004-06-21 16:14:12 +02:00
|
|
|
{
|
2005-08-15 01:34:37 +02:00
|
|
|
in_dispatch_recorded_events();
|
2004-07-24 21:38:12 +02:00
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
SDL_Event event;
|
|
|
|
while(SDL_PollEvent(&event))
|
|
|
|
in_dispatch_event(&event);
|
2004-12-08 16:34:15 +01:00
|
|
|
}
|
|
|
|
|
2005-06-16 23:50:20 +02:00
|
|
|
|
2005-03-22 03:17:55 +01:00
|
|
|
|
|
|
|
static int ProgressiveLoad()
|
|
|
|
{
|
|
|
|
wchar_t description[100];
|
|
|
|
int progress_percent;
|
2005-03-27 03:47:36 +02:00
|
|
|
int ret = LDR_ProgressiveLoad(10e-3, description, ARRAY_SIZE(description), &progress_percent);
|
2005-03-22 03:17:55 +01:00
|
|
|
switch(ret)
|
|
|
|
{
|
2005-08-15 01:34:37 +02:00
|
|
|
// no load active => no-op (skip code below)
|
2005-05-11 06:39:21 +02:00
|
|
|
case 0:
|
|
|
|
return 0;
|
2005-08-15 01:34:37 +02:00
|
|
|
// current task didn't complete. we only care about this insofar as the
|
|
|
|
// load process is therefore not yet finished.
|
2005-03-22 03:17:55 +01:00
|
|
|
case ERR_TIMED_OUT:
|
|
|
|
break;
|
2005-08-15 01:34:37 +02:00
|
|
|
// just finished loading
|
2005-05-11 06:39:21 +02:00
|
|
|
case LDR_ALL_FINISHED:
|
2005-03-22 03:17:55 +01:00
|
|
|
g_Game->ReallyStartGame();
|
|
|
|
wcscpy_s(description, ARRAY_SIZE(description), L"Game is starting..");
|
2005-08-15 01:34:37 +02:00
|
|
|
// LDR_ProgressiveLoad returns L""; set to valid text to
|
|
|
|
// avoid problems in converting to JSString
|
2005-03-22 03:17:55 +01:00
|
|
|
break;
|
2005-08-15 01:34:37 +02:00
|
|
|
// error!
|
2005-03-22 03:17:55 +01:00
|
|
|
default:
|
|
|
|
CHECK_ERR(ret);
|
2005-08-15 01:34:37 +02:00
|
|
|
// can't do this above due to legit ERR_TIMED_OUT
|
2005-03-22 03:17:55 +01:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2005-08-14 17:23:59 +02:00
|
|
|
GUI_DisplayLoadProgress(progress_percent, description);
|
2005-03-22 03:17:55 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
CMusicPlayer music_player;
|
2005-06-16 23:50:20 +02:00
|
|
|
|
2004-07-12 18:50:46 +02:00
|
|
|
static void Frame()
|
|
|
|
{
|
2005-08-09 18:03:36 +02:00
|
|
|
MICROLOG(L"Frame");
|
|
|
|
oglCheck();
|
2005-06-25 04:21:26 +02:00
|
|
|
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_START( "update music" );
|
2005-08-15 01:34:37 +02:00
|
|
|
music_player.update();
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_END( "update music" );
|
2004-07-28 13:36:16 +02:00
|
|
|
|
2004-07-12 18:50:46 +02:00
|
|
|
static double last_time;
|
|
|
|
const double time = get_time();
|
|
|
|
const float TimeSinceLastFrame = (float)(time-last_time);
|
|
|
|
last_time = time;
|
|
|
|
ONCE(return);
|
2004-07-17 13:13:21 +02:00
|
|
|
// first call: set last_time and return
|
2005-06-28 06:06:25 +02:00
|
|
|
debug_assert(TimeSinceLastFrame >= 0.0f);
|
2004-05-24 22:25:48 +02:00
|
|
|
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_START( "reload changed files" );
|
2004-07-15 21:12:54 +02:00
|
|
|
MICROLOG(L"reload files");
|
2005-08-13 19:09:57 +02:00
|
|
|
vfs_reload_changed_files();
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_END( "reload changed files" );
|
2004-05-24 22:25:48 +02:00
|
|
|
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_START( "progressive load" );
|
2005-03-22 03:17:55 +01:00
|
|
|
ProgressiveLoad();
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_END( "progressive load" );
|
2004-07-15 21:12:54 +02:00
|
|
|
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_START( "input" );
|
2005-03-22 03:17:55 +01:00
|
|
|
MICROLOG(L"input");
|
2005-08-15 01:34:37 +02:00
|
|
|
PumpEvents();
|
2004-08-16 17:19:17 +02:00
|
|
|
g_SessionManager.Poll();
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_END( "input" );
|
|
|
|
|
|
|
|
PROFILE_START( "gui tick" );
|
2005-01-11 17:58:16 +01:00
|
|
|
#ifndef NO_GUI
|
2004-12-19 00:25:58 +01:00
|
|
|
g_GUI.TickObjects();
|
2005-01-11 17:58:16 +01:00
|
|
|
#endif
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_END( "gui tick" );
|
2005-08-09 18:03:36 +02:00
|
|
|
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_START( "game logic" );
|
2004-09-21 16:40:43 +02:00
|
|
|
if (g_Game && g_Game->IsGameStarted())
|
2004-08-05 15:07:51 +02:00
|
|
|
{
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_START( "simulation update" );
|
2004-08-05 15:07:51 +02:00
|
|
|
g_Game->Update(TimeSinceLastFrame);
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_END( "simulation update" );
|
2005-03-22 03:17:55 +01:00
|
|
|
|
2004-08-05 15:07:51 +02:00
|
|
|
if (!g_FixedFrameTiming)
|
2005-03-30 18:14:19 +02:00
|
|
|
{
|
|
|
|
PROFILE( "camera update" );
|
2004-08-05 15:07:51 +02:00
|
|
|
g_Game->GetView()->Update(float(TimeSinceLastFrame));
|
2005-03-30 18:14:19 +02:00
|
|
|
}
|
2004-07-21 18:34:07 +02:00
|
|
|
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_START( "selection and interaction ui" );
|
2004-08-05 15:07:51 +02:00
|
|
|
// TODO Where does GameView end and other things begin?
|
|
|
|
g_Mouseover.update( TimeSinceLastFrame );
|
|
|
|
g_Selection.update();
|
2005-09-05 21:48:28 +02:00
|
|
|
g_BuildingPlacer.update( TimeSinceLastFrame );
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_END( "selection and interaction ui" );
|
2004-10-15 15:29:04 +02:00
|
|
|
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_START( "sound update" );
|
2004-10-15 15:29:04 +02:00
|
|
|
CCamera* camera = g_Game->GetView()->GetCamera();
|
|
|
|
CMatrix3D& orientation = camera->m_Orientation;
|
2004-10-16 22:55:56 +02:00
|
|
|
|
|
|
|
float* pos = &orientation._data[12];
|
|
|
|
float* dir = &orientation._data[8];
|
|
|
|
float* up = &orientation._data[4];
|
2004-10-21 01:16:38 +02:00
|
|
|
if(snd_update(pos, dir, up) < 0)
|
2005-05-11 20:56:30 +02:00
|
|
|
debug_printf("snd_update failed\n");
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_END( "sound update" );
|
2004-08-05 15:07:51 +02:00
|
|
|
}
|
2004-10-21 01:16:38 +02:00
|
|
|
else
|
|
|
|
{
|
2004-12-19 00:25:58 +01:00
|
|
|
// CSimulation would do this with the proper turn length if we were in
|
|
|
|
// a game. This is basically just to keep script timers running.
|
2005-07-20 02:57:17 +02:00
|
|
|
uint ms_elapsed = (uint)(TimeSinceLastFrame*1000);
|
|
|
|
g_Scheduler.update(ms_elapsed);
|
2004-10-21 01:16:38 +02:00
|
|
|
if(snd_update(0, 0, 0) < 0)
|
2005-05-11 20:56:30 +02:00
|
|
|
debug_printf("snd_update (pos=0 version) failed\n");
|
2004-10-21 01:16:38 +02:00
|
|
|
}
|
|
|
|
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_END( "game logic" );
|
|
|
|
|
|
|
|
PROFILE_START( "update console" );
|
2004-07-20 21:30:35 +02:00
|
|
|
g_Console->Update(TimeSinceLastFrame);
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_END( "update console" );
|
2004-07-20 21:30:35 +02:00
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
// TODO: ugly, but necessary. these are one-shot events, have to be reset.
|
2004-07-21 18:34:07 +02:00
|
|
|
|
|
|
|
// Spoof mousebuttonup events for the hotkey system
|
|
|
|
SDL_Event spoof;
|
|
|
|
spoof.type = SDL_MOUSEBUTTONUP;
|
|
|
|
spoof.button.button = SDL_BUTTON_WHEELUP;
|
2005-08-15 01:34:37 +02:00
|
|
|
if( mouse_buttons[SDL_BUTTON_WHEELUP] )
|
2004-07-21 18:34:07 +02:00
|
|
|
hotkeyInputHandler( &spoof );
|
|
|
|
spoof.button.button = SDL_BUTTON_WHEELDOWN;
|
2005-08-15 01:34:37 +02:00
|
|
|
if( mouse_buttons[SDL_BUTTON_WHEELDOWN] )
|
2004-07-21 18:34:07 +02:00
|
|
|
hotkeyInputHandler( &spoof );
|
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
mouse_buttons[SDL_BUTTON_WHEELUP] = false;
|
|
|
|
mouse_buttons[SDL_BUTTON_WHEELDOWN] = false;
|
2005-08-09 18:03:36 +02:00
|
|
|
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_START( "render" );
|
2004-07-12 18:50:46 +02:00
|
|
|
if(g_active)
|
|
|
|
{
|
2004-07-15 21:12:54 +02:00
|
|
|
MICROLOG(L"render");
|
2004-07-12 18:50:46 +02:00
|
|
|
Render();
|
2004-07-15 21:12:54 +02:00
|
|
|
MICROLOG(L"finished render");
|
2005-03-31 00:33:10 +02:00
|
|
|
PROFILE_START( "swap buffers" );
|
2004-12-28 12:16:05 +01:00
|
|
|
SDL_GL_SwapBuffers();
|
2005-03-31 00:33:10 +02:00
|
|
|
PROFILE_END( "swap buffers" );
|
2004-07-12 18:50:46 +02:00
|
|
|
}
|
|
|
|
// inactive; relinquish CPU for a little while
|
|
|
|
// don't use SDL_WaitEvent: don't want the main loop to freeze until app focus is restored
|
|
|
|
else
|
|
|
|
SDL_Delay(10);
|
2004-07-08 17:22:09 +02:00
|
|
|
|
2005-03-30 18:14:19 +02:00
|
|
|
PROFILE_END( "render" );
|
|
|
|
|
|
|
|
g_Profiler.Frame();
|
|
|
|
|
2004-07-12 18:50:46 +02:00
|
|
|
calc_fps();
|
2005-08-15 01:34:37 +02:00
|
|
|
if(g_FixedFrameTiming && frameCount==100)
|
|
|
|
kill_mainloop();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void MainControllerInit()
|
|
|
|
{
|
|
|
|
// add additional input handlers only needed by this controller.
|
|
|
|
|
|
|
|
// gui_handler needs to be after (i.e. called before!) the hotkey handler
|
|
|
|
// so that input boxes can be typed in without setting off hotkeys.
|
|
|
|
#ifndef NO_GUI
|
|
|
|
in_add_handler(gui_handler);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// must be after gui_handler. Should mayhap even be last.
|
|
|
|
in_add_handler(MainInputHandler);
|
2004-07-12 18:50:46 +02:00
|
|
|
}
|
2004-05-24 22:25:48 +02:00
|
|
|
|
2004-07-15 21:12:54 +02:00
|
|
|
|
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
static void MainControllerShutdown()
|
|
|
|
{
|
|
|
|
music_player.release();
|
|
|
|
}
|
|
|
|
|
2005-01-11 17:58:16 +01:00
|
|
|
#ifndef SCED
|
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
|
|
|
|
static bool quit = false; // break out of main loop
|
|
|
|
|
|
|
|
// HACK: Let code from other files (i.e. the scripting system) quit
|
|
|
|
void kill_mainloop()
|
|
|
|
{
|
|
|
|
quit = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-07-12 18:50:46 +02:00
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
2005-06-25 04:21:26 +02:00
|
|
|
debug_printf("MAIN &argc=%p &argv=%p\n", &argc, &argv);
|
2005-03-30 18:14:19 +02:00
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
ATLAS_RunIfOnCmdLine(argc, argv);
|
2004-11-14 19:56:13 +01:00
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
// ELSE
|
2005-08-20 17:44:50 +02:00
|
|
|
Init(argc, argv, true, true);
|
2005-08-15 01:34:37 +02:00
|
|
|
MainControllerInit();
|
2005-01-25 19:56:43 +01:00
|
|
|
|
2005-08-14 17:23:59 +02:00
|
|
|
while(!quit)
|
|
|
|
Frame();
|
2005-06-25 04:21:26 +02:00
|
|
|
|
2005-08-14 17:23:59 +02:00
|
|
|
Shutdown();
|
2005-08-15 01:34:37 +02:00
|
|
|
MainControllerShutdown();
|
2004-07-10 16:14:36 +02:00
|
|
|
|
2004-06-01 19:34:12 +02:00
|
|
|
exit(0);
|
2004-05-24 22:25:48 +02:00
|
|
|
}
|
2005-01-11 17:58:16 +01:00
|
|
|
|
2005-08-15 01:34:37 +02:00
|
|
|
|
2005-06-25 04:21:26 +02:00
|
|
|
// Public functions for Atlas to use:
|
|
|
|
// TODO: Make this far less hacky
|
|
|
|
void Init_(int argc, char** argv, bool setup_gfx)
|
|
|
|
{
|
|
|
|
g_Quickstart = true;
|
2005-08-20 17:44:50 +02:00
|
|
|
Init(argc, argv, setup_gfx, false);
|
2005-06-25 04:21:26 +02:00
|
|
|
}
|
|
|
|
void Shutdown_()
|
|
|
|
{
|
|
|
|
Shutdown();
|
|
|
|
}
|
|
|
|
void Render_()
|
|
|
|
{
|
|
|
|
Render();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-01-11 17:58:16 +01:00
|
|
|
#else // SCED:
|
|
|
|
|
|
|
|
void ScEd_Init()
|
|
|
|
{
|
2005-01-12 15:31:47 +01:00
|
|
|
g_Quickstart = true;
|
|
|
|
|
2005-01-28 23:19:09 +01:00
|
|
|
Init(0, NULL, false);
|
2005-01-11 17:58:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void ScEd_Shutdown()
|
|
|
|
{
|
|
|
|
Shutdown();
|
|
|
|
}
|
|
|
|
|
2005-01-17 05:52:02 +01:00
|
|
|
#endif // SCED
|