diff --git a/Makefile b/Makefile index 5ca8a16..57e5931 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,7 @@ dist-no-7z: options ${OUT} patches cp ${TARGET}/${OUT}.dll out/ mv out/${OUT}.dll out/bnusio.dll cp ${TARGET}/patches.*.dll out/plugins + cp ${TARGET}/amauth.dll out/plugins cp -r dist/* out/ .PHONY: dist diff --git a/dist/config.toml b/dist/config.toml index 0e5821c..16df004 100644 --- a/dist/config.toml +++ b/dist/config.toml @@ -2,7 +2,7 @@ drumMax = 20000 drumMin = 10000 -server = "vsapi.taiko-p.jp" +server = "https://divamodarchive.com" accessCode1 = 1 chipId1 = 1 diff --git a/patches/amauth/dllmain.cpp b/patches/amauth/dllmain.cpp index 0eba59d..05d80c0 100644 --- a/patches/amauth/dllmain.cpp +++ b/patches/amauth/dllmain.cpp @@ -11,7 +11,7 @@ DWORD reg = 0; char server_ip[0x10]; -char *server_hostname; +char *server_hostname = (char *)"https://divamodarchive.com"; DEFINE_GUID (IID_CAuthFactory, 0x4603BB03, 0x058D, 0x43D9, 0xB9, 0x6F, 0x63, 0x9B, 0xE9, 0x08, 0xC1, 0xED); DEFINE_GUID (IID_CAuth, 0x045A5150, 0xD2B3, 0x4590, 0xA3, 0x8B, 0xC1, 0x15, 0x86, 0x78, 0xE1, 0xAC); diff --git a/src/dllmain.c b/src/dllmain.c index 693547b..f0fcda3 100644 --- a/src/dllmain.c +++ b/src/dllmain.c @@ -12,7 +12,7 @@ char accessCode2[21] = "00000000000000000002"; char chipId1[33] = "00000000000000000000000000000001"; char chipId2[33] = "00000000000000000000000000000002"; -char *server = ""; +char *server = "https://divamodarchive.com"; typedef i32 (*callbackAttach) (i32, i32, i32 *); typedef void (*callbackTouch) (i32, i32, u8[168], u64); @@ -156,8 +156,8 @@ i64 __stdcall bnusio_Close () { swprintf (buf, 128, L"Failed to load plugin %d", GetLastError ()); MessageBoxW (NULL, buf, fd.cFileName, MB_ICONERROR); } else { - FARPROC initEvent = GetProcAddress (hModule, "Exit"); - if (initEvent) ((event *)initEvent) (); + FARPROC exitEvent = GetProcAddress (hModule, "Exit"); + if (exitEvent) ((event *)exitEvent) (); } } while (FindNextFileW (hFind, &fd)); FindClose (hFind);