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:
2025-11-29 16:24:34 +09:00
commit e067522598
5135 changed files with 1745744 additions and 0 deletions

View File

@@ -0,0 +1,105 @@
#include "stdafx.h"
#include "IniFile.h"
CIniFile::CIniFile(VOID)
{
ZeroMemory(mFileName, sizeof(mFileName));
}
CIniFile::~CIniFile(VOID)
{
}
BOOL CIniFile::Open(char* fileName)
{
if (!fileName)
return FALSE;
strncpy(mFileName, fileName, MAX_PATH);
FILE* fp = fopen(fileName, "r");
if(fp == NULL)
return FALSE;
fclose(fp);
return TRUE;
}
BOOL CIniFile::Close(VOID)
{
return TRUE;
}
BOOL CIniFile::GetValue(char* keyName, char* valueName, LPDWORD value)
{
if (!keyName || !valueName || !value)
return FALSE;
char Value[16] = {0,};
GetPrivateProfileString(keyName, valueName, "", Value, 16, mFileName);
*value = (DWORD) atoi(Value);
return TRUE;
}
BOOL CIniFile::GetValue(char* keyName, char* valueName, FLOAT *value)
{
if (!keyName || !valueName || !value)
return FALSE;
char Value[16] = {0,};
GetPrivateProfileString(keyName, valueName, "", Value, 16, mFileName);
*value = (FLOAT) atof(Value);
return TRUE;
}
BOOL CIniFile::GetValue(char* keyName, char* valueName, char* value, LPDWORD bufferLength)
{
if (!keyName || !valueName || !value || !bufferLength)
return FALSE;
*bufferLength = GetPrivateProfileString(keyName, valueName, "", value, 512, mFileName);
return TRUE;
}
BOOL CIniFile::SetValue(char* keyName, char* valueName, DWORD value)
{
if (!keyName || !valueName)
return FALSE;
char Value[16];
sprintf(Value, "%d", value);
WritePrivateProfileString(keyName, valueName, Value, mFileName);
return TRUE;
}
BOOL CIniFile::SetValue(char* keyName, char* valueName, char* value)
{
if (!keyName || !valueName || !value)
return FALSE;
WritePrivateProfileString(keyName, valueName, value, mFileName);
return TRUE;
}
BOOL CIniFile::SetValue(char* keyName, char* valueName, FLOAT value)
{
if (!keyName || !valueName)
return FALSE;
char Value[16] = {0,};
sprintf(Value, "%f", value);
WritePrivateProfileString(keyName, valueName, Value, mFileName);
return TRUE;
}