mirror of
https://github.com/holub/mame
synced 2025-05-21 05:08:54 +03:00

suffixed with _func. Did this throughout the core and drivers I was familiar with. Fixed gcc compiler error with recent render.c changes. gcc does not like explicit (int) casts on float or double functions. This is fracking annoying and stupid, but there you have it.
62 lines
1.4 KiB
C
62 lines
1.4 KiB
C
/***************************************************************************
|
|
|
|
config.h
|
|
|
|
Wrappers for handling MAME configuration files
|
|
|
|
Copyright Nicola Salmoria and the MAME Team.
|
|
Visit http://mamedev.org for licensing and usage restrictions.
|
|
|
|
***************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#ifndef __CONFIG_H__
|
|
#define __CONFIG_H__
|
|
|
|
#include "mame.h"
|
|
#include "input.h"
|
|
#include "xmlfile.h"
|
|
|
|
|
|
|
|
/*************************************
|
|
*
|
|
* Constants
|
|
*
|
|
*************************************/
|
|
|
|
enum
|
|
{
|
|
CONFIG_TYPE_INIT = 0, /* opportunity to initialize things first */
|
|
CONFIG_TYPE_CONTROLLER, /* loading from controller file */
|
|
CONFIG_TYPE_DEFAULT, /* loading from default.cfg */
|
|
CONFIG_TYPE_GAME, /* loading from game.cfg */
|
|
CONFIG_TYPE_FINAL /* opportunity to finish initialization */
|
|
};
|
|
|
|
|
|
|
|
/*************************************
|
|
*
|
|
* Type definitions
|
|
*
|
|
*************************************/
|
|
|
|
typedef void (*config_callback_func)(int config_type, xml_data_node *parentnode);
|
|
|
|
|
|
|
|
/*************************************
|
|
*
|
|
* Function prototypes
|
|
*
|
|
*************************************/
|
|
|
|
void config_init(running_machine *machine);
|
|
void config_register(const char *nodename, config_callback_func load, config_callback_func save);
|
|
int config_load_settings(running_machine *machine);
|
|
void config_save_settings(running_machine *machine);
|
|
|
|
#endif /* __CONFIG_H__ */
|