Mercurial > repos > blastem
comparison stateview.c @ 424:7e8e179116af
Add support for loading GST format savestates
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 29 Jun 2013 17:15:08 -0700 |
parents | 8e2fa485c0f2 |
children | dc322bc77ea2 |
comparison
equal
deleted
inserted
replaced
423:8e136187c0e0 | 424:7e8e179116af |
---|---|
34 height = (width/320) * 240; | 34 height = (width/320) * 240; |
35 } | 35 } |
36 } | 36 } |
37 vdp_context context; | 37 vdp_context context; |
38 init_vdp_context(&context); | 38 init_vdp_context(&context); |
39 vdp_load_savestate(&context, state_file); | 39 vdp_load_gst(&context, state_file); |
40 vdp_run_to_vblank(&context); | 40 vdp_run_to_vblank(&context); |
41 vdp_print_sprite_table(&context); | 41 vdp_print_sprite_table(&context); |
42 printf("Display %s\n", (context.regs[REG_MODE_2] & DISPLAY_ENABLE) ? "enabled" : "disabled"); | 42 printf("Display %s\n", (context.regs[REG_MODE_2] & DISPLAY_ENABLE) ? "enabled" : "disabled"); |
43 render_init(width, height); | 43 render_init(width, height); |
44 render_context(&context); | 44 render_context(&context); |