mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
3fec377e96
--------- Co-authored-by: mat <26722564+matcool@users.noreply.github.com>
21 lines
583 B
C++
21 lines
583 B
C++
#pragma once
|
|
|
|
#include <Geode/platform/platform.hpp>
|
|
#include <tulip/TulipHook.hpp>
|
|
|
|
namespace geode::hook {
|
|
/**
|
|
* Create a calling convention wrapper for a function.
|
|
*/
|
|
GEODE_DLL tulip::hook::Result<void*> createWrapper(
|
|
void* address,
|
|
tulip::hook::WrapperMetadata const& metadata
|
|
) noexcept;
|
|
|
|
/**
|
|
* Create an abstract calling convention handler for TulipHook
|
|
*/
|
|
GEODE_DLL std::shared_ptr<tulip::hook::CallingConvention> createConvention(
|
|
tulip::hook::TulipConvention convention
|
|
) noexcept;
|
|
}
|