Skip to content
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

Limit the size of the profiles exported as a code to 20MB #1245

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

anttimaki
Copy link
Collaborator

image

Allows pretty printing file sizes for human digestion.
If the zipped payload of the profile exceeds the limit, the process is
cancelled before the B64 encoding and upload steps, and an error modal
is shown to the user.

The size is limited firstly because there shouldn't be need for larger
profiles, and exceeding the limit is a symptom of something being
wrong, e.g. unintended contents in the BepInEx config folder.

Second reason is that too large profiles will crash on the B64 encoding
step on TSMM, which uses different file operation implementation than
r2mm.
Copy link
Collaborator

@MythicManiac MythicManiac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@MythicManiac MythicManiac merged commit 24f760e into develop Mar 5, 2024
7 checks passed
@MythicManiac MythicManiac deleted the code-export-size-limit branch March 5, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants