-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"When nobody wants to remove the max data size limit but only increase it" #68
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -363,7 +363,7 @@ char __cdecl tags__fix_corrupt_fields___hook(tag_block_defintions *def, tag_bloc | |
return tags__fix_corrupt_fields_org(def, data, 1); | ||
} | ||
|
||
static void set_tag_data_max_size(size_t limit) | ||
void set_tag_data_max_size(size_t limit) | ||
{ | ||
// error message, check, set to | ||
std::array<size_t, 3> offsets_tool = { 0x5DDD72, 0x5DDEAB, 0x5DDEB6 }; | ||
|
@@ -408,6 +408,12 @@ void H2CommonPatches::Init() | |
|
||
set_tag_data_max_size(0x3000000); | ||
|
||
if (conf.getBoolean("remove_data_size_limit", true)) | ||
{ | ||
set_tag_data_max_size(INT_MAX); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. idk dude INT_MAX might be too large, maybe INT_MAX - 5 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. default to false There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and a setting to set make size would be best, dunno if we have a range limited setting option There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idk if there are no issues with putting the size limit to its max there isn't really a point of putting a setting for how big you want it in (so far I haven't seen any issues when putting it to MAX) |
||
} | ||
|
||
|
||
// hook exception setter | ||
auto SetUnhandledExceptionFilterOrg = SetUnhandledExceptionFilter; | ||
DetourAttach(&(PVOID&)SetUnhandledExceptionFilterOrg, SetUnhandledExceptionFilter_hook); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but like seriously keep the static
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable won't change after putting the option if it's static?