add method for setting the frontend time before game load... this will be needed for saturnus, as it may query time to set the initial rtc

This commit is contained in:
CasualPokePlayer 2024-02-09 18:32:58 -08:00
parent 5fb7b486b3
commit 0cc61c3744
9 changed files with 5 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -35,6 +35,11 @@ ECL_EXPORT void PreInit()
SetupMDFNGameInfo();
}
ECL_EXPORT void SetInitialTime(int64_t initialTime)
{
FrontendTime = initialTime;
}
static void Setup()
{
pixels = (uint32_t*)alloc_invisible(Game->fb_width * Game->fb_height * sizeof(*pixels));