New Lua function: gui.status()
[lsnes.git] / dummy / window-dummy.cpp
blob263d84ed4c99e137f462d2dc1fab41203af04d13
1 #include "window.hpp"
2 #include <cstdlib>
3 #include <iostream>
5 namespace
7 std::map<std::string, std::string> status;
10 void window::init() {}
11 void window::quit() {}
12 void window::poll_inputs() throw(std::bad_alloc) {}
13 void window::notify_screen_update(bool full) throw() {}
14 void window::set_main_surface(screen& scr) throw() {}
15 void window::paused(bool enable) throw() {}
16 void window::wait_usec(uint64_t usec) throw(std::bad_alloc) {}
17 void window::cancel_wait() throw() {}
18 void window::sound_enable(bool enable) throw() {}
19 void window::play_audio_sample(uint16_t left, uint16_t right) throw() {}
20 void window::set_window_compensation(uint32_t xoffset, uint32_t yoffset, uint32_t hscl, uint32_t vscl) {}
22 bool window::modal_message(const std::string& msg, bool confirm) throw(std::bad_alloc)
24 std::cerr << "Modal message: " << msg << std::endl;
25 return confirm;
28 void window::fatal_error() throw()
30 std::cerr << "Exiting on fatal error." << std::endl;
31 exit(1);
34 void window::message(const std::string& msg) throw(std::bad_alloc)
36 if(msg[msg.length() - 1] == '\n')
37 std::cout << msg;
38 else
39 std::cout << msg << std::endl;
42 std::map<std::string, std::string>& window::get_emustatus() throw()
44 return status;
47 uint64_t get_ticks_msec() throw()
49 static uint64_t c = 0;
50 return c++;
53 void window::set_sound_rate(uint32_t rate_n, uint32_t rate_d)