mirror of
https://github.com/charlesthobe/chdman.git
synced 2024-11-24 07:25:31 +00:00
Use only needed functions from osdlib
This commit is contained in:
parent
26369efdca
commit
568395d8c0
@ -5,7 +5,7 @@ ${CMAKE_SOURCE_DIR}/src/emu
|
|||||||
${CMAKE_SOURCE_DIR}/src/osd
|
${CMAKE_SOURCE_DIR}/src/osd
|
||||||
${CMAKE_SOURCE_DIR}/src/lib
|
${CMAKE_SOURCE_DIR}/src/lib
|
||||||
${CMAKE_SOURCE_DIR}/src/lib/util
|
${CMAKE_SOURCE_DIR}/src/lib/util
|
||||||
${CMAKE_SOURCE_DIR}/src/osd/sdl
|
#${CMAKE_SOURCE_DIR}/src/osd/sdl
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(ocore_sdl STATIC
|
add_library(ocore_sdl STATIC
|
||||||
@ -18,7 +18,8 @@ ${CMAKE_SOURCE_DIR}/src/osd/osdsync.cpp
|
|||||||
${CMAKE_SOURCE_DIR}/src/osd/osdsync.h
|
${CMAKE_SOURCE_DIR}/src/osd/osdsync.h
|
||||||
${CMAKE_SOURCE_DIR}/src/osd/modules/osdmodule.cpp
|
${CMAKE_SOURCE_DIR}/src/osd/modules/osdmodule.cpp
|
||||||
${CMAKE_SOURCE_DIR}/src/osd/modules/osdmodule.h
|
${CMAKE_SOURCE_DIR}/src/osd/modules/osdmodule.h
|
||||||
${CMAKE_SOURCE_DIR}/src/osd/modules/lib/osdlib_unix_mod.cpp
|
#${CMAKE_SOURCE_DIR}/src/osd/modules/lib/osdlib_unix.cpp
|
||||||
|
${CMAKE_SOURCE_DIR}/src/osd/modules/lib/osd_getenv.cpp
|
||||||
${CMAKE_SOURCE_DIR}/src/osd/modules/lib/osdlib.h
|
${CMAKE_SOURCE_DIR}/src/osd/modules/lib/osdlib.h
|
||||||
${CMAKE_SOURCE_DIR}/src/osd/modules/file/posixdir.cpp
|
${CMAKE_SOURCE_DIR}/src/osd/modules/file/posixdir.cpp
|
||||||
${CMAKE_SOURCE_DIR}/src/osd/modules/file/posixfile.cpp
|
${CMAKE_SOURCE_DIR}/src/osd/modules/file/posixfile.cpp
|
||||||
|
23
src/osd/modules/lib/osd_getenv.cpp
Normal file
23
src/osd/modules/lib/osd_getenv.cpp
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
// license:BSD-3-Clause
|
||||||
|
// copyright-holders:Olivier Galibert, R. Belmont
|
||||||
|
//============================================================
|
||||||
|
//
|
||||||
|
// sdlos_*.c - OS specific low level code
|
||||||
|
//
|
||||||
|
// SDLMAME by Olivier Galibert and R. Belmont
|
||||||
|
//
|
||||||
|
//============================================================
|
||||||
|
|
||||||
|
// MAME headers
|
||||||
|
#include "osdcore.h"
|
||||||
|
#include "osdlib.h"
|
||||||
|
|
||||||
|
//============================================================
|
||||||
|
// osd_getenv
|
||||||
|
//============================================================
|
||||||
|
|
||||||
|
const char *osd_getenv(const char *name)
|
||||||
|
{
|
||||||
|
return getenv(name);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user