diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-07-24 22:39:16 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-07-24 22:39:16 +0200 |
| commit | f071adf8f590bb2d2ceee7d93bea120c9d754788 (patch) | |
| tree | e5cd62882fed370bc2d0f75ca6f10fe4b65d5940 /Source/main.c | |
| parent | 41d8caba3b3e7611d657c0ee4cecd1cdbdf0c814 (diff) | |
| download | opensend-f071adf8f590bb2d2ceee7d93bea120c9d754788.tar.gz | |
* Some improvements made to improve peformance and stability.
- Removed Pad module (useless).
* Some functions removed from System and Gfx.
Diffstat (limited to 'Source/main.c')
| -rw-r--r-- | Source/main.c | 10 |
1 files changed, 4 insertions, 6 deletions
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"); |
