Files
2025-11-27 12:36:28 +00:00

95 lines
1.4 KiB
C

/*
SHELL.C
*/
/* ---------- headers */
#include "cseries.h"
#include "shell.h"
#include "errors.h"
#include "tag_files.h"
#include "real_math.h"
#include "game_state.h"
#include "rasterizer.h"
#include "integer_math.h"
#include "input.h"
#include "sound_manager.h"
/* ---------- globals */
static boolean bss_004c08a4;
/* ---------- public code */
boolean shell_initialize(
void)
{
boolean success= FALSE;
boolean platform_initialized= FALSE;
cseries_initialize();
platform_initialized= shell_platform_initialize();
if (platform_initialized)
{
boolean rasterizer_initialized;
errors_initialize();
tag_files_open();
real_math_initialize();
game_state_initialize();
rasterizer_initialized= rasterizer_initialize();
if (rasterizer_initialized)
{
input_initialize();
sound_initialize();
success= TRUE;
}
shell_platform_verify();
}
return success;
}
void shell_dispose(
void)
{
sound_dispose();
input_dispose();
rasterizer_dispose();
real_math_dispose();
tag_files_close();
errors_dispose();
shell_platform_dispose();
cseries_dispose();
return;
}
boolean shell_application_is_paused(
void)
{
return bss_004c08a4;
}
void shell_application_pause(
boolean paused)
{
if (bss_004c08a4!=paused)
{
bss_004c08a4= paused;
shell_screen_pause(paused);
}
return;
}
boolean shell_running_import_tool(void)
{
return FALSE;
}