aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMarcus Comstedt2002-09-13 15:01:20 +0000
committerMarcus Comstedt2002-09-13 15:01:20 +0000
commitb507b166e4fcf14f1a999e57b6ee59e27e82b325 (patch)
treec9e252da7428681c421b597f53ead5b1d1cc1ebf /backends
parented17565f6cd44380b4142ef5647a3a943659e970 (diff)
downloadscummvm-rg350-b507b166e4fcf14f1a999e57b6ee59e27e82b325.tar.gz
scummvm-rg350-b507b166e4fcf14f1a999e57b6ee59e27e82b325.tar.bz2
scummvm-rg350-b507b166e4fcf14f1a999e57b6ee59e27e82b325.zip
Stubs for new functions.
svn-id: r4933
Diffstat (limited to 'backends')
-rw-r--r--backends/dc/dc.h11
-rw-r--r--backends/dc/dcmain.cpp24
2 files changed, 35 insertions, 0 deletions
diff --git a/backends/dc/dc.h b/backends/dc/dc.h
index 7bd15c9bbf..b4e2b0a6f8 100644
--- a/backends/dc/dc.h
+++ b/backends/dc/dc.h
@@ -1,3 +1,4 @@
+#include <common/system.h>
#include <ronin/soundcommon.h>
#define NUM_BUFFERS 4
@@ -67,6 +68,16 @@ class OSystem_Dreamcast : public OSystem {
// Set a parameter
uint32 property(int param, Property *value);
+ // Add a callback timer
+ virtual void set_timer(int timer, int (*callback)(int));
+
+ // Mutex handling
+ virtual void *create_mutex(void);
+ virtual void lock_mutex(void *mutex);
+ virtual void unlock_mutex(void *mutex);
+ virtual void delete_mutex(void *mutex);
+
+
static OSystem *create();
diff --git a/backends/dc/dcmain.cpp b/backends/dc/dcmain.cpp
index 7217b59f7f..77a0afa236 100644
--- a/backends/dc/dcmain.cpp
+++ b/backends/dc/dcmain.cpp
@@ -144,6 +144,30 @@ void OSystem_Dreamcast::delay_msecs(uint msecs)
get_msecs();
}
+void OSystem_Dreamcast::set_timer(int timer, int (*callback)(int))
+{
+ warning("Setting a timer! (not supported.)\n");
+}
+
+/* Mutex handling */
+void *OSystem_Dreamcast::create_mutex(void)
+{
+ return NULL;
+}
+
+void OSystem_Dreamcast::lock_mutex(void *mutex)
+{
+}
+
+void OSystem_Dreamcast::unlock_mutex(void *mutex)
+{
+}
+
+void OSystem_Dreamcast::delete_mutex(void *mutex)
+{
+}
+
+
/*
void waitForTimer(Scumm *s, int time)
{