This commit is contained in:
nephacks
2025-06-04 03:22:50 +02:00
parent f234f23848
commit f12416cffd
14243 changed files with 6446499 additions and 26 deletions

24
common/ps3/ps3_sn.h Normal file
View File

@@ -0,0 +1,24 @@
//========= Copyright <20> , Valve LLC, All rights reserved. ============
//
// These are the workarounds for snTuner inability to patch prx'es,
// as well as access prx symbols after attaching to a running game
// snTuner functions are exposed through pointers to functions in ELF
//
//////////////////////////////////////////////////////////////////////
#ifndef VALVE_PS3_SN_HDR
#define VALVE_PS3_SN_HDR
// Currently these are only defined on PS3, but there's no harm in declaring them on other platforms
#ifdef _PS3
extern "C" void(*g_pfnPushMarker)( const char * pName );
extern "C" void(*g_pfnPopMarker)();
extern "C" void(*g_pfnSwapBufferMarker)();
#else
inline void g_pfnPushMarker( const char * pName ){}
inline void g_pfnPopMarker(){}
inline void g_pfnSwapBufferMarker(){}
#endif
#endif