Support the boot message before the menu.

This makes it work if you use File -> Open right away.
This commit is contained in:
Unknown W. Brackets 2013-03-31 18:06:25 -07:00
parent 086fd24edb
commit d0ecaa10a7
2 changed files with 7 additions and 0 deletions

View file

@ -134,6 +134,12 @@ void LogoScreen::update(InputState &input_state) {
}
}
void LogoScreen::sendMessage(const char *message, const char *value) {
if (!strcmp(message, "boot")) {
screenManager()->switchScreen(new EmuScreen(value));
}
}
void LogoScreen::render() {
float t = (float)frames_ / 60.0f;

View file

@ -32,6 +32,7 @@ public:
: bootFilename_(bootFilename), frames_(0) {}
void update(InputState &input);
void render();
void sendMessage(const char *message, const char *value);
private:
std::string bootFilename_;