-
Notifications
You must be signed in to change notification settings - Fork 84
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
Implement GetUGCDetails #104
Conversation
wait what's causing seg fault? the pointer thing or the image path? |
I'm not sure, I haven't reverse engineered engine.so, it happens inside it (at 0x0051780c).
|
Hmm can't reproduce on Windows, did this happen when you integrated #103 ? or was it happening before it ? on Linux it must be if this seg fault started happening after you integrated #103 , revert that line and let me know. |
The segfault is with @universal963 change, it works fine without it. Never tried without #103, but I doubt that interact with that, it's just not liking the |
I've checked it again, the object
|
f7ab6cf
to
3d14bbc
Compare
Co-authored-by: a <e>
This is needed in Half-Life 2 to get Workshop mods image.
@universal963 recommended the following change to avoid memory leak in case API consumer doesn't free ppchName.
I don't entirely agree, as this could result in dangling pointers. However, that seems to be how the Steam API works. I couldn't find any documentation stating whether the API consumer should copy the string or free it. I tried making that change with HL2, but it caused a segmentation fault in engine.so within SteamCallResults::runCallResults. We also sometimes get logs like
[CWorkshopImage] Unknown image file type... UGC=0000000000000004.
just before the segmentation fault.