part4: adapt codebase to changes in lib/

mostly straightforward except for CVSFile / Filesystem. moved the former
into the newly created latter component. removed VFSUtil entirely (that
functionality is available from lib/file/file_system_util.h)

Xeromyces.cpp: simplify buffer handling since smart pointers are now in
play. also use WriteBuffer instead of membuffer.

This was SVN commit r5519.
This commit is contained in:
janwas
2007-12-20 20:21:45 +00:00
parent 63086f4e26
commit e2eb5b2610
68 changed files with 619 additions and 980 deletions
+6 -14
View File
@@ -10,7 +10,7 @@
#include "precompiled.h"
#include "NetLog.h"
#include "ps/CConsole.h"
#include "lib/res/file/file.h"
#include "lib/file/path.h"
#include <stdio.h>
#include <stdarg.h>
@@ -237,23 +237,15 @@ void CNetLogSink::OnClose( void )
//-----------------------------------------------------------------------------
CNetLogFileSink::CNetLogFileSink( void )
{
char filePath[ PATH_MAX ] = {0};
CStr time;
CStr path;
// Get string time
CStr time;
CNetLogger::GetStringTime( time );
// Make relative path
path = "../logs/net_log";
path += time;
path += ".txt";
// Make full path
file_make_full_native_path( path.c_str(), filePath );
m_FileName = filePath;
m_Append = true;
Path path("../logs/net_log");
path /= time+".txt";
m_FileName = path.external_file_string();
m_Append = true;
}
//-----------------------------------------------------------------------------