Search
lxdream.org :: lxdream/src/dreamcast.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/dreamcast.h
changeset 477:9a373f2ff009
prev467:0120dc87e05d
next493:c8183f888b14
author nkeynes
date Wed Oct 31 09:10:23 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Add save/restore of render buffers in save states
Gzip memory blocks in save states
Move front-buffer management back to pvr2
Add screenshot preview when loading save states
Various minor fixes and cleanups
file annotate diff log raw
1.1 --- a/src/dreamcast.h Sat Oct 27 05:48:22 2007 +0000
1.2 +++ b/src/dreamcast.h Wed Oct 31 09:10:23 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: dreamcast.h,v 1.20 2007-10-27 05:48:22 nkeynes Exp $
1.6 + * $Id: dreamcast.h,v 1.21 2007-10-31 09:10:23 nkeynes Exp $
1.7 *
1.8 * Public interface for dreamcast.c -
1.9 * Central switchboard for the system. This pulls all the individual modules
1.10 @@ -23,7 +23,7 @@
1.11 #define dreamcast_H 1
1.12
1.13 #include <stdio.h>
1.14 -#include <glib/gtypes.h>
1.15 +#include "lxdream.h"
1.16
1.17 #ifdef __cplusplus
1.18 extern "C" {
1.19 @@ -31,9 +31,6 @@
1.20
1.21 #define DEFAULT_TIMESLICE_LENGTH 1000000 /* nanoseconds */
1.22
1.23 -#define MB *1024*1024
1.24 -#define KB *1024
1.25 -
1.26 #define XLAT_NEW_CACHE_SIZE 32 MB
1.27 #define XLAT_TEMP_CACHE_SIZE 2 MB
1.28 #define XLAT_OLD_CACHE_SIZE 8 MB
1.29 @@ -55,6 +52,15 @@
1.30 int dreamcast_save_state( const gchar *filename );
1.31 int dreamcast_load_state( const gchar *filename );
1.32
1.33 +/**
1.34 + * Load the front-buffer image from the specified file.
1.35 + * If the file is not a valid save state, returns NULL. Otherwise,
1.36 + * returns a newly allocated frame_buffer that should be freed
1.37 + * by the caller. (The data buffer is contained within the
1.38 + * allocation and does not need to be freed separately)
1.39 + */
1.40 +frame_buffer_t dreamcast_load_preview( const gchar *filename );
1.41 +
1.42 #define SCENE_SAVE_MAGIC "%!-lxDream!Scene"
1.43 #define SCENE_SAVE_VERSION 0x00010000
1.44
.