mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2024-12-02 18:17:18 +01:00
hooks f2, fex, fst: Bugfix parsing of 64-bit hex string
strtol returns a 32-bit number whereas strtoll (note two ll at the end) gives us a 64-bit number
This commit is contained in:
parent
eb73174f0d
commit
a7535a5aeb
@ -177,7 +177,7 @@ bool f2hook_options_init(int argc, char** argv, struct f2hook_options* options)
|
||||
options->patch.main_loop.x11_input_handler_api_lib =
|
||||
util_options_get_str(options_opt, F2HOOK_OPTIONS_STR_PATCH_HOOK_MAIN_LOOP_X11_INPUT_HANDLER);
|
||||
options->patch.net.server = util_options_get_str(options_opt, F2HOOK_OPTIONS_STR_PATCH_NET_PROFILE_SERVER);
|
||||
options->patch.net.machine_id = strtoul(
|
||||
options->patch.net.machine_id = strtoull(
|
||||
util_options_get_str(options_opt, F2HOOK_OPTIONS_STR_PATCH_NET_PROFILE_MACHINE_ID),
|
||||
NULL,
|
||||
16);
|
||||
|
@ -177,7 +177,7 @@ bool fexhook_options_init(int argc, char** argv, struct fexhook_options* options
|
||||
options->patch.main_loop.x11_input_handler_api_lib =
|
||||
util_options_get_str(options_opt, FEXHOOK_OPTIONS_STR_PATCH_HOOK_MAIN_LOOP_X11_INPUT_HANDLER);
|
||||
options->patch.net.server = util_options_get_str(options_opt, FEXHOOK_OPTIONS_STR_PATCH_NET_PROFILE_SERVER);
|
||||
options->patch.net.machine_id = strtoul(
|
||||
options->patch.net.machine_id = strtoull(
|
||||
util_options_get_str(options_opt, FEXHOOK_OPTIONS_STR_PATCH_NET_PROFILE_MACHINE_ID),
|
||||
NULL,
|
||||
16);
|
||||
|
@ -177,7 +177,7 @@ bool fsthook_options_init(int argc, char** argv, struct fsthook_options* options
|
||||
options->patch.main_loop.x11_input_handler_api_lib =
|
||||
util_options_get_str(options_opt, FSTHOOK_OPTIONS_STR_PATCH_HOOK_MAIN_LOOP_X11_INPUT_HANDLER);
|
||||
options->patch.net.server = util_options_get_str(options_opt, FSTHOOK_OPTIONS_STR_PATCH_NET_PROFILE_SERVER);
|
||||
options->patch.net.machine_id = strtoul(
|
||||
options->patch.net.machine_id = strtoull(
|
||||
util_options_get_str(options_opt, FSTHOOK_OPTIONS_STR_PATCH_NET_PROFILE_MACHINE_ID),
|
||||
NULL,
|
||||
16);
|
||||
|
Loading…
Reference in New Issue
Block a user