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

Applying a Regex to trim out the dirty string patterns instead #235

Merged
merged 4 commits into from
Jun 1, 2021

Conversation

toebeann
Copy link
Contributor

@toebeann toebeann commented May 29, 2021

Identified a bug with the patch to MirrorInternalLogs:

When a log coming from a BepInEx.Logging.ManualLogSource comes in directly after one of the mid string trims applied in the patch (e.g. "(Filename: xdgodkdgx)", the patch unfortunately appears to trim both the intended line + the line coming from the ManualLogSource, and leaves an empty line behind.

Evidence of this occurring is in the Fast Loading Screen mod. The current release version of QMM for SN.STABLE leaves behind a large amount of empty lines after loading into the game, and Fast Loading Screen's logs are absent.

With the modifications I have made to this patch - which use a Regex to strip out occurrences of the intended string - results in the intended behaviour: the garbage line is removed, but no other logs are affected. I have attached an SN.STABLE build of QMM installer from this branch for your testing.

QModManager_4.1.3_Subnautica_Setup.exe.zip

@toebeann toebeann self-assigned this May 29, 2021
@toebeann toebeann changed the base branch from master to Dev May 29, 2021 23:15
@toebeann toebeann requested a review from PrimeSonic May 31, 2021 22:29
@toebeann toebeann merged commit 1b93bd3 into Dev Jun 1, 2021
@toebeann toebeann deleted the fix-mirrorinternallogs-patch branch June 1, 2021 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants
  翻译: