mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
From: Lei Wu [mailto:lanewu@hotmail.com]
Subject: MSVC9 fix [Emuman] the original macro is too long, which caused a MSVC9 internal compiler error
This commit is contained in:
parent
e22e29dc9b
commit
e04bb4f699
@ -209,7 +209,7 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
{
|
{
|
||||||
device_type devtype;
|
device_type devtype;
|
||||||
const char *tag;
|
const char *tag;
|
||||||
int size, offset, type, bits;
|
int size, offset, type, bits, in, out;
|
||||||
UINT32 data32, clock, gain;
|
UINT32 data32, clock, gain;
|
||||||
UINT64 data64;
|
UINT64 data64;
|
||||||
|
|
||||||
@ -516,8 +516,10 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
|
|||||||
|
|
||||||
case MCONFIG_TOKEN_SOUND_ROUTE:
|
case MCONFIG_TOKEN_SOUND_ROUTE:
|
||||||
assert(sound != NULL);
|
assert(sound != NULL);
|
||||||
|
in = sound->route[sound->routes].input;
|
||||||
|
out = sound->route[sound->routes].output;
|
||||||
TOKEN_UNGET_UINT32(tokens);
|
TOKEN_UNGET_UINT32(tokens);
|
||||||
TOKEN_GET_UINT64_UNPACK4(tokens, entrytype, 8, sound->route[sound->routes].output, -12, sound->route[sound->routes].input, -12, gain, 32);
|
TOKEN_GET_UINT64_UNPACK4(tokens, entrytype, 8, out, -12, in, -12, gain, 32);
|
||||||
sound->route[sound->routes].gain = (float)gain / 16777216.0f;
|
sound->route[sound->routes].gain = (float)gain / 16777216.0f;
|
||||||
sound->route[sound->routes].target = TOKEN_GET_STRING(tokens);
|
sound->route[sound->routes].target = TOKEN_GET_STRING(tokens);
|
||||||
sound->routes++;
|
sound->routes++;
|
||||||
|
Loading…
Reference in New Issue
Block a user