mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
sceSfmt19937 fix
This commit is contained in:
parent
7f51cd6003
commit
f8378d0d7f
2 changed files with 2 additions and 7 deletions
|
@ -804,8 +804,3 @@ template<int func(void *, u32, int)> void WrapI_VUI(){
|
|||
u32 retval = func(Memory::GetPointer(PARAM(0)), PARAM(1), PARAM(2));
|
||||
RETURN(retval);
|
||||
}
|
||||
|
||||
template<int func(u32, u64, int)> void WrapI_UU64I() {
|
||||
int retval = func(PARAM(0), PARAM64(2), PARAM(4));
|
||||
RETURN(retval);
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ static int sceSfmt19937FillArray32(u32 sfmt, u32 array, int arraylen) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int sceSfmt19937FillArray64(u32 sfmt, u64 array, int arraylen) {
|
||||
static int sceSfmt19937FillArray64(u32 sfmt, u32 array, int arraylen) {
|
||||
if (!Memory::IsValidAddress(sfmt) || !Memory::IsValidAddress(array) || !Memory::IsValidAddress(array + 8 * (arraylen - 1))) {
|
||||
ERROR_LOG(HLE, "sceSfmt19937FillArray64(sfmt=%08x, ar=%08x, arlen=%08x) - bad address(es)", sfmt, array, arraylen);
|
||||
return -1;
|
||||
|
@ -113,7 +113,7 @@ const HLEFunction sceSfmt19937[] =
|
|||
{ 0xB33FE749, WrapU_U<sceSfmt19937GenRand32>, "sceSfmt19937GenRand32" },
|
||||
{ 0xD5AC9F99, WrapU64_U<sceSfmt19937GenRand64>, "sceSfmt19937GenRand64" },
|
||||
{ 0xDB025BFA, WrapI_UUI<sceSfmt19937FillArray32>, "sceSfmt19937FillArray32" },
|
||||
{ 0xEE2938C4, WrapI_UU64I<sceSfmt19937FillArray64>, "sceSfmt19937FillArray64" },
|
||||
{ 0xEE2938C4, WrapI_UUI<sceSfmt19937FillArray64>, "sceSfmt19937FillArray64" },
|
||||
};
|
||||
|
||||
void Register_sceSfmt19937()
|
||||
|
|
Loading…
Add table
Reference in a new issue