added forgotten files
This commit is contained in:
@@ -327,8 +327,8 @@ void IConsole_Exec( int argc, char **argv)
|
||||
IFileHandle *f = filesystem->Open(argv[1], FILEMODE_READ);
|
||||
if (!f)
|
||||
return;
|
||||
CUtlBuffer<char> b(f->Size()+1);
|
||||
f->Read(b, b.GetSize());
|
||||
CUtlBuffer<char> b(filesystem->Size(f)+1);
|
||||
filesystem->Read(f, b, b.GetSize());
|
||||
b[b.GetSize()-1] = 0;
|
||||
Console()->AddCommand(b);
|
||||
Console()->AddCommand(";");
|
||||
|
||||
@@ -11,10 +11,14 @@ extern "C" void FunnyMain( int argc, char **argv )
|
||||
{
|
||||
CommandLine()->CreateCommandLine(argc, argv);
|
||||
|
||||
void *pFilesystem = Plat_LoadLibrary("libfilesystem.so");
|
||||
CreateInterfaceFn pFilesystemFactory = Sys_GetFactory(pFilesystem);
|
||||
|
||||
filesystem = (IFileSystem*)pFilesystemFactory(FILESYSTEM_INTERFACE_VERSION, NULL);
|
||||
filesystem->Init();
|
||||
|
||||
gamewindow->Init();
|
||||
Materials()->Init();
|
||||
g_pMaterialSystem->Init();
|
||||
|
||||
ServerGameDLL()->Init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user