Previous 15994 Revisions Next

r9504 Tuesday 2nd November, 2010 at 07:39:55 UTC by Miodrag Milanović
Fixed tools compile.
[src/mess/tools/messtest]testmess.c

src/mess/tools/messtest/testmess.c
r9503r9504
301301   }
302302}
303303
304class test_osd_interface : public osd_interface
305{
306public:
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);
304314
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);
305322
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   
332test_osd_interface::test_osd_interface()
333{
334}
335
336test_osd_interface::~test_osd_interface()
337{
338}
339
340void test_osd_interface::init(running_machine &machine)
341{
342   // call our parent
343   osd_interface::init(machine);
344}
345
346osd_font test_osd_interface::font_open(const char *_name, int &height)
347{
348   return NULL;
349}
350
351void test_osd_interface::font_close(osd_font font)
352{
353}
354
355bitmap_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
360void test_osd_interface::update(bool skip_redraw)
361{
362}
363
364void test_osd_interface::wait_for_debugger(running_device &device, bool firststop)
365{
366}
367void test_osd_interface::update_audio_stream(const INT16 *buffer, int samples_this_frame)
368{
369}
370
371void test_osd_interface::set_mastervolume(int attenuation)
372{
373}
374
375void test_osd_interface::customize_input_type_list(input_type_desc *typelist)
376{
377}
378
306379static messtest_result_t run_test(int flags, messtest_results *results)
307380{
308381   const game_driver *driver;
r9503r9504
383456   mame_set_output_channel(OUTPUT_CHANNEL_INFO, mame_null_output_callback, NULL, NULL, NULL);
384457   mame_set_output_channel(OUTPUT_CHANNEL_DEBUG, mame_null_output_callback, NULL, NULL, NULL);
385458   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);
387461   real_run_time = ((double) (clock() - begin_time)) / CLOCKS_PER_SEC;
388462
389463   /* what happened? */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team