初步修复
This commit is contained in:
parent
8fc4357cc6
commit
e4714f3f0e
46705 changed files with 12004901 additions and 0 deletions
31
Client/EtPackingTest/EtPackingTest.cpp
Normal file
31
Client/EtPackingTest/EtPackingTest.cpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
// EtPackingTest.cpp : Defines the entry point for the console application.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
|
||||
#include "EtFileSystem.h"
|
||||
#include "EtPackingStream.h"
|
||||
|
||||
|
||||
int _tmain(int argc, _TCHAR* argv[])
|
||||
{
|
||||
//CEtFileSystem::AddPackingFile(_T("./Resource/Npc.Nfs"));
|
||||
//CEtFileSystem::AddPackingFile(_T("./Resource/Quest.Nfs"));
|
||||
//CEtFileSystem::AddPackingFile(_T("./Resource/Script.Nfs"));
|
||||
CEtFileSystem::GetInstance().AddPackingFolder(_T(".\\Resource"));
|
||||
|
||||
|
||||
CPackingStream stream("\\Script\\AiBat.lua");
|
||||
int nSize = stream.Size();
|
||||
|
||||
char* pBuffer = new char[nSize];
|
||||
|
||||
stream.Read(pBuffer, nSize);
|
||||
delete[] pBuffer;
|
||||
|
||||
CEtFileSystem::GetInstance().RemoveAll();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue