2018-07-14 15:42:18 +00:00
|
|
|
/*
|
|
|
|
* xrick/src/xrick.c
|
|
|
|
*
|
|
|
|
* Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved.
|
|
|
|
*
|
|
|
|
* The use and distribution terms for this software are contained in the file
|
|
|
|
* named README, which can be found in the root of this distribution. By
|
|
|
|
* using this software in any fashion, you are agreeing to be bound by the
|
|
|
|
* terms of this license.
|
|
|
|
*
|
|
|
|
* You must not remove this notice, or any other, from this software.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "system.h"
|
|
|
|
#include "game.h"
|
|
|
|
|
2018-07-14 18:04:18 +00:00
|
|
|
#ifndef IIGS
|
2018-07-14 15:42:18 +00:00
|
|
|
#include <SDL.h>
|
2018-07-14 18:04:18 +00:00
|
|
|
#endif
|
|
|
|
|
2018-08-05 20:49:16 +00:00
|
|
|
extern char img_splash_lz4;
|
|
|
|
extern void* IMG_SPLASH;
|
2018-08-03 00:35:57 +00:00
|
|
|
|
2018-07-14 15:42:18 +00:00
|
|
|
/*
|
|
|
|
* main
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
main(int argc, char *argv[])
|
|
|
|
{
|
2018-07-14 18:04:18 +00:00
|
|
|
printf("Hello from xrick IIgs\n");
|
2018-08-03 00:35:57 +00:00
|
|
|
|
2018-08-05 20:49:16 +00:00
|
|
|
// printf("Unpacking Splash!\n");
|
|
|
|
// LZ4_Unpack((char*)(0xE12000), &img_splash_lz4);
|
|
|
|
// printf("%08x\n", &img_splash_lz4 );
|
|
|
|
// printf("%08x\n", IMG_SPLASH );
|
|
|
|
// sys_sleep(10000);
|
2018-07-14 18:04:18 +00:00
|
|
|
|
2018-07-14 15:42:18 +00:00
|
|
|
sys_init(argc, argv);
|
|
|
|
if (sysarg_args_data)
|
|
|
|
data_setpath(sysarg_args_data);
|
|
|
|
else
|
|
|
|
data_setpath("data.zip");
|
|
|
|
game_run();
|
|
|
|
data_closepath();
|
|
|
|
sys_shutdown();
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* eof */
|