/************************************************************************* empty.c Empty driver. **************************************************************************** Copyright Aaron Giles All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name 'MAME' nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **************************************************************************/ #include "emu.h" #include "render.h" #include "uimain.h" //************************************************************************** // DRIVER STATE //************************************************************************** class empty_state : public driver_device { public: // constructor empty_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag) { } virtual void machine_start() { // force the UI to show the game select screen ui_menu_force_game_select(machine(), &machine().render().ui_container()); } UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) { bitmap.fill(RGB_BLACK); return 0; } }; //************************************************************************** // MACHINE DRIVERS //************************************************************************** static MACHINE_CONFIG_START( ___empty, empty_state ) // video hardware MCFG_SCREEN_ADD("screen", RASTER) MCFG_SCREEN_UPDATE_DRIVER(empty_state, screen_update) MCFG_SCREEN_SIZE(640,480) MCFG_SCREEN_VISIBLE_AREA(0,639, 0,479) MCFG_SCREEN_REFRESH_RATE(30) MACHINE_CONFIG_END //************************************************************************** // ROM DEFINITIONS //************************************************************************** ROM_START( ___empty ) ROM_REGION( 0x10, "user1", ROMREGION_ERASEFF ) ROM_END //************************************************************************** // GAME DRIVERS //************************************************************************** GAME( 2007, ___empty, 0, ___empty, 0, driver_device, 0, ROT0, "MAME", "No Driver Loaded", GAME_NO_SOUND )