Update to spice2x-25-04-25 (pre-apply)
> broken commit
This commit is contained in:
@@ -34,6 +34,16 @@ std::vector<Button> &games::museca::get_buttons() {
|
||||
return buttons;
|
||||
}
|
||||
|
||||
std::string games::museca::get_buttons_help() {
|
||||
// keep to max 100 characters wide
|
||||
return
|
||||
" Disc1 Disc3 Disc5 \n"
|
||||
" Disc2 Disc4 \n"
|
||||
"\n"
|
||||
" Pedal"
|
||||
;
|
||||
}
|
||||
|
||||
std::vector<Analog> &games::museca::get_analogs() {
|
||||
static std::vector<Analog> analogs;
|
||||
|
||||
@@ -61,6 +71,8 @@ std::vector<Light> &games::museca::get_lights() {
|
||||
|
||||
GameAPI::Lights::sortLights(
|
||||
&lights,
|
||||
"Start",
|
||||
"Keypad",
|
||||
"Title R",
|
||||
"Title G",
|
||||
"Title B",
|
||||
|
||||
@@ -46,6 +46,8 @@ namespace games::museca {
|
||||
// all lights in correct order
|
||||
namespace Lights {
|
||||
enum {
|
||||
Start,
|
||||
Keypad,
|
||||
TitleR,
|
||||
TitleG,
|
||||
TitleB,
|
||||
@@ -81,6 +83,7 @@ namespace games::museca {
|
||||
|
||||
// getters
|
||||
std::vector<Button> &get_buttons();
|
||||
std::string get_buttons_help();
|
||||
std::vector<Analog> &get_analogs();
|
||||
std::vector<Light> &get_lights();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#include "museca.h"
|
||||
|
||||
#include "avs/game.h"
|
||||
#include "games/shared/lcdhandle.h"
|
||||
#include "hooks/devicehook.h"
|
||||
|
||||
namespace games::museca {
|
||||
|
||||
MusecaGame::MusecaGame() : Game("Museca") {
|
||||
}
|
||||
|
||||
void MusecaGame::attach() {
|
||||
Game::attach();
|
||||
|
||||
devicehook_init();
|
||||
devicehook_add(new games::shared::LCDHandle());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include "games/game.h"
|
||||
|
||||
namespace games::museca {
|
||||
|
||||
class MusecaGame : public games::Game {
|
||||
public:
|
||||
MusecaGame();
|
||||
|
||||
virtual void attach() override;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user