src/mess/tools/messtest/testmess.c
| r9503 | r9504 | |
| 301 | 301 | } |
| 302 | 302 | } |
| 303 | 303 | |
| 304 | class test_osd_interface : public osd_interface |
| 305 | { |
| 306 | public: |
| 307 | // construction/destruction |
| 308 | test_osd_interface(); |
| 309 | virtual ~test_osd_interface(); |
| 310 | |
| 311 | // general overridables |
| 312 | virtual void init(running_machine &machine); |
| 313 | virtual void update(bool skip_redraw); |
| 304 | 314 | |
| 315 | // debugger overridables |
| 316 | // virtual void init_debugger(); |
| 317 | virtual void wait_for_debugger(device_t &device, bool firststop); |
| 318 | |
| 319 | // audio overridables |
| 320 | virtual void update_audio_stream(const INT16 *buffer, int samples_this_frame); |
| 321 | virtual void set_mastervolume(int attenuation); |
| 305 | 322 | |
| 323 | // input overridables |
| 324 | virtual void customize_input_type_list(input_type_desc *typelist); |
| 325 | |
| 326 | // font overridables |
| 327 | virtual osd_font font_open(const char *name, int &height); |
| 328 | virtual void font_close(osd_font font); |
| 329 | virtual bitmap_t *font_get_bitmap(osd_font font, unicode_char chnum, INT32 &width, INT32 &xoffs, INT32 &yoffs); |
| 330 | }; |
| 331 | |
| 332 | test_osd_interface::test_osd_interface() |
| 333 | { |
| 334 | } |
| 335 | |
| 336 | test_osd_interface::~test_osd_interface() |
| 337 | { |
| 338 | } |
| 339 | |
| 340 | void test_osd_interface::init(running_machine &machine) |
| 341 | { |
| 342 | // call our parent |
| 343 | osd_interface::init(machine); |
| 344 | } |
| 345 | |
| 346 | osd_font test_osd_interface::font_open(const char *_name, int &height) |
| 347 | { |
| 348 | return NULL; |
| 349 | } |
| 350 | |
| 351 | void test_osd_interface::font_close(osd_font font) |
| 352 | { |
| 353 | } |
| 354 | |
| 355 | bitmap_t *test_osd_interface::font_get_bitmap(osd_font font, unicode_char chnum, INT32 &width, INT32 &xoffs, INT32 &yoffs) |
| 356 | { |
| 357 | return NULL; |
| 358 | } |
| 359 | |
| 360 | void test_osd_interface::update(bool skip_redraw) |
| 361 | { |
| 362 | } |
| 363 | |
| 364 | void test_osd_interface::wait_for_debugger(running_device &device, bool firststop) |
| 365 | { |
| 366 | } |
| 367 | void test_osd_interface::update_audio_stream(const INT16 *buffer, int samples_this_frame) |
| 368 | { |
| 369 | } |
| 370 | |
| 371 | void test_osd_interface::set_mastervolume(int attenuation) |
| 372 | { |
| 373 | } |
| 374 | |
| 375 | void test_osd_interface::customize_input_type_list(input_type_desc *typelist) |
| 376 | { |
| 377 | } |
| 378 | |
| 306 | 379 | static messtest_result_t run_test(int flags, messtest_results *results) |
| 307 | 380 | { |
| 308 | 381 | const game_driver *driver; |
| r9503 | r9504 | |
| 383 | 456 | mame_set_output_channel(OUTPUT_CHANNEL_INFO, mame_null_output_callback, NULL, NULL, NULL); |
| 384 | 457 | mame_set_output_channel(OUTPUT_CHANNEL_DEBUG, mame_null_output_callback, NULL, NULL, NULL); |
| 385 | 458 | mame_set_output_channel(OUTPUT_CHANNEL_LOG, mame_null_output_callback, NULL, NULL, NULL); |
| 386 | | mame_execute(opts); |
| 459 | test_osd_interface osd; |
| 460 | mame_execute(osd, opts); |
| 387 | 461 | real_run_time = ((double) (clock() - begin_time)) / CLOCKS_PER_SEC; |
| 388 | 462 | |
| 389 | 463 | /* what happened? */ |