mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2026-09-15 11:55:10 -05:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8282a9f3f4 | ||
|
|
2c00da6232 |
3
dist/iidx/iidxhook-09.conf
vendored
3
dist/iidx/iidxhook-09.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Magnetic card type, format XXX, 3 digit string (supports: C02, D01, E11, ECO)
|
||||
eamuse.card_type=C02
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-10.conf
vendored
3
dist/iidx/iidxhook-10.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Magnetic card type, format XXX, 3 digit string (supports: C02, D01, E11, ECO)
|
||||
eamuse.card_type=D01
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-11.conf
vendored
3
dist/iidx/iidxhook-11.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Magnetic card type, format XXX, 3 digit string (supports: C02, D01, E11, ECO)
|
||||
eamuse.card_type=E11
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-12.conf
vendored
3
dist/iidx/iidxhook-12.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Magnetic card type, format XXX, 3 digit string (supports: C02, D01, E11, ECO)
|
||||
eamuse.card_type=ECO
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-13.conf
vendored
3
dist/iidx/iidxhook-13.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Magnetic card type, format XXX, 3 digit string (supports: C02, D01, E11, ECO)
|
||||
eamuse.card_type=C02
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-14.conf
vendored
3
dist/iidx/iidxhook-14.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# URL (e.g. http://my.eamuse.server:80/whatever) or IPV4 (e.g. 127.0.0.1:80) of the target eamuse server. The port is optional but defaults to 80.
|
||||
eamuse.server=localhost:80
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-15.conf
vendored
3
dist/iidx/iidxhook-15.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# URL (e.g. http://my.eamuse.server:80/whatever) or IPV4 (e.g. 127.0.0.1:80) of the target eamuse server. The port is optional but defaults to 80.
|
||||
eamuse.server=localhost:80
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-16.conf
vendored
3
dist/iidx/iidxhook-16.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# URL (e.g. http://my.eamuse.server:80/whatever) or IPV4 (e.g. 127.0.0.1:80) of the target eamuse server. The port is optional but defaults to 80.
|
||||
eamuse.server=localhost:80
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-17.conf
vendored
3
dist/iidx/iidxhook-17.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# URL (e.g. http://my.eamuse.server:80/whatever) or IPV4 (e.g. 127.0.0.1:80) of the target eamuse server. The port is optional but defaults to 80.
|
||||
eamuse.server=localhost:80
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-18-cn.conf
vendored
3
dist/iidx/iidxhook-18-cn.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# PCBID
|
||||
eamuse.pcbid=0101020304050607086F
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-18.conf
vendored
3
dist/iidx/iidxhook-18.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Run the game in a framed window (requires windowed option)
|
||||
gfx.framed=false
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-19.conf
vendored
3
dist/iidx/iidxhook-19.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Run the game in a framed window (requires windowed option)
|
||||
gfx.framed=false
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-20-cn.conf
vendored
3
dist/iidx/iidxhook-20-cn.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# PCBID
|
||||
eamuse.pcbid=0101020304050607086F
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-20.conf
vendored
3
dist/iidx/iidxhook-20.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Run the game in a framed window (requires windowed option)
|
||||
gfx.framed=false
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-21.conf
vendored
3
dist/iidx/iidxhook-21.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Run the game in a framed window (requires windowed option)
|
||||
gfx.framed=false
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-22.conf
vendored
3
dist/iidx/iidxhook-22.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Run the game in a framed window (requires windowed option)
|
||||
gfx.framed=false
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-23.conf
vendored
3
dist/iidx/iidxhook-23.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Run the game in a framed window (requires windowed option)
|
||||
gfx.framed=false
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-24.conf
vendored
3
dist/iidx/iidxhook-24.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Run the game in a framed window (requires windowed option)
|
||||
gfx.framed=false
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-25.conf
vendored
3
dist/iidx/iidxhook-25.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Run the game in a framed window (requires windowed option)
|
||||
gfx.framed=false
|
||||
|
||||
|
||||
3
dist/iidx/iidxhook-26.conf
vendored
3
dist/iidx/iidxhook-26.conf
vendored
@@ -1,6 +1,3 @@
|
||||
# Enable frame performance graph overlay
|
||||
debug.enable_frame_perf_graph=false
|
||||
|
||||
# Run the game in a framed window (requires windowed option)
|
||||
gfx.framed=false
|
||||
|
||||
|
||||
@@ -15,21 +15,12 @@ static const size_t apiset_prefix_len = sizeof(apiset_prefix) - 1;
|
||||
static void hook_table_apply_to_all(
|
||||
const char *depname, const struct hook_symbol *syms, size_t nsyms);
|
||||
|
||||
static void hook_table_revert_to_all(
|
||||
const char *depname, const struct hook_symbol *syms, size_t nsyms);
|
||||
|
||||
static void hook_table_apply_to_iid(
|
||||
HMODULE target,
|
||||
const pe_iid_t *iid,
|
||||
const struct hook_symbol *syms,
|
||||
size_t nsyms);
|
||||
|
||||
static void hook_table_revert_to_iid(
|
||||
HMODULE target,
|
||||
const pe_iid_t *iid,
|
||||
const struct hook_symbol *syms,
|
||||
size_t nsyms);
|
||||
|
||||
static bool hook_table_match_module(
|
||||
HMODULE target, const char *iid_name, const char *depname);
|
||||
|
||||
@@ -53,23 +44,6 @@ static void hook_table_apply_to_all(
|
||||
}
|
||||
}
|
||||
|
||||
static void hook_table_revert_to_all(
|
||||
const char *depname, const struct hook_symbol *syms, size_t nsyms)
|
||||
{
|
||||
const peb_dll_t *dll;
|
||||
HMODULE pe;
|
||||
|
||||
for (dll = peb_dll_get_first(); dll != NULL; dll = peb_dll_get_next(dll)) {
|
||||
pe = peb_dll_get_base(dll);
|
||||
|
||||
if (pe == NULL) {
|
||||
continue; /* ?? Happens sometimes. */
|
||||
}
|
||||
|
||||
hook_table_revert(pe, depname, syms, nsyms);
|
||||
}
|
||||
}
|
||||
|
||||
void hook_table_apply(
|
||||
HMODULE target,
|
||||
const char *depname,
|
||||
@@ -99,35 +73,6 @@ void hook_table_apply(
|
||||
}
|
||||
}
|
||||
|
||||
void hook_table_revert(
|
||||
HMODULE target,
|
||||
const char *depname,
|
||||
const struct hook_symbol *syms,
|
||||
size_t nsyms)
|
||||
{
|
||||
const pe_iid_t *iid;
|
||||
const char *iid_name;
|
||||
|
||||
assert(depname != NULL);
|
||||
assert(syms != NULL || nsyms == 0);
|
||||
|
||||
if (target == NULL) {
|
||||
/* Call out, which will then call us back repeatedly. Awkward, but
|
||||
viewed from the outside it's good for usability. */
|
||||
|
||||
hook_table_revert_to_all(depname, syms, nsyms);
|
||||
} else {
|
||||
for (iid = pe_iid_get_first(target); iid != NULL;
|
||||
iid = pe_iid_get_next(target, iid)) {
|
||||
iid_name = pe_iid_get_name(target, iid);
|
||||
|
||||
if (hook_table_match_module(target, iid_name, depname)) {
|
||||
hook_table_revert_to_iid(target, iid, syms, nsyms);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void hook_table_apply_to_iid(
|
||||
HMODULE target,
|
||||
const pe_iid_t *iid,
|
||||
@@ -156,34 +101,6 @@ static void hook_table_apply_to_iid(
|
||||
}
|
||||
}
|
||||
|
||||
static void hook_table_revert_to_iid(
|
||||
HMODULE target,
|
||||
const pe_iid_t *iid,
|
||||
const struct hook_symbol *syms,
|
||||
size_t nsyms)
|
||||
{
|
||||
struct pe_iat_entry iate;
|
||||
size_t i;
|
||||
size_t j;
|
||||
const struct hook_symbol *sym;
|
||||
|
||||
i = 0;
|
||||
|
||||
while (pe_iid_get_iat_entry(target, iid, i++, &iate) == S_OK) {
|
||||
for (j = 0; j < nsyms; j++) {
|
||||
sym = &syms[j];
|
||||
|
||||
if (hook_table_match_proc(&iate, sym)) {
|
||||
// Only revert-able if the original pointer was stored
|
||||
// previously
|
||||
if (sym->link != NULL && *sym->link != NULL) {
|
||||
pe_patch(iate.ppointer, sym->link, sizeof(*sym->link));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static bool hook_table_match_module(
|
||||
HMODULE target, const char *iid_name, const char *depname)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user