mirror of
https://github.com/blawar/GLideN64.git
synced 2024-06-25 22:09:35 +00:00
Always detect (RDRAMSize on rom start.
This fixes crash when 8MB game started after 4MB one.
This commit is contained in:
parent
942dc78271
commit
adabb40e36
|
@ -9,6 +9,8 @@ EXPORT int CALL RomOpen(void)
|
|||
{
|
||||
if (rdram_size != nullptr)
|
||||
RDRAMSize = *rdram_size - 1;
|
||||
else
|
||||
RDRAMSize = 0;
|
||||
|
||||
api().RomOpen();
|
||||
return 1;
|
||||
|
|
|
@ -5,11 +5,13 @@
|
|||
#endif // OS_WINDOWS
|
||||
|
||||
#include "PluginAPI.h"
|
||||
#include "N64.h"
|
||||
|
||||
extern "C" {
|
||||
|
||||
EXPORT void CALL RomOpen (void)
|
||||
{
|
||||
RDRAMSize = 0;
|
||||
api().RomOpen();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user