Skip to content

Commit

Permalink
pgen: fix emulation for roms size > 8MB
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpasjuste committed May 12, 2022
1 parent 974efa6 commit 86f023e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pgen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ file(GLOB GENESIS_SRC
)

set(GENESIS_CFLAGS
-DUSE_16BPP_RENDERING -DHAVE_YM3438_CORE -DHAVE_OPLL_CORE -DLSB_FIRST
-DVERSION="1.0"
-DUSE_16BPP_RENDERING -DHAVE_YM3438_CORE -DHAVE_OPLL_CORE
-DLSB_FIRST -DMAXROMSIZE=33554432
-D__PGEN__ -D__PGEN_VERSION_MAJOR__=${VERSION_MAJOR} -D__PGEN_VERSION_MINOR__=${VERSION_MINOR}
)

Expand Down
3 changes: 2 additions & 1 deletion pgen/sources/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "pgen_config.h"
#include "pgen_romlist.h"
#include "pgen_ui_statemenu.h"
#include "osd.h"

using namespace c2d;
using namespace c2dui;
Expand Down Expand Up @@ -79,7 +80,7 @@ int main(int argc, char **argv) {
ui->setSkin(skin);

// ui
std::string genesis_version = "Genesis Plus GX";
std::string genesis_version = VERSION;
romList = new PGENRomList(ui, genesis_version,
{".zip", ".md", ".smd", ".gen", ".bin",
".mdx", ".sms", ".gg", ".sg", ".68k"});
Expand Down
1 change: 1 addition & 0 deletions pgen/sources/osd.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ extern "C" {
#include <zlib.h>
#include <types.h>

#define VERSION "Genesis Plus GX 1.7.5"
#define MAX_INPUTS 4

typedef struct {
Expand Down

0 comments on commit 86f023e

Please sign in to comment.