mirror of
https://github.com/holub/mame
synced 2025-05-30 09:33:05 +03:00

- Added sdlmisc_<targetos>.c again. This was necessary since certain tools create stubs for e.g. osd_break_into_debugger. If we do not have this in a separate file, the link stage may break. - Applied OS/2 patch [Credit: KO Myung-Hun] - Cleaned up #includes. Removed stdlib.h were possible. - More malloc to osd_malloc rename. - SDL monitor modes are read now when they are needed. This is now consistent across platforms.
59 lines
1.5 KiB
C
59 lines
1.5 KiB
C
//============================================================
|
|
//
|
|
// sdlos.h - SDLMAME OS dependent functions
|
|
//
|
|
// Copyright (c) 1996-2007, Nicola Salmoria and the MAME Team.
|
|
// Visit http://mamedev.org for licensing and usage restrictions.
|
|
//
|
|
// SDLMAME by Olivier Galibert and R. Belmont
|
|
//
|
|
//============================================================
|
|
|
|
#ifndef __SDLOS__
|
|
#define __SDLOS__
|
|
|
|
/*-----------------------------------------------------------------------------
|
|
osd_num_processors: return the number of processors
|
|
|
|
Parameters:
|
|
|
|
None.
|
|
|
|
Return value:
|
|
|
|
Number of processors
|
|
-----------------------------------------------------------------------------*/
|
|
int osd_num_processors(void);
|
|
|
|
|
|
/*-----------------------------------------------------------------------------
|
|
osd_getenv: return pointer to environment variable
|
|
|
|
Parameters:
|
|
|
|
name - name of environment variable
|
|
|
|
Return value:
|
|
|
|
pointer to value
|
|
-----------------------------------------------------------------------------*/
|
|
char *osd_getenv(const char *name);
|
|
|
|
/*-----------------------------------------------------------------------------
|
|
osd_setenv: set environment variable
|
|
|
|
Parameters:
|
|
|
|
name - name of environment variable
|
|
value - value to write
|
|
overwrite - overwrite if it exists
|
|
|
|
Return value:
|
|
|
|
0 on success
|
|
-----------------------------------------------------------------------------*/
|
|
|
|
int osd_setenv(const char *name, const char *value, int overwrite);
|
|
|
|
#endif /* __SDLOS__ */
|