Merge pull request #57 from aglab2/vc-fix-917

Fixed VC boot
This commit is contained in:
Reonu
2021-09-17 15:32:27 +03:00
committed by GitHub
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

@@ -389,7 +389,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++;