Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class bf_write
- {
- public:
- void WriteShort( int val )
- {
- typedef void ( __thiscall* WriteShortFn )( void*, int );
- static WriteShortFn pFunction = nullptr;
- if( !pFunction )
- {
- pFunction = ( WriteShortFn )Framework::Scan( "engine.dll", "8B 44 24 04 6A 10 50 E8 ?? ?? ?? ?? C2 04 00" ); // 0x202268E0
- if( !pFunction )
- return;
- }
- pFunction( this, val );
- }
- bool WriteBytes( const void* pBuf, int nBytes )
- {
- typedef void ( __thiscall* WriteBytesFn )( void*, const void*, int );
- static WriteBytesFn pFunction = nullptr;
- if( !pFunction )
- {
- pFunction = ( WriteBytesFn )Framework::Scan( "engine.dll", "8B 44 24 08 8D 14 C5 ?? ?? ?? ?? 89 54 24 08 E9" ); // 0x20225670
- if( !pFunction )
- return false;
- }
- pFunction( this, pBuf, nBytes );
- }
- public:
- unsigned char* m_pData;
- int m_nDataBytes;
- int m_nDataBits;
- int m_iCurBit;
- bool m_bOverflow;
- bool m_bAssertOnOverflow;
- const char* m_pDebugName;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement