mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 11:29:24 +01:00
100 ms timeout for info loading
This commit is contained in:
parent
e334caab9b
commit
a8c01b1783
@ -60,7 +60,7 @@ public:
|
|||||||
|
|
||||||
virtual void hoverCallback(int which)
|
virtual void hoverCallback(int which)
|
||||||
{
|
{
|
||||||
Gui::gui->timerController->arm(this, 5);
|
Gui::gui->timerController->arm(this, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void timeoutCallback()
|
virtual void timeoutCallback()
|
||||||
|
@ -7,7 +7,20 @@
|
|||||||
#include "utils.hh"
|
#include "utils.hh"
|
||||||
|
|
||||||
#define VERSION_BASE (0x1978)
|
#define VERSION_BASE (0x1978)
|
||||||
#define VERSION_MAGIC (VERSION_BASE + 1)
|
#define VERSION_MAGIC (VERSION_BASE + 0)
|
||||||
|
|
||||||
|
struct game_info_v0
|
||||||
|
{
|
||||||
|
uint32_t sz;
|
||||||
|
uint16_t version_magic;
|
||||||
|
|
||||||
|
uint16_t author_off;
|
||||||
|
uint16_t name_off;
|
||||||
|
uint16_t screenshot_off; /* In PNG format */
|
||||||
|
uint16_t filename_off;
|
||||||
|
uint16_t flags;
|
||||||
|
uint8_t data[]; /* 4-byte aligned */
|
||||||
|
};
|
||||||
|
|
||||||
GameInfo::GameInfo(const char *filename,
|
GameInfo::GameInfo(const char *filename,
|
||||||
const char *name, const char *author,
|
const char *name, const char *author,
|
||||||
|
@ -5,8 +5,10 @@
|
|||||||
|
|
||||||
struct game_info
|
struct game_info
|
||||||
{
|
{
|
||||||
|
/* These two MUST stay the same */
|
||||||
uint32_t sz;
|
uint32_t sz;
|
||||||
uint16_t version_magic;
|
uint16_t version_magic;
|
||||||
|
|
||||||
uint16_t author_off;
|
uint16_t author_off;
|
||||||
uint16_t name_off;
|
uint16_t name_off;
|
||||||
uint16_t screenshot_off; /* In PNG format */
|
uint16_t screenshot_off; /* In PNG format */
|
||||||
@ -15,6 +17,7 @@ struct game_info
|
|||||||
uint8_t data[]; /* 4-byte aligned */
|
uint8_t data[]; /* 4-byte aligned */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class GameInfo
|
class GameInfo
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user