100 ms timeout for info loading

This commit is contained in:
simon.kagstrom 2010-01-24 08:49:52 +00:00
parent e334caab9b
commit a8c01b1783
3 changed files with 18 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public:
virtual void hoverCallback(int which)
{
Gui::gui->timerController->arm(this, 5);
Gui::gui->timerController->arm(this, 100);
}
virtual void timeoutCallback()

View File

@ -7,7 +7,20 @@
#include "utils.hh"
#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,
const char *name, const char *author,

View File

@ -5,8 +5,10 @@
struct game_info
{
/* These two MUST stay the same */
uint32_t sz;
uint16_t version_magic;
uint16_t author_off;
uint16_t name_off;
uint16_t screenshot_off; /* In PNG format */
@ -15,6 +17,7 @@ struct game_info
uint8_t data[]; /* 4-byte aligned */
};
class GameInfo
{
public: