Initial commit: ROW Client source code
Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
95
Tools/PatchCommon/PatchInfoList.h
Normal file
95
Tools/PatchCommon/PatchInfoList.h
Normal file
@@ -0,0 +1,95 @@
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
#pragma pack(push)
|
||||
#pragma pack(4)
|
||||
|
||||
#define MAX_PACKAGE_FILE_NAME_LENGTH 50
|
||||
#define MAX_FILE_NAME_LENGTH 200
|
||||
|
||||
struct FilePatchInfoRecord
|
||||
{
|
||||
char szFileName[MAX_FILE_NAME_LENGTH]; // (<28><><EFBFBD>ӷ<EFBFBD>Ʈ<EFBFBD>κ<EFBFBD><CEBA><EFBFBD><EFBFBD><EFBFBD>)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD>ϸ<EFBFBD>
|
||||
char szPackageFileName[MAX_PACKAGE_FILE_NAME_LENGTH]; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD>ú<EFBFBD>_nnn (Ȯ<><C8AE><EFBFBD><EFBFBD> ".zip" <20><><EFBFBD><EFBFBD>)
|
||||
DWORD dwSize;
|
||||
DWORD dwCRC32;
|
||||
DWORD dwVersion;
|
||||
|
||||
FilePatchInfoRecord()
|
||||
{
|
||||
szFileName[0] = '\0';
|
||||
szPackageFileName[0] = '\0';
|
||||
dwSize = 0;
|
||||
dwCRC32 = 0;
|
||||
dwVersion = 100;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
struct PTR_STRING
|
||||
{
|
||||
char* m_pStr;
|
||||
|
||||
PTR_STRING( char* p )
|
||||
{
|
||||
m_pStr = p;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
struct PTR_STRING_LESS
|
||||
{
|
||||
bool operator()( const PTR_STRING ps1, const PTR_STRING ps2 ) const
|
||||
{
|
||||
return ( stricmp( ps1.m_pStr , ps2.m_pStr ) < 0 );
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class CPatchInfoList
|
||||
{
|
||||
public:
|
||||
bool Load( const char* szFileName );
|
||||
bool Save( const char* szFileName );
|
||||
|
||||
void Reset();
|
||||
|
||||
void SetVersion( DWORD dwVer )
|
||||
{
|
||||
m_dwVersion = dwVer;
|
||||
}
|
||||
|
||||
DWORD GetVersion()
|
||||
{
|
||||
return m_dwVersion;
|
||||
}
|
||||
|
||||
std::vector<FilePatchInfoRecord> &GetList()
|
||||
{
|
||||
return m_vecPatchInfo;
|
||||
}
|
||||
|
||||
bool LoadV1( const char* szFileName );
|
||||
|
||||
|
||||
protected:
|
||||
DWORD m_dwVersion;
|
||||
|
||||
std::vector<FilePatchInfoRecord> m_vecPatchInfo;
|
||||
|
||||
static const char* ms_cszHeaderString;
|
||||
};
|
||||
|
||||
|
||||
#pragma pack(pop)
|
||||
Reference in New Issue
Block a user