From f071adf8f590bb2d2ceee7d93bea120c9d754788 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Mon, 24 Jul 2017 22:39:16 +0200 Subject: * Some improvements made to improve peformance and stability. - Removed Pad module (useless). * Some functions removed from System and Gfx. --- Source/main.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Source/main.c') diff --git a/Source/main.c b/Source/main.c index 6e2b227..650f907 100644 --- a/Source/main.c +++ b/Source/main.c @@ -54,6 +54,8 @@ int main(void) uint32_t i; void (*exeAddress)(void); + GfxSetGlobalLuminance(0); + SerialInit(); // Read PSX-EXE header (32 bytes will be enough). @@ -117,8 +119,6 @@ int main(void) SerialSetState(SERIAL_STATE_READING_EXE_DATA); - SystemDisableVBlankInterrupt(); - while(GfxIsGPUBusy() == true); for(i = 0; i < ExeSize; i += EXE_DATA_PACKET_SIZE) @@ -143,16 +143,14 @@ int main(void) SerialWrite(ACK_BYTE_STRING, sizeof(uint8_t)); // Write ACK } - SystemEnableVBlankInterrupt(); - - //SystemLoadFileToBuffer("cdrom:\\AIRPORT.EXE;1", 2048, (uint8_t*)0x80010000, (uint32_t) (0x801A0000 - 0x80010000) ); - SetVBlankHandler(&ISR_SystemDefaultVBlank); // Make a pretty animation before exeting OpenSend application. EndAnimation(); + PSX_DeInit(); + // PSX-EXE has been successfully loaded into RAM. Run executable! //dprintf("Entering exe...\n"); -- cgit v1.2.3