1
0
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:
Sergey Lipskiy 2017-11-20 23:17:14 +07:00
parent 942dc78271
commit adabb40e36
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@ EXPORT int CALL RomOpen(void)
{
if (rdram_size != nullptr)
RDRAMSize = *rdram_size - 1;
else
RDRAMSize = 0;
api().RomOpen();
return 1;

View File

@ -5,11 +5,13 @@
#endif // OS_WINDOWS
#include "PluginAPI.h"
#include "N64.h"
extern "C" {
EXPORT void CALL RomOpen (void)
{
RDRAMSize = 0;
api().RomOpen();
}