Update to spice2x-25-04-25 (pre-apply)
> broken commit
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include "bbc.h"
|
||||
|
||||
#include "avs/game.h"
|
||||
#include "games/shared/lcdhandle.h"
|
||||
#include "hooks/devicehook.h"
|
||||
#include "hooks/graphics/graphics.h"
|
||||
#include "util/detour.h"
|
||||
#include "util/logging.h"
|
||||
@@ -14,6 +16,9 @@ namespace games::bbc {
|
||||
void BBCGame::attach() {
|
||||
Game::attach();
|
||||
|
||||
devicehook_init();
|
||||
devicehook_add(new games::shared::LCDHandle());
|
||||
|
||||
// window patch
|
||||
if (GRAPHICS_WINDOWED) {
|
||||
unsigned char pattern[] = {
|
||||
@@ -34,4 +39,6 @@ namespace games::bbc {
|
||||
log_warning("bbc", "windowed mode failed");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -40,6 +40,16 @@ std::vector<Button> &games::bbc::get_buttons() {
|
||||
return buttons;
|
||||
}
|
||||
|
||||
std::string games::bbc::get_buttons_help() {
|
||||
// keep to max 100 characters wide
|
||||
return
|
||||
" green \n"
|
||||
" red blue \n"
|
||||
"\n"
|
||||
"Green button is a spinning disk that can be pressed."
|
||||
;
|
||||
}
|
||||
|
||||
std::vector<Analog> &games::bbc::get_analogs() {
|
||||
static std::vector<Analog> analogs;
|
||||
|
||||
|
||||
@@ -87,6 +87,7 @@ namespace games::bbc {
|
||||
|
||||
// getters
|
||||
std::vector<Button> &get_buttons();
|
||||
std::string get_buttons_help();
|
||||
std::vector<Analog> &get_analogs();
|
||||
std::vector<Light> &get_lights();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user