warning: converting to non-pointer type 'procptr32_t {aka long unsigned int}' from NULL [-Wconversion-null]
ql\ql.cpp:87: warning: comparison is always true due to limited range of data type [-Wtype-limits]
sto\sto.cpp:11: error: 'numeric_limits' is not a member of 'std'
Not fixed:
sto\sto.cpp:55: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
This reverts commit e9c558ffdb, reversing
changes made to ca2fd07b90.
This is a quick-fix for crashing PA plugins. The intended change is
still useful and planned to land later.
* Moved some static addresses outside functions for clarity Removed top vectors retrieval which can be problematic and aren't used at all in this game
* Fixed context support
- made the code simplier, less nested in fetch().
- strings are now ensured to be zero-terminated
- replaced calcout() call from trylock() with fetch call that can actually
fail.
- Disabled identity support since it still needs some work.
- Ensure zero termination of string from target process.
- Minimal style issues
- Re-added removed copyright line (IANAL but I don't think these are easily removed. Even with most of the source changed. So better be safe then sorry).
added avatar top vector support
added helpful arrays of bytes in case someone wants to update this plugin faster than me - if necessary, I can record a video-tutorial for this
changed the way trylock function is executed since we don't need all these checks (and important ones are checked in refreshPointers() function anyway)
Supports ingame detection (based on a pointer being NULL or not), reports camera and avatar independent position, front and top vectors.
No support for identities and context yet (might look for them some other time)