Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (27 sloc)
551 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * File: main.c | |
| * Author: krikzz | |
| * | |
| * Created on 23.06.2010 | |
| */ | |
| #include "segalib.h" | |
| #include "game.h" | |
| vu16 frame_ctr; | |
| vu16 vb_flag; | |
| int main() { | |
| vu16 *ssf_bank_regs = (vu16 *) 0xA130F0; | |
| ssf_bank_regs[0] = 0xA000; // turn off ROM write protection | |
| ssf_bank_regs[4] = 28; //set bank at 0x200000 to 28. Mega OS uses bank 28 as save ram bank. We want to save hi score (: | |
| frame_ctr = 0; | |
| vb_flag = 0; | |
| gInit(); | |
| gameInit(); | |
| for (;;) { | |
| gameMainMenu(); | |
| } | |
| return 0; | |
| } | |
| void hb() { | |
| } | |
| void in() { | |
| } |