DragonNest/Client/EtPackingTest/EtPackingTest.cpp
2024-12-20 16:56:44 +08:00

31 lines
1.4 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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;
}