mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-12 14:37:15 +00:00
Remove WinAPI types from console utility helpers
This commit is contained in:
parent
ce4cb8ea70
commit
60790a86af
|
|
@ -7,12 +7,12 @@
|
|||
// Desc: Internal helper function
|
||||
//--------------------------------------------------------------------------------------
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
static VOID DebugSpewV( const CHAR* strFormat, va_list pArgList )
|
||||
static void DebugSpewV(const char* strFormat, va_list pArgList)
|
||||
{
|
||||
#if defined __PS3__ || defined __ORBIS__ || defined __PSVITA__ || defined(__linux__)
|
||||
assert(0);
|
||||
#else
|
||||
CHAR str[2048];
|
||||
char str[2048];
|
||||
// Use the secure CRT to avoid buffer overruns. Specify a count of
|
||||
// _TRUNCATE so that too long strings will be silently truncated
|
||||
// rather than triggering an error.
|
||||
|
|
@ -27,9 +27,9 @@ static VOID DebugSpewV( const CHAR* strFormat, va_list pArgList )
|
|||
// Desc: Prints formatted debug spew
|
||||
//--------------------------------------------------------------------------------------
|
||||
#ifdef _Printf_format_string_ // VC++ 2008 and later support this annotation
|
||||
VOID CDECL DebugSpew( _In_z_ _Printf_format_string_ const CHAR* strFormat, ... )
|
||||
void CDECL DebugSpew(_In_z_ _Printf_format_string_ const char* strFormat, ...)
|
||||
#else
|
||||
VOID CDECL DebugPrintf( const CHAR* strFormat, ... )
|
||||
void CDECL DebugPrintf(const char* strFormat, ...)
|
||||
#endif
|
||||
{
|
||||
#ifndef _CONTENT_PACKAGE
|
||||
|
|
@ -39,4 +39,3 @@ VOID CDECL DebugPrintf( const CHAR* strFormat, ... )
|
|||
va_end( pArgList );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -197,10 +197,10 @@ public:
|
|||
void SetFreezePlayers(bool bVal) { m_bFreezePlayers = bVal; }
|
||||
|
||||
// debug -0 show safe area
|
||||
void ShowSafeArea(BOOL bShow)
|
||||
void ShowSafeArea(bool show)
|
||||
{
|
||||
#ifdef _XBOX
|
||||
CXuiSceneBase::ShowSafeArea( bShow );
|
||||
CXuiSceneBase::ShowSafeArea(show);
|
||||
#endif
|
||||
}
|
||||
// 4J-PB - to capture the social post screenshot
|
||||
|
|
@ -485,7 +485,7 @@ public:
|
|||
|
||||
|
||||
|
||||
static const DWORD m_dwOfferID = 0x00000001;
|
||||
static constexpr unsigned int m_dwOfferID = 0x00000001;
|
||||
|
||||
// timer
|
||||
void InitTime();
|
||||
|
|
|
|||
Loading…
Reference in a new issue