Initial re-upload of spice2x-24-08-24
This commit is contained in:
26
games/dea/dea.cpp
Normal file
26
games/dea/dea.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "dea.h"
|
||||
|
||||
#include "launcher/launcher.h"
|
||||
#include "util/libutils.h"
|
||||
#include "util/logging.h"
|
||||
|
||||
namespace games::dea {
|
||||
|
||||
DEAGame::DEAGame() : Game("Dance Evolution") {
|
||||
}
|
||||
|
||||
void DEAGame::attach() {
|
||||
Game::attach();
|
||||
|
||||
// since this DLL isn't automatically loaded the hooks don't work unless we load it manually
|
||||
libutils::try_library(MODULE_PATH / "gamekdm.dll");
|
||||
|
||||
// Has the user actually performed first-time setup?
|
||||
auto kinect10 = libutils::try_library("Kinect10.dll");
|
||||
if (!kinect10) {
|
||||
log_warning("dea", "Failed to load 'Kinect10.dll'. Game will boot in Test Mode. Have you installed the Kinect SDK?");
|
||||
} else {
|
||||
FreeLibrary(kinect10);
|
||||
}
|
||||
}
|
||||
}
|
||||
12
games/dea/dea.h
Normal file
12
games/dea/dea.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "games/game.h"
|
||||
|
||||
namespace games::dea {
|
||||
|
||||
class DEAGame : public games::Game {
|
||||
public:
|
||||
DEAGame();
|
||||
virtual void attach() override;
|
||||
};
|
||||
}
|
||||
68
games/dea/io.cpp
Normal file
68
games/dea/io.cpp
Normal file
@@ -0,0 +1,68 @@
|
||||
#include "io.h"
|
||||
|
||||
std::vector<Button> &games::dea::get_buttons() {
|
||||
static std::vector<Button> buttons;
|
||||
|
||||
if (buttons.empty()) {
|
||||
buttons = GameAPI::Buttons::getButtons("Dance Evolution");
|
||||
|
||||
GameAPI::Buttons::sortButtons(
|
||||
&buttons,
|
||||
"Service",
|
||||
"Test",
|
||||
"P1 Start",
|
||||
"P1 Left",
|
||||
"P1 Right",
|
||||
"P2 Start",
|
||||
"P2 Left",
|
||||
"P2 Right"
|
||||
);
|
||||
}
|
||||
|
||||
return buttons;
|
||||
}
|
||||
|
||||
std::vector<Light> &games::dea::get_lights() {
|
||||
static std::vector<Light> lights;
|
||||
|
||||
if (lights.empty()) {
|
||||
lights = GameAPI::Lights::getLights("Dance Evolution");
|
||||
|
||||
GameAPI::Lights::sortLights(
|
||||
&lights,
|
||||
"Title R",
|
||||
"Title G",
|
||||
"Title B",
|
||||
"Side Upper Left R",
|
||||
"Side Upper Left G",
|
||||
"Side Upper Left B",
|
||||
"Side Upper Right R",
|
||||
"Side Upper Right G",
|
||||
"Side Upper Right B",
|
||||
"P1 Start",
|
||||
"P1 L/R Button",
|
||||
"P2 Start",
|
||||
"P2 L/R Button",
|
||||
"Side Lower Left 1 R",
|
||||
"Side Lower Left 1 G",
|
||||
"Side Lower Left 1 B",
|
||||
"Side Lower Left 2 R",
|
||||
"Side Lower Left 2 G",
|
||||
"Side Lower Left 2 B",
|
||||
"Side Lower Left 3 R",
|
||||
"Side Lower Left 3 G",
|
||||
"Side Lower Left 3 B",
|
||||
"Side Lower Right 1 R",
|
||||
"Side Lower Right 1 G",
|
||||
"Side Lower Right 1 B",
|
||||
"Side Lower Right 2 R",
|
||||
"Side Lower Right 2 G",
|
||||
"Side Lower Right 2 B",
|
||||
"Side Lower Right 3 R",
|
||||
"Side Lower Right 3 G",
|
||||
"Side Lower Right 3 B"
|
||||
);
|
||||
}
|
||||
|
||||
return lights;
|
||||
}
|
||||
62
games/dea/io.h
Normal file
62
games/dea/io.h
Normal file
@@ -0,0 +1,62 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include "cfg/api.h"
|
||||
|
||||
namespace games::dea {
|
||||
|
||||
// all buttons in correct order
|
||||
namespace Buttons {
|
||||
enum {
|
||||
Service,
|
||||
Test,
|
||||
P1Start,
|
||||
P1Left,
|
||||
P1Right,
|
||||
P2Start,
|
||||
P2Left,
|
||||
P2Right
|
||||
};
|
||||
}
|
||||
|
||||
// all lights in correct order
|
||||
namespace Lights {
|
||||
enum {
|
||||
TitleR,
|
||||
TitleG,
|
||||
TitleB,
|
||||
SideUpperLeftR,
|
||||
SideUpperLeftG,
|
||||
SideUpperLeftB,
|
||||
SideUpperRightR,
|
||||
SideUpperRightG,
|
||||
SideUpperRightB,
|
||||
P1Start,
|
||||
P1LRButton,
|
||||
P2Start,
|
||||
P2LRButton,
|
||||
SideLowerLeft1R,
|
||||
SideLowerLeft1G,
|
||||
SideLowerLeft1B,
|
||||
SideLowerLeft2R,
|
||||
SideLowerLeft2G,
|
||||
SideLowerLeft2B,
|
||||
SideLowerLeft3R,
|
||||
SideLowerLeft3G,
|
||||
SideLowerLeft3B,
|
||||
SideLowerRight1R,
|
||||
SideLowerRight1G,
|
||||
SideLowerRight1B,
|
||||
SideLowerRight2R,
|
||||
SideLowerRight2G,
|
||||
SideLowerRight2B,
|
||||
SideLowerRight3R,
|
||||
SideLowerRight3G,
|
||||
SideLowerRight3B,
|
||||
};
|
||||
}
|
||||
|
||||
// getters
|
||||
std::vector<Button> &get_buttons();
|
||||
std::vector<Light> &get_lights();
|
||||
}
|
||||
Reference in New Issue
Block a user