mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 23:52:41 +00:00
DREAMWEB: Unstub gettime().
This commit is contained in:
parent
af4f0e6b1e
commit
28cc856572
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user