Fixed VC boot

This commit is contained in:
aglab2
2021-09-17 20:31:29 +08:00
parent 7d73ef5bf6
commit 0e0a7a38c7
2 changed files with 5 additions and 4 deletions

View File

@@ -1261,9 +1261,10 @@ void audio_reset_session(struct AudioSessionSettings *preset, s32 presetId) {
init_reverb_us(presetId);
bzero(&gAiBuffers[0][0], (AIBUFFER_LEN * NUMAIBUFFERS));
gAudioFrameCount = 0;
while (gAudioFrameCount < 1) {
// spin
}
if (!gIsVC)
while (gAudioFrameCount < 1) {
// spin
}
bzero(&gAiBuffers[0][0], (AIBUFFER_LEN * NUMAIBUFFERS));
return;
}

View File

@@ -388,7 +388,7 @@ void render_init(void) {
// Skip incrementing the initial framebuffer index on emulators so that they display immediately as the Gfx task finishes
// VC probably emulates osViSwapBuffer accurately so instant patch breaks VC compatibility
if (gIsConsole) { // Read RDP Clock Register, has a value of zero on emulators
if (gIsConsole || gIsVC) { // Read RDP Clock Register, has a value of zero on emulators
sRenderingFrameBuffer++;
}
gGlobalTimer++;