mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
loveplus: enable cam access (#318)
## Link to GitHub Issue, if one exists #316 (this does not fix the issue!) ## Description of change Add an option to omit `-noCamera` option. Doing so allows the game to boot and search for a compatible camera using KS API, but will likely fail since we don't know what cameras are compatible. You end up with a camera error during boot, which can be ignored by flipping a switch in the test menu to disable the camera. No hooks are currently done to make the camera work! ## Testing Tested to see that turning this on triggers the camera error. No known camera at the moment.
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
|
||||
namespace games::loveplus {
|
||||
|
||||
bool CAMERA_ENABLE = false;
|
||||
|
||||
// touch stuff
|
||||
static bool TOUCH_ENABLE = false;
|
||||
static bool TOUCH_ATTACHED = false;
|
||||
@@ -117,9 +119,13 @@ namespace games::loveplus {
|
||||
}
|
||||
|
||||
static LPSTR __stdcall GetCommandLineA_hook() {
|
||||
static std::string lp_args = "-win -noCamera -noWatchDog -noIOError -noIrda -notarget";
|
||||
|
||||
return lp_args.data();
|
||||
static std::string lp_args = "-win -noWatchDog -noIOError -noIrda -notarget";
|
||||
static std::string lp_args_nocamera = lp_args + " -noCamera";
|
||||
if (CAMERA_ENABLE) {
|
||||
return lp_args.data();
|
||||
} else {
|
||||
return lp_args_nocamera.data();
|
||||
}
|
||||
}
|
||||
|
||||
LovePlusGame::LovePlusGame() : Game("LovePlus") {
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
namespace games::loveplus {
|
||||
|
||||
extern bool CAMERA_ENABLE;
|
||||
|
||||
// touch stuff
|
||||
void touch_update();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user