Update to spice2x-25-04-25 (pre-apply)
> broken commit
This commit is contained in:
+17
-1
@@ -3,12 +3,15 @@
|
||||
#define _WIN32_WINNT 0x0601
|
||||
|
||||
#include "nost.h"
|
||||
#include "poke.h"
|
||||
#include "hooks/setupapihook.h"
|
||||
#include "misc/wintouchemu.h"
|
||||
#include "avs/game.h"
|
||||
|
||||
namespace games::nost {
|
||||
|
||||
bool ENABLE_POKE = false;
|
||||
|
||||
NostGame::NostGame() : Game("Nostalgia") {
|
||||
}
|
||||
|
||||
@@ -41,6 +44,19 @@ namespace games::nost {
|
||||
setupapihook_add(touch_settings);
|
||||
|
||||
// custom touch
|
||||
wintouchemu::hook("nostalgia", avs::game::DLL_INSTANCE);
|
||||
// nostalgia crashes if you inject touch events too early
|
||||
wintouchemu::hook("nostalgia", avs::game::DLL_INSTANCE, 20);
|
||||
}
|
||||
|
||||
void NostGame::post_attach() {
|
||||
if (ENABLE_POKE) {
|
||||
poke::enable();
|
||||
}
|
||||
}
|
||||
|
||||
void NostGame::detach() {
|
||||
if (ENABLE_POKE) {
|
||||
poke::disable();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user