Date is right, time is an hour out. Does it read from the computers clock or somewhere else? We are in british summer time here, so the clocks are an hour out, but my laptop shows the correct time.
Most of the date/time values start ant zero, however the day of the month starts at 1.
time_t asUnixTime(int year, int mon, int mday, int hour, int min, int sec) {
struct tm t;
t.tm_year = year - 1900;
t.tm_mon = mon;
t.tm_mday = mday;
t.tm_hour = hour;
t.tm_min = min;
t.tm_sec = sec;
t.tm_isdst = -1; // Is Daylight saving time on? 1 = yes, 0 = no, -1 = unknown
return mktime(&t); // returns seconds elapsed since January 1, 1970 (begin of the Epoch)
}
void setMyTime(int day, int month, int year, int hour, int minute, int second=0){
/*
// 1st Jan 2019
int year = 2019; // year
int month = 3; // 0-11 (jan = 0)
int day = 15; // 1-31 day of month
int hour = 13; // 0-32 hours from midnight
int minute = 42; // 0-59 minutes this hour
int second = 0; // 0-59 seconds this minute
*/
toTime = asUnixTime(year, month, day, hour, minute, second);
set_time(toTime);
}
the time is in UTC zone
It reads the computer’s clock, in milliseconds since the epoch. It does not take timezones or daylight savings into account.
is pokInitSD();
supposed to freeze the emulator or do I have a bug somewhere else do you think?
did you provide an sd image? with -I sd.img
I didn’t does the image need to be created in any specific way?
it need to be small because its will be loaded into ram.
you can follow the instruction in this to create one.
Anything for windows? win32diskimager seems to create corrupt backups.
Or UTC+01:00.
I can’t get sd.img to work, I just get white screen then crash. I backed up my card with win32diskimager. does anyone know a windows tool that can create a valid image for use with the emulator?
@spinal you can use OSFMount just create FAT32 Ram disk then copy your files to it, and save it as disk image.
Excellent, I’ve never used a ram drive since I owned an Amiga 600. Worked perfectly
Would it be possible when exporting screen captures, to do each frame only when the virtual screen updates, rather than a fixed frame rate?
Not in a way that would work with all modes. There is no way of knowing when a direct-draw mode is done updating, for example.
Reporting an issue when compiling the latest version on Linux:
Compile: sys.cpp
cdb: invalid option -- 'O'
cdb: try `cdb -h' for help
Makefile:71: recipe for target 'BUILD/sys.o' failed
make: *** [BUILD/sys.o] Error 2
shell returned 2
Not sure if it’s my fault, I had to remove the cdb
from Makefile.
That’s my fault, I wasn’t supposed to commit the makefile with cdb in it. >_<
New emulator update.
Minor new feature: sound support implemented.
As usual, you can get a windows build here.
Amazing!
Is there some magical way to make sound work? I’m not hearing anything other than a couple of clicks