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
Graphic pack parser incorrectly parses commas in strings #1200
Labels
bug
Something isn't working
Comments
I've looked at the code. Cemu/src/Cemu/PPCAssembler/ppcAssembler.cpp Lines 2419 to 2470 in cf41c3b
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current Behavior
In graphic pack patches, when defining a string:
.string "Foo ,"
Cemu's parser fails to accept commas as part of the string, which causes this error at runtime:
[20:09:22.680] Line X: Error in assembler: String constants must end with a quotation mark. Example: "text"
This is a problem when writing patches for games such as Splatoon, which have enums hard coded as string literals that get parsed at runtime, requiring the user to use commas as part of the string.
Expected Behavior
The string should be sanitized properly and consider the comma or any other reasonable character as part of the string.
Steps to Reproduce
Define a string with a comma.
System Info (Optional)
No response
Emulation Settings (Optional)
No response
Logs (Optional)
No response
The text was updated successfully, but these errors were encountered: