diff options
| author | 2016-04-25 19:59:42 -0400 | |
|---|---|---|
| committer | 2016-04-25 19:59:42 -0400 | |
| commit | ec2669cacff2ec954ba351e09ba083c4e32b4ce4 (patch) | |
| tree | 7e9ec8a3e673ad0cf436357075807d3d0a0fbcc9 /src/emu/machine.cpp | |
| parent | 5a320aba4abe239b250a0917f82e70d9c8a905b9 (diff) | |
Machine management cleanups
- Boolean parameter to running_machine::run is no longer firstrun (which is now a member variable of mame_machine_manager) but quiet, which disables logging and audio recording without explicitly checking the system name.
- Sound recording is now turned on and off by explicit calls. The potential uses of this have not been explored.
- Dependencies reduced on drivenum.h, where the declaration for GAME_NAME(___empty) has been moved to.
Diffstat (limited to 'src/emu/machine.cpp')
| -rw-r--r-- | src/emu/machine.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/emu/machine.cpp b/src/emu/machine.cpp index 5eb1e4f3037..27f6d0dd568 100644 --- a/src/emu/machine.cpp +++ b/src/emu/machine.cpp @@ -283,7 +283,7 @@ void running_machine::start() // run - execute the machine //------------------------------------------------- -int running_machine::run(bool firstrun) +int running_machine::run(bool quiet) { int error = EMU_ERR_NONE; @@ -294,7 +294,7 @@ int running_machine::run(bool firstrun) m_current_phase = MACHINE_PHASE_INIT; // if we have a logfile, set up the callback - if (options().log() && &system() != &GAME_NAME(___empty)) + if (options().log() && !quiet) { m_logfile = std::make_unique<emu_file>(OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS); osd_file::error filerr = m_logfile->open("error.log"); @@ -315,10 +315,12 @@ int running_machine::run(bool firstrun) nvram_load(); sound().ui_mute(false); + if (!quiet) + sound().start_recording(); // initialize ui lists // display the startup screens - manager().ui_initialize(*this, firstrun); + manager().ui_initialize(*this); // perform a soft reset -- this takes us to the running phase soft_reset(); |
