-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
sys_memery fix #5338
sys_memery fix #5338
Conversation
Fixes the following issue with Ridge Racer 7 [NPUB30457] (and other games that try to call those functions with nullptr as alloc_addr)
|
@@ -1,4 +1,4 @@ | |||
#include "stdafx.h" | |||
#include "stdafx.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is BOM necessary here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This project uses BOM for some reason
Line 4 in 0e0a82e
charset = utf-8-bom |
It's stupid, but that's what the project has decided to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was decided after multiple contributors had issues where an editor or the compiler didn't auto-detect UTF-8 properly and broke stuff such as log messages, and were painful to fix.
BOM was added since it doesn't really hurt anybody (other than the diffs being annoying for a while) and ensures this never happens again no matter what fancy editor or compiler people decide to use.
…cate_from_container
Add null alloc_addr checks to sys_memory_allocate and sys_memory_allocate_from_container.
testcase
Some game was doing this according to ani.