mirror of
https://github.com/holub/mame
synced 2025-06-09 14:22:41 +03:00
osdmini: fixes build issues
This commit is contained in:
parent
b1d6f6d63f
commit
048fd105db
@ -79,6 +79,7 @@ project ("osd_" .. _OPTIONS["osd"])
|
|||||||
MAME_DIR .. "src/osd/modules/sound/coreaudio_sound.cpp",
|
MAME_DIR .. "src/osd/modules/sound/coreaudio_sound.cpp",
|
||||||
MAME_DIR .. "src/osd/modules/sound/sdl_sound.cpp",
|
MAME_DIR .. "src/osd/modules/sound/sdl_sound.cpp",
|
||||||
MAME_DIR .. "src/osd/modules/sound/none.cpp",
|
MAME_DIR .. "src/osd/modules/sound/none.cpp",
|
||||||
|
MAME_DIR .. "src/osd/modules/sound/xaudio2_sound.cpp",
|
||||||
}
|
}
|
||||||
|
|
||||||
project ("ocore_" .. _OPTIONS["osd"])
|
project ("ocore_" .. _OPTIONS["osd"])
|
||||||
|
@ -7,4 +7,6 @@ defines {
|
|||||||
"USE_SDL",
|
"USE_SDL",
|
||||||
"SDLMAME_NOASM=1",
|
"SDLMAME_NOASM=1",
|
||||||
"USE_OPENGL=0",
|
"USE_OPENGL=0",
|
||||||
|
"NO_USE_MIDI=1",
|
||||||
|
"USE_XAUDIO2=0",
|
||||||
}
|
}
|
||||||
|
@ -103,11 +103,9 @@ int osd_setenv(const char *name, const char *value, int overwrite)
|
|||||||
//============================================================
|
//============================================================
|
||||||
// osd_subst_env
|
// osd_subst_env
|
||||||
//============================================================
|
//============================================================
|
||||||
int osd_subst_env(char **dst, const char *src)
|
void osd_subst_env(char **dst, const char *src)
|
||||||
{
|
{
|
||||||
*dst = (char *)osd_malloc_array(strlen(src) + 1);
|
*dst = (char *)osd_malloc_array(strlen(src) + 1);
|
||||||
if (*dst != nullptr)
|
if (*dst != nullptr)
|
||||||
strcpy(*dst, src);
|
strcpy(*dst, src);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user