Skip to content

Fix crashing when reading audio samples with wide characters #841

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

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

ASpoonPlaysGames
Copy link
Contributor

Closes #840

Test using https://thunderstore.io/package/download/Xiaobbuguai/BlueArchivesBeautificationPack/1.1.0/ (the updated version fixed the crashing by renaming the files) and booting the game to the main menu. Might also be worth testing that the audio overrides still work as badly as before.

The external console (and possible also the in-game console) will likely log these incorrectly, as they are wide chars but our logging eventually goes through to WriteConsoleA which doesn't support wide chars. Fixing this would take a bit more effort and is out of scope here.

Previous fixes for wide file paths didn't log through spdlog or anything, so they didn't end up needing to enable SPDLOG_WCHAR_TO_UTF8_SUPPORT

@github-actions github-actions bot added needs testing Changes from the PR still need to be tested needs code review Changes from PR still need to be reviewed in code labels Mar 15, 2025
Copy link
Member

@NachosChipeados NachosChipeados left a comment

Choose a reason for hiding this comment

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

Works fine for me 👍 the sounds also play properly in-game

Before:

2025-03-15.11-44-04.mp4

After:

2025-03-15.11-44-36.mp4

@ASpoonPlaysGames ASpoonPlaysGames removed the needs testing Changes from the PR still need to be tested label Mar 15, 2025
Copy link
Member

@Alystrasz Alystrasz left a comment

Choose a reason for hiding this comment

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

Proposed change looks good to me.

@Alystrasz Alystrasz added READY TO MERGE This mergeable right now and removed needs code review Changes from PR still need to be reviewed in code labels Mar 17, 2025
@Alystrasz Alystrasz merged commit 4574782 into R2Northstar:main Apr 10, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
READY TO MERGE This mergeable right now
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Audio files with non-ascii characters crash game
3 participants