mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Remove #ifdefs for USE_VFS
This commit is contained in:
@@ -62,30 +62,10 @@ static struct LiveLog {
|
||||
|
||||
void LiveMessage( CHAR8 *strMessage)
|
||||
{
|
||||
#ifndef USE_VFS
|
||||
FILE *OutFile;
|
||||
|
||||
if ((OutFile = fopen("Log.txt", "a+t")) != NULL)
|
||||
{
|
||||
fprintf(OutFile, "%s\n", strMessage);
|
||||
fclose(OutFile);
|
||||
}
|
||||
#else
|
||||
SGP_LOG(s_LiveLog.id, strMessage);
|
||||
#endif
|
||||
}
|
||||
void MPDebugMsg( CHAR8 *strMessage)
|
||||
{
|
||||
#ifndef USE_VFS
|
||||
FILE *OutFile;
|
||||
|
||||
if ((OutFile = fopen("MPDebug.txt", "a+t")) != NULL)
|
||||
{
|
||||
fprintf(OutFile, "%s\n", strMessage);
|
||||
fclose(OutFile);
|
||||
}
|
||||
#else
|
||||
static vfs::Log& mpMsg = *vfs::Log::create(L"MPDebug.txt", true);
|
||||
mpMsg << strMessage << vfs::Log::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user