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

Fixed VC boot
This commit is contained in:
Reonu authored and GitHub committed 2021-09-17 15:32:27 +03:00
commit b47ac5e6b7
2 files changed
+5 -4

No files matched your search

+4 -3
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;
}
+1 -1
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++;