#include "GameCore.h"

static int WINDOW_HAS_FOCUS = false;

void GameError (char* Error)
{
	OutputDebugString( Error );
	OutputDebugString( "\n" );
}

void GameError (const char* Error)
{
	OutputDebugString( Error );
	OutputDebugString( "\n" );
}

void GameError( int errorOutput ) {
	char error[ 256 ];
	ZeroMemory( &error, sizeof( error ) );
	itoa( errorOutput, error, 10 );
	OutputDebugString( error );
}

void GameError( const char* errorString, int errorOutput ) {
	char error[ 256 ];
	ZeroMemory( &error, sizeof( error ) );
	itoa( errorOutput, error, 10 );
	OutputDebugString( errorString );
	OutputDebugString( " " );
	OutputDebugString( error );
	OutputDebugString( "\n" );
}

int getWindowFocus() {
	return WINDOW_HAS_FOCUS;
}

void setWindowFocus( int focus ) {
	WINDOW_HAS_FOCUS = focus;
}
