X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fvgmtest.c;h=d1bc1a1e7ce9cdef995dea609467374974475eb0;hb=e0f1d05925c30944c29b138fb87824a6596a009f;hp=1f5deeaffcf5c4008c133ebd30bca7a118a450e2;hpb=0b144a0907c57f35e5d7ce1f1293afa802bb65cc;p=16.git diff --git a/src/vgmtest.c b/src/vgmtest.c index 1f5deeaf..d1bc1a1e 100755 --- a/src/vgmtest.c +++ b/src/vgmtest.c @@ -26,7 +26,7 @@ #include "src/lib/vgmsnd/vgmSnd.h" #include "src/lib/16_snd.h" //#include "src/lib/doslib/adlib.h" -//#include "src/lib/16_in.h" +#include "src/lib/16_in.h" void OPL2_Write(UINT8 reg, UINT8 data); UINT8 OPL2_ReadStatus(void); @@ -48,27 +48,27 @@ UINT8 OPL2_ReadStatus(void) void main(int argc, char *argv[]) { - //global_game_variables_t gvar; + global_game_variables_t gvar; VGM_FILE pee[9]; - //player_t player[MaxPlayers]; + player_t player[MaxPlayers]; char *bakapee; bakapee = malloc(64); if(argv[1]) bakapee = argv[1]; - else bakapee = "data/0.vgm"; + else bakapee = "data/adlib.vgm"; printf("%x\n", OpenVGMFile(bakapee, &pee[0])); - //IN_Startup(); - //IN_Default(0,&player,ctrl_Joystick); + IN_Startup(); + IN_Default(0,&player,ctrl_Joystick); InitEngine(); PlayMusic(&pee[0]); - //while(!IN_KeyDown(sc_Escape)) - while(!kbhit()) + while(!IN_KeyDown(sc_Escape)) + //while(!kbhit()) { - //IN_ReadControl(0,&player); + IN_ReadControl(0,&player); UpdateSoundEngine(); } StopMusic(); FreeVGMFile(&pee[0]); - //IN_Shutdown(); + IN_Shutdown(); DeinitEngine(); }