new pack system

This commit is contained in:
d1str4ught
2025-09-21 05:28:55 +02:00
parent 775cb2f927
commit 5b1d3c6bce
100 changed files with 5269 additions and 5825 deletions

View File

@@ -2,7 +2,7 @@
#include "PythonEventManager.h"
#include "PythonNetworkStream.h"
#include "PythonNonPlayer.h"
#include "EterPack/EterPackManager.h"
#include "PackLib/PackManager.h"
#include "PythonMiniMap.h"
#include "AbstractApplication.h"
@@ -104,16 +104,14 @@ void CPythonEventManager::__InitEventSet(TEventSet& rEventSet)
int CPythonEventManager::RegisterEventSet(const char * c_szFileName)
{
CMappedFile File;
LPCVOID pMap;
TPackFile File;
if (!CEterPackManager::Instance().Get(File, c_szFileName, &pMap))
if (!CPackManager::Instance().GetFile(c_szFileName, File))
return -1;
std::string strEventString;
strEventString.resize(File.Size()+1);
File.Read(&strEventString[0], File.Size());
strEventString.resize(File.size() + 1);
memcpy(strEventString.data(), File.data(), File.size());
TEventSet * pEventSet = m_EventSetPool.Alloc();
if (!pEventSet)