-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
executable file
·85 lines (63 loc) · 1.49 KB
/
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#include <sys/types.h>
#include <libetc.h>
#include <libgte.h>
#include <libgpu.h>
#include <libmath.h>
#include <Gtemac.h>
#include <Inline_c.h>
#include <libgs.h>
#include <LIBCD.H>
#include <libapi.h>
#include "land.h" // Land fly-over intro scene
#include "cubescroll.h" // Cube scroller
#include "model.h" // 3D crash bandicoot model
#include "geomfade.h" // simple geometry with bars used for fade sequnce
#include "stars.h"
#include "PICTURE.H"
#include "picfade.h"
#include "binaryst.h" // GFX
#include "citadel.h" // GFX
#include "dsrpsx.h" // GFX: Desire PSX logo
//#include "hitmod/hitmod.h"
//#include "pal.h"
int main()
{
int tracks[] = { 2 };
CdlLOC loc;
/*
EnterCriticalSection();
InitHeap3(0x80060A58,100000);
ExitCriticalSection();
*/
loc.minute = 0;
loc.track = 2;
SetDispMask(0);
ResetGraph(0);
CdInit (); /* reset CD env. */
//SpuInit (); /* reset SPU env. */
ResetCallback();
PadInit(0);
SetGraphDebug(0);
InitGeom();
SetGeomOffset(160, 128);
SetGeomScreen(100);
SetVideoMode(MODE_PAL);
SetDispMask(1);
SetFarColor(10,10,10);
// works
CdPlay(2,tracks,0);
doPicture((u_long*)dsrpsx,256,32,16,200);
doLandscape();
{
int delay = 60;
while(delay--){
VSync(0); // wait for the next V-BLNK
}
}
doFadePicture((u_long*) binaryst , 320,0, 0, 300);
doStars();
doFadePicture((u_long*) citadel , 320,0, 0, 300);
doCubes();
doGeomFade();
doModel();
}