Telkin
Loading...
Searching...
No Matches
tk Namespace Reference

Namespaces

namespace  internal
namespace  ppc

Classes

struct  BranchHook
struct  ModInfo
struct  NullHook
struct  PatchHook
struct  PointerHook

Typedefs

using startfunc_t = void (*)(u32, u32)
using getTitleID_t = u64 (*)()
using getModID_t = const char* (*)()
using getModuleType_t = ModuleType (*)()
using getDependencyManifest_t = const u8* (*)()
using writefunc_t = void (*)(const void* dst, const void* src, u32 len)

Enumerations

enum class  DataMagic : u32 { BranchHook = 0x01C0FFEE , PointerHook = 0x02C0FFEE , PatchHook = 0x03C0FFEE , NullHook = 0x04C0FFEE }
enum class  BranchType : u32 { b , bl }
enum class  ModuleType : u32 {
  Null , Special , CoreMod , CoreAPI ,
  Standard
}

Functions

const std::span< ModInfogetMods ()
bool isModLoaded (const char *id)
template<typename... Args>
void print (internal::LogFormat format, Args &&... args)
template<typename... Args>
void println (internal::LogFormat format, Args &&... args)
template<typename... Args>
void fatal (internal::LogFormat format, Args &&... args)
bool isCemu ()

Variables

constexpr int cHookSize = 0x20
writefunc_t privilegedWrite

Typedef Documentation

◆ startfunc_t

using tk::startfunc_t = void (*)(u32, u32)

◆ getTitleID_t

using tk::getTitleID_t = u64 (*)()

◆ getModID_t

using tk::getModID_t = const char* (*)()

◆ getModuleType_t

◆ getDependencyManifest_t

using tk::getDependencyManifest_t = const u8* (*)()

◆ writefunc_t

using tk::writefunc_t = void (*)(const void* dst, const void* src, u32 len)

Enumeration Type Documentation

◆ DataMagic

enum class tk::DataMagic : u32
strong
Enumerator
BranchHook 
PointerHook 
PatchHook 
NullHook 

◆ BranchType

enum class tk::BranchType : u32
strong
Enumerator
bl 

◆ ModuleType

enum class tk::ModuleType : u32
strong
Enumerator
Null 
Special 
CoreMod 
CoreAPI 
Standard 

Function Documentation

◆ getMods()

const std::span< ModInfo > tk::getMods ( )

◆ isModLoaded()

bool tk::isModLoaded ( const char * id)

◆ print()

template<typename... Args>
void tk::print ( internal::LogFormat format,
Args &&... args )

◆ println()

template<typename... Args>
void tk::println ( internal::LogFormat format,
Args &&... args )

◆ fatal()

template<typename... Args>
void tk::fatal ( internal::LogFormat format,
Args &&... args )

◆ isCemu()

bool tk::isCemu ( )
nodiscard

Variable Documentation

◆ cHookSize

int tk::cHookSize = 0x20
constexpr

◆ privilegedWrite

writefunc_t tk::privilegedWrite
extern