diff options
| author | Max Horn | 2003-09-27 16:54:11 +0000 |
|---|---|---|
| committer | Max Horn | 2003-09-27 16:54:11 +0000 |
| commit | 49d2a22b428864ccf2298b67841d4cb3cf33b659 (patch) | |
| tree | 11f1ebd799bec7e853bc71671fa045fe9467774c /backends/gp32 | |
| parent | e19e7c879a1fc88458a3e26715875e60512d755b (diff) | |
| download | scummvm-rg350-49d2a22b428864ccf2298b67841d4cb3cf33b659.tar.gz scummvm-rg350-49d2a22b428864ccf2298b67841d4cb3cf33b659.tar.bz2 scummvm-rg350-49d2a22b428864ccf2298b67841d4cb3cf33b659.zip | |
OSystem changes: removed create_thread() method (not needed anymore; 'pure' threads aren't very portable anyway, better we only use timers); introduced OSystem::TimerProc type
svn-id: r10430
Diffstat (limited to 'backends/gp32')
| -rw-r--r-- | backends/gp32/gp32.cpp | 7 | ||||
| -rw-r--r-- | backends/gp32/gp32.h | 7 |
2 files changed, 4 insertions, 10 deletions
diff --git a/backends/gp32/gp32.cpp b/backends/gp32/gp32.cpp index e78f185aa5..5eba66274a 100644 --- a/backends/gp32/gp32.cpp +++ b/backends/gp32/gp32.cpp @@ -858,9 +858,6 @@ void OSystem_GP32::delay_msecs(uint msecs) { while ( ( GpTickCountGet() - n ) < msecs) ; } -// Create a thread -void OSystem_GP32::create_thread(ThreadProc *proc, void *param) { } - // Get the next event. // Returns true if an event was retrieved. @@ -979,7 +976,7 @@ bool OSystem_GP32::poll_event(Event *event) { // fixme: make more user-friendly // Set the function to be invoked whenever samples need to be generated // Format is the sample type format. // Only 16-bit signed mode is needed for simon & scumm -bool OSystem_GP32::set_sound_proc(SoundProc *proc, void *param, SoundFormat format) { +bool OSystem_GP32::set_sound_proc(SoundProc proc, void *param, SoundFormat format) { return false; } @@ -1076,7 +1073,7 @@ void OSystem_GP32::stop_cdrom() { } void OSystem_GP32::update_cdrom() { } // Add a new callback timer -void OSystem_GP32::set_timer(int timer, int (*callback)(int)) { } +void OSystem_GP32::set_timer(TimerProc callback, int timer) { } // Mutex handling OSystem::MutexRef OSystem_GP32::create_mutex() { diff --git a/backends/gp32/gp32.h b/backends/gp32/gp32.h index 0b3f3dd338..0faf3f0cf2 100644 --- a/backends/gp32/gp32.h +++ b/backends/gp32/gp32.h @@ -73,9 +73,6 @@ public: // Delay for a specified amount of milliseconds void delay_msecs(uint msecs); - // Create a thread - void create_thread(ThreadProc *proc, void *param); - // Get the next event. // Returns true if an event was retrieved. bool poll_event(Event *event); @@ -83,7 +80,7 @@ public: // Set the function to be invoked whenever samples need to be generated // Format is the sample type format. // Only 16-bit signed mode is needed for simon & scumm - bool set_sound_proc(SoundProc *proc, void *param, SoundFormat format); + bool set_sound_proc(SoundProc proc, void *param, SoundFormat format); void clear_sound_proc(); // Get or set a property @@ -103,7 +100,7 @@ public: void update_cdrom(); // Add a new callback timer - void set_timer(int timer, int (*callback)(int)); + void set_timer(TimerProc callback, int timer); // Mutex handling OSystem::MutexRef create_mutex(); |
