mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 18:10:54 +01:00
24 lines
475 B
C
24 lines
475 B
C
|
|
// Copyright (C) 2021 TiltedPhoques SRL.
|
||
|
|
// For licensing information see LICENSE at the root of this distribution.
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <cstdint>
|
||
|
|
|
||
|
|
namespace script_extender
|
||
|
|
{
|
||
|
|
class SEMemoryBlock final
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
SEMemoryBlock();
|
||
|
|
~SEMemoryBlock();
|
||
|
|
|
||
|
|
inline bool Good() { return m_pBlock; }
|
||
|
|
|
||
|
|
inline uintptr_t LastRip() const { return m_lastCanidate; }
|
||
|
|
|
||
|
|
private:
|
||
|
|
void* m_pBlock = nullptr;
|
||
|
|
uintptr_t m_lastCanidate = 0;
|
||
|
|
};
|
||
|
|
} // namespace script_extender
|