Overlord fixes (#1301)

* srpc: Implement part of VBlank_Handler

And call it on RPC message for lack of better ways

* ssound: Fix distance calculation

avoids negative array index

* srpc: fix sound id assignment

* srpc: bail out on missing sound id

* ssound: Fixes for angle and volume calculation

* srpc: Fix VAG filename stuff

* ssound: Fix CalculateAngle

* ssound: UpdateAutoVol fixes

* srpc: Fix up SET_PARAM command
This commit is contained in:
Ziemas
2022-04-14 00:50:35 +02:00
committed by GitHub
parent 60a490d5c3
commit 9168e20e18
3 changed files with 39 additions and 18 deletions
+2
View File
@@ -2,6 +2,7 @@
#include "game/graphics/gfx.h"
#include <cstdio>
#include "common/util/Assert.h"
#include "game/overlord/srpc.h"
/*!
* Wait for rendering to complete.
@@ -28,5 +29,6 @@ u32 sceGsSyncPath(u32 mode, u32 timeout) {
*/
u32 sceGsSyncV(u32 mode) {
ASSERT(mode == 0);
VBlank_Handler();
return Gfx::vsync();
}