Search
lxdream.org :: lxdream/src/dreamcast.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/dreamcast.h
changeset 450:207461e79f21
prev431:248dd77a9e44
next461:63d4de8dcec6
author nkeynes
date Wed Oct 17 11:26:45 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Split config management out to config.[ch]
Manage config filename
Check home dir + sysconfdir for conf file
Initial work on a path settings dialog
view annotate diff log raw
     1 /**
     2  * $Id: dreamcast.h,v 1.18 2007-10-17 11:26:45 nkeynes Exp $
     3  *
     4  * Public interface for dreamcast.c -
     5  * Central switchboard for the system. This pulls all the individual modules
     6  * together into some kind of coherent structure. This is also where you'd
     7  * add Naomi support, if I ever get a board to play with...
     8  *
     9  * Copyright (c) 2005 Nathan Keynes.
    10  *
    11  * This program is free software; you can redistribute it and/or modify
    12  * it under the terms of the GNU General Public License as published by
    13  * the Free Software Foundation; either version 2 of the License, or
    14  * (at your option) any later version.
    15  *
    16  * This program is distributed in the hope that it will be useful,
    17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19  * GNU General Public License for more details.
    20  */
    22 #ifndef dreamcast_H
    23 #define dreamcast_H 1
    25 #include <stdio.h>
    26 #include <glib/gtypes.h>
    28 #ifdef __cplusplus
    29 extern "C" {
    30 #endif
    32 #define DEFAULT_TIMESLICE_LENGTH 1000000 /* nanoseconds */
    34 #define MB *1024*1024
    35 #define KB *1024
    37 #define XLAT_NEW_CACHE_SIZE 32 MB
    38 #define XLAT_TEMP_CACHE_SIZE 2 MB
    39 #define XLAT_OLD_CACHE_SIZE 8 MB
    41 void dreamcast_configure(void);
    42 void dreamcast_configure_aica_only(void);
    43 void dreamcast_init(void);
    44 void dreamcast_reset(void);
    45 void dreamcast_run(void);
    46 void dreamcast_run_for( unsigned int seconds, unsigned int nanosecs );
    47 void dreamcast_stop(void);
    48 void dreamcast_shutdown(void);
    49 gboolean dreamcast_is_running(void);
    51 #define DREAMCAST_SAVE_MAGIC "%!-lxDream!Save\0"
    52 #define DREAMCAST_SAVE_VERSION 0x00010000
    54 int dreamcast_save_state( const gchar *filename );
    55 int dreamcast_load_state( const gchar *filename );
    57 #define SCENE_SAVE_MAGIC "%!-lxDream!Scene"
    58 #define SCENE_SAVE_VERSION 0x00010000
    60 #ifdef __cplusplus
    61 }
    62 #endif
    64 #endif /* !dreamcast_H */
.