Skip to content

fix: delay crash writer initialization#613

Open
EL-File4138 wants to merge 1 commit into
TypesettingTools:masterfrom
EL-File4138:fix-portable-crashdump-path
Open

fix: delay crash writer initialization#613
EL-File4138 wants to merge 1 commit into
TypesettingTools:masterfrom
EL-File4138:fix-portable-crashdump-path

Conversation

@EL-File4138

Copy link
Copy Markdown
Contributor

Delay crash writer initialization until after Windows portable configuration detection has completed.

On Windows, portable mode is detected by loading ?data/config.json, then remapping ?user and ?local to ?data. The crash writer was initialized before that remap, which created %APPDATA%\Aegisub\crashdumps even for portable installs. If portable config was found, it was then initialized again under the portable directory.

This change initializes the crash writer once, after the portable path decision, so it uses the final ?user path.

Fix #612 .

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.

Maybe I've found a bug

1 participant