-
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
Conversation
@@ -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 comment
The 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 comment
The 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 comment
The 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 comment
The 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)
@@ -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) |
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?
#77 needs to be addressed before this can be merged. |
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.
PR is inside joke.
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.
Yep still an inside joke. @Berthalamew needs to stop putting it on his CV.
But I could just merged it 🤔 |
Fine I'll do it myself
(put "remove_data_size_limit = true" inside the H2Codez.conf to remove the max data size limit in its entirety)