Let us start here, from square one. No, from Zero!

This commit is contained in:
smpn2
2022-09-30 22:45:51 +09:00
parent 14215af0d1
commit b7a60638a4
1005 changed files with 303069 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
#include "bc.h"
#include "hooks/setupapihook.h"
#include "util/libutils.h"
#include "acio2emu/handle.h"
#include "acioemu/handle.h"
#include "node.h"
namespace games::bc {
void BCGame::attach() {
Game::attach();
setupapihook_init(libutils::load_library("libaio.dll"));
setupapihook_add({
{ 0, 0, 0, 0, },
"",
"USB\\VID_1CCF&PID_8050\\0000",
{},
"COM3",
});
auto iob = new acio2emu::IOBHandle(L"COM3");
iob->register_node(std::make_unique<TBSNode>());
devicehook_init();
devicehook_add(iob);
devicehook_add(new acioemu::ACIOHandle(L"COM1"));
}
void BCGame::detach() {
Game::detach();
devicehook_dispose();
}
}