diff options
author | Torbjörn Andersson | 2011-06-07 19:12:09 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:33:10 +0200 |
commit | 28cc856572f1fa2041958062382a0e5e54d046fd (patch) | |
tree | 134905f983b6a066a550236be1bfb42508d5f442 /engines/dreamweb | |
parent | af4f0e6b1e40971c23331ed677d0fa70a8607eb2 (diff) | |
download | scummvm-rg350-28cc856572f1fa2041958062382a0e5e54d046fd.tar.gz scummvm-rg350-28cc856572f1fa2041958062382a0e5e54d046fd.tar.bz2 scummvm-rg350-28cc856572f1fa2041958062382a0e5e54d046fd.zip |
DREAMWEB: Unstub gettime().
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp index fbb16a83db..9fd8b66641 100644 --- a/engines/dreamweb/dreamweb.cpp +++ b/engines/dreamweb/dreamweb.cpp @@ -297,10 +297,15 @@ void setmouse(Context &context) { } void gettime(Context &context) { - warning("gettime: stub: 10:10:00"); - context.ch = 10; - context.cl = 10; - context.dh = 0; + TimeDate t; + g_system->getTimeAndDate(t); + debug(1, "\tgettime: %02d:%02d:%02d", t.tm_hour, t.tm_min, t.tm_sec); + context.ch = t.tm_hour; + context.cl = t.tm_min; + context.dh = t.tm_sec; + context.ds.byte(5) = context.dh; + context.ds.byte(6) = context.cl; + context.ds.byte(7) = context.ch; } void allocatemem(Context &context) { |