mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
We ran out of room for OSD modules (nw)
This commit is contained in:
parent
78d4e6db5b
commit
3ed5ea1020
@ -32,8 +32,10 @@ void osd_module_manager::register_module(const module_type &mod_type)
|
||||
osd_printf_verbose("===> registered module %s %s\n", module->name(), module->type());
|
||||
|
||||
int i;
|
||||
for (i = 0; m_modules[i] != nullptr; i++)
|
||||
for (i = 0; i < MAX_MODULES && m_modules[i] != nullptr; i++)
|
||||
;
|
||||
|
||||
assert_always(i < MAX_MODULES, "Module registration beyond MAX_MODULES!");
|
||||
m_modules[i] = module;
|
||||
}
|
||||
else
|
||||
|
@ -62,7 +62,7 @@ class osd_module_manager
|
||||
{
|
||||
public:
|
||||
|
||||
static const int MAX_MODULES = 32;
|
||||
static const int MAX_MODULES = 64;
|
||||
|
||||
osd_module_manager();
|
||||
~osd_module_manager();
|
||||
|
Loading…
Reference in New Issue
Block a user