src/mess/tools/messtest/testmess.c
| r2557 | r2558 | |
| 137 | 137 | static int format_index; |
| 138 | 138 | static UINT64 runtime_hash; |
| 139 | 139 | static void *wavptr; |
| 140 | | static int seen_first_update; |
| 141 | 140 | static render_target *target; |
| 142 | 141 | |
| 143 | 142 | /* command list */ |
| r2557 | r2558 | |
| 293 | 292 | screenshot_num = 0; |
| 294 | 293 | runtime_hash = 0; |
| 295 | 294 | had_failure = FALSE; |
| 296 | | seen_first_update = FALSE; |
| 297 | 295 | videoram = NULL; |
| 298 | 296 | videoram_size = 0; |
| 299 | 297 | |
| r2557 | r2558 | |
| 988 | 986 | |
| 989 | 987 | render_target_get_primitives(target); |
| 990 | 988 | |
| 991 | | /* is this the first update? if so, eat it */ |
| 992 | | if (!seen_first_update) |
| 989 | /* don't do anything if we are initializing! */ |
| 990 | switch(mame_get_phase(machine)) |
| 993 | 991 | { |
| 994 | | seen_first_update = TRUE; |
| 995 | | return; |
| 992 | case MAME_PHASE_PREINIT: |
| 993 | case MAME_PHASE_INIT: |
| 994 | case MAME_PHASE_RESET: |
| 995 | return; |
| 996 | 996 | } |
| 997 | 997 | |
| 998 | 998 | /* if we have already aborted or completed, our work is done */ |