Search
lxdream.org :: lxdream/src/dreamcast.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/dreamcast.h
changeset 23:1ec3acd0594d
prev19:9da7a8e38f9d
next26:ad258e3daaa5
author nkeynes
date Fri Dec 23 11:44:55 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Start of "real" time slices, general structure in place now
view annotate diff log raw
     2 #ifndef dreamcast_H
     3 #define dreamcast_H 1
     5 #include <stdlib.h>
     6 #include <stdio.h>
     7 #include <glib/gtypes.h>
     9 #ifdef __cplusplus
    10 extern "C" {
    11 #endif
    13 #define DREAMCAST_SAVE_MAGIC "%!-DreamOn!Save\0"
    14 #define DREAMCAST_SAVE_VERSION 0x00010000
    16 #define TIMESLICE_LENGTH 1000 /* microseconds */
    18 #define STATE_RUNNING 1
    19 #define STATE_STOPPING 2
    20 #define STATE_STOPPED 3 
    22 void dreamcast_init(void);
    23 void dreamcast_reset(void);
    24 void dreamcast_run(void);
    25 void dreamcast_stop(void);
    27 int dreamcast_save_state( const gchar *filename );
    28 int dreamcast_load_state( const gchar *filename );
    30 int open_file( gchar *filename );
    31 int load_bin_file( gchar *filename );
    33 #ifdef __cplusplus
    34 }
    35 #endif
    37 #endif /* !dream_machine_H */
.