24599197c0
asfd
26 lines
483 B
C
26 lines
483 B
C
#include "fumoengine.h"
|
|
#include "platform.h"
|
|
|
|
|
|
void Panic(char *message)
|
|
{
|
|
printf(message);
|
|
exit(1);
|
|
}
|
|
|
|
bool FumoInit(struct FumoGame *game)
|
|
{
|
|
if (!PlatformInit())
|
|
Panic("Platform failed to initialize");
|
|
|
|
if (!CreateController(&game->ctrl))
|
|
Panic("Out of memory");
|
|
|
|
if (!CreateEvent(&game->update))
|
|
Panic("Out of memory");
|
|
|
|
if (!BeginInputThread(&game->input_hand))
|
|
Panic("Input handle failed to initialize");
|
|
|
|
return 0;
|
|
} |