launcher/launcher.cpp
const char * GetExecutableFilename()
{
#ifdef _PS3
	return "csgo";
#else // !_PS3
	char exepath[MAX_PATH];
	static char filename[MAX_PATH];

#ifdef WIN32
	filename[0] = 0;
	if ( GetExecutableName( exepath, sizeof( exepath ) ) )
	{
		_splitpath
		( 
			exepath, // Input
			NULL,  // drive
			NULL,  // dir
			filename, // filename
			NULL // extension
		);
	}

	Q_strlower( filename );
#else
	filename[0] = 0;
#endif
	return filename;
#endif // _PS3
}
//-----------------------------------------------------------------------------
// Purpose: Return the executable name
// Output : char
//-----------------------------------------------------------------------------
Return the executable name
Output : char
Return the executable name Output : char
const char * GetExecutableFilename()
{
#ifdef _PS3
	return "csgo";
#else 
	char exepath[MAX_PATH];
	static char filename[MAX_PATH];
#ifdef WIN32
	filename[0] = 0;
	if ( GetExecutableName( exepath, sizeof( exepath ) ) )
	{
		_splitpath
		( 
			exepath, 
			NULL,  
			NULL,  
			filename, 
			NULL 
		);
	}
	Q_strlower( filename );
#else
	filename[0] = 0;
#endif
	return filename;
#endif 
}
const char * GetExecutableFilename ( ) { #ifdef _PS3 return " " ; #else char exepath [ MAX_PATH ] ; static char filename [ MAX_PATH ] ; #ifdef WIN32 filename [ 0 ] = 0 ; if ( GetExecutableName ( exepath , sizeof ( exepath ) ) ) { _splitpath ( exepath , NULL , NULL , filename , NULL ) ; } Q_strlower ( filename ) ; #else filename [ 0 ] = 0 ; #endif return filename ; #endif }
Purpose: Return the executable name
Output : char
Purpose : Return the executable name Output : char
// !_PS3 // Input // drive // dir // filename // extension // _PS3