mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
Unexpected bugfixes
Mostly unaligned memory access. Also includes workarounds for ubsan execution.
This commit is contained in:
parent
7d1c18a569
commit
ae809ad320
8 changed files with 26 additions and 27 deletions
|
|
@ -829,7 +829,7 @@ lv2_file::open_result_t lv2_file::open(std::string_view vpath, s32 flags, s32 mo
|
|||
if (size == 8)
|
||||
{
|
||||
// see lv2_file::open_raw
|
||||
switch (*static_cast<const be_t<u64>*>(arg))
|
||||
switch (*static_cast<const be_t<u64, 1>*>(arg))
|
||||
{
|
||||
case 0x18000000010: type = lv2_file_type::sdata; break;
|
||||
case 0x2: type = lv2_file_type::edata; break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue