DragonNest/Server/ServiceManager/LivePatcher.h
2024-12-19 09:48:26 +08:00

45 lines
No EOL
777 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
//Resource LivePatch¸¦ ÇϱâÀ§ÇÑ °ü¸® Ŭ·¡½º
struct TLivePatchItem
{
bool bIsComplete;
int nWatchItemID;
bool bPatched;
std::wstring wstrItemName;
};
struct TLiveReloadItem
{
bool bReload;
bool bReported;
int nMID;
};
class CLivePatcher
{
public:
CLivePatcher();
~CLivePatcher();
bool StartPatch();
bool CancelPatch(bool bForce = true);
bool IsStarted() { return m_bPatching; }
void SetReloadFlag(std::vector <int> &vList);
bool SetReloadResult(int nMID, bool bRet, bool &bReloadRet);
bool IsReloading();
bool LoadPatchList(TCHAR * pFile);
void SendLivePatch();
bool RecvCompleteItem(int nPatchID);
private:
bool m_bPatching;
std::vector <TLivePatchItem> m_PatchList;
std::vector <TLiveReloadItem> m_ReloadList;
CSyncLock m_Sync;
};