Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
33
GameTools/Z3SCrypt/ReadMe.txt
Normal file
33
GameTools/Z3SCrypt/ReadMe.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
========================================================================
|
||||
콘솔 응용 프로그램 : Z3SCrypt 프로젝트 개요
|
||||
========================================================================
|
||||
|
||||
응용 프로그램 마법사에서 이 Z3SCrypt 응용 프로그램을 만들었습니다.
|
||||
|
||||
이 파일에는 Z3SCrypt 응용 프로그램을 구성하는 각 파일에 대한
|
||||
요약 설명이 포함되어 있습니다.
|
||||
|
||||
|
||||
Z3SCrypt.vcproj
|
||||
응용 프로그램 마법사를 사용하여 생성한 VC++ 프로젝트의 기본 프로젝트 파일입니다.
|
||||
파일을 생성한 Visual C++ 버전에 대한 정보와
|
||||
응용 프로그램 마법사를 사용하여 선택한 플랫폼, 구성 및 프로젝트 기능에 대한
|
||||
정보가 들어 있습니다.
|
||||
|
||||
Z3SCrypt.cpp
|
||||
기본 응용 프로그램 소스 파일입니다.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
기타 표준 파일:
|
||||
|
||||
StdAfx.h, StdAfx.cpp
|
||||
이 파일은 미리 컴파일된 헤더(PCH) 파일인 Z3SCrypt.pch와
|
||||
미리 컴파일된 형식(PCT) 파일인 StdAfx.obj를 빌드하는 데 사용됩니다.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
기타 참고:
|
||||
|
||||
응용 프로그램 마법사에서 사용하는 "TODO:" 주석은 사용자가 추가하거나 사용자 지정해야 하는
|
||||
소스 코드 부분을 나타냅니다.
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
131
GameTools/Z3SCrypt/Z3SCrypt.cpp
Normal file
131
GameTools/Z3SCrypt/Z3SCrypt.cpp
Normal file
@@ -0,0 +1,131 @@
|
||||
// Z3SCrypt.cpp : 콘솔 응용 프로그램에 대한 진입점을 정의합니다.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <Windows.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
char * enckey = "cjsgkdmlTlqkfshaemfdmlwktlsdjqtsmsgkfn";
|
||||
|
||||
void Encrypt(char * filein, char * fileout)
|
||||
{
|
||||
// 처음 256바이트는 헤더
|
||||
ifstream in (filein, ios::in|ios::binary);
|
||||
|
||||
DeleteFileA(fileout);
|
||||
|
||||
ofstream out (fileout, ios::out|ios::app|ios::binary);
|
||||
|
||||
|
||||
if ( (in.is_open()) && (out.is_open()) ){
|
||||
char a;
|
||||
int counter = 0;
|
||||
|
||||
for(int i = 0; i < 256; ++i)
|
||||
{
|
||||
in.get(a);
|
||||
out.put(a);
|
||||
}
|
||||
|
||||
while (in.get(a))
|
||||
{
|
||||
if (counter == ((sizeof(enckey) / sizeof(char)) - 1))
|
||||
{
|
||||
counter = 0;
|
||||
}
|
||||
|
||||
a = ((a ^ enckey[counter]) + counter);
|
||||
out.put(a);
|
||||
counter++;
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Could not open input or output file.");
|
||||
}
|
||||
|
||||
in.close();
|
||||
out.close();
|
||||
printf("Done.\n");
|
||||
system("pause");
|
||||
}
|
||||
|
||||
void Decrypt(char * filein, char * fileout)
|
||||
{
|
||||
// 처음 256바이트는 헤더
|
||||
ifstream in (filein, ios::in|ios::binary);
|
||||
|
||||
DeleteFileA(fileout);
|
||||
|
||||
ofstream out (fileout, ios::out|ios::app|ios::binary);
|
||||
|
||||
if ( (in.is_open()) && (out.is_open()) )
|
||||
{
|
||||
char a;
|
||||
int counter = 0;
|
||||
|
||||
for(int i = 0; i < 256; ++i)
|
||||
{
|
||||
in.get(a);
|
||||
out.put(a);
|
||||
}
|
||||
|
||||
while (in.get(a))
|
||||
{
|
||||
if (counter == ((sizeof(enckey) / sizeof(char)) - 1))
|
||||
{
|
||||
counter = 0;
|
||||
}
|
||||
|
||||
a = ((a - counter) ^ enckey[counter]);
|
||||
out.put(a);
|
||||
counter++;
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Could not open input or output file.");
|
||||
}
|
||||
|
||||
in.close();
|
||||
out.close();
|
||||
printf("Done.\n");
|
||||
system("pause");
|
||||
}
|
||||
|
||||
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
printf("ROW Z3S Crypt v1.0\n\n");
|
||||
|
||||
if(argc < 4)
|
||||
{
|
||||
printf("z3scrypt.exe cryptname inputfile outputfile\n\n");
|
||||
printf("ex) z3scrypt.exe encrypt zone1.z3s zone1.cry\n\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(_stricmp(argv[1], "encrypt") == 0)
|
||||
{
|
||||
Encrypt(argv[2], argv[3]);
|
||||
}
|
||||
else if(_stricmp(argv[1], "decrypt") == 0)
|
||||
{
|
||||
Decrypt(argv[2], argv[3]);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("No such option.\n\n");
|
||||
}
|
||||
|
||||
printf("done.\n\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
20
GameTools/Z3SCrypt/Z3SCrypt.sln
Normal file
20
GameTools/Z3SCrypt/Z3SCrypt.sln
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual Studio 2008
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Z3SCrypt", "Z3SCrypt.vcproj", "{A8820284-FFE5-46B0-94D0-EF21C7B93D14}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{A8820284-FFE5-46B0-94D0-EF21C7B93D14}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{A8820284-FFE5-46B0-94D0-EF21C7B93D14}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{A8820284-FFE5-46B0-94D0-EF21C7B93D14}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{A8820284-FFE5-46B0-94D0-EF21C7B93D14}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
BIN
GameTools/Z3SCrypt/Z3SCrypt.suo
Normal file
BIN
GameTools/Z3SCrypt/Z3SCrypt.suo
Normal file
Binary file not shown.
225
GameTools/Z3SCrypt/Z3SCrypt.vcproj
Normal file
225
GameTools/Z3SCrypt/Z3SCrypt.vcproj
Normal file
@@ -0,0 +1,225 @@
|
||||
<?xml version="1.0" encoding="ks_c_5601-1987"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9.00"
|
||||
Name="Z3SCrypt"
|
||||
ProjectGUID="{A8820284-FFE5-46B0-94D0-EF21C7B93D14}"
|
||||
RootNamespace="Z3SCrypt"
|
||||
Keyword="Win32Proj"
|
||||
TargetFrameworkVersion="196613"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="2"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
EnableIntrinsicFunctions="true"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
RuntimeLibrary="0"
|
||||
EnableFunctionLevelLinking="true"
|
||||
UsePrecompiledHeader="2"
|
||||
WarningLevel="3"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="소스 파일"
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\stdafx.cpp"
|
||||
>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
UsePrecompiledHeader="1"
|
||||
/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Z3SCrypt.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="헤더 파일"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\stdafx.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\targetver.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="리소스 파일"
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||
>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\ReadMe.txt"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
8
GameTools/Z3SCrypt/stdafx.cpp
Normal file
8
GameTools/Z3SCrypt/stdafx.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
// stdafx.cpp : 표준 포함 파일만 들어 있는 소스 파일입니다.
|
||||
// Z3SCrypt.pch는 미리 컴파일된 헤더가 됩니다.
|
||||
// stdafx.obj에는 미리 컴파일된 형식 정보가 포함됩니다.
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
// TODO: 필요한 추가 헤더는
|
||||
// 이 파일이 아닌 STDAFX.H에서 참조합니다.
|
||||
15
GameTools/Z3SCrypt/stdafx.h
Normal file
15
GameTools/Z3SCrypt/stdafx.h
Normal file
@@ -0,0 +1,15 @@
|
||||
// stdafx.h : 자주 사용하지만 자주 변경되지는 않는
|
||||
// 표준 시스템 포함 파일 및 프로젝트 관련 포함 파일이
|
||||
// 들어 있는 포함 파일입니다.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "targetver.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <tchar.h>
|
||||
|
||||
|
||||
|
||||
// TODO: 프로그램에 필요한 추가 헤더는 여기에서 참조합니다.
|
||||
13
GameTools/Z3SCrypt/targetver.h
Normal file
13
GameTools/Z3SCrypt/targetver.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
// 다음 매크로는 필요한 최소 플랫폼을 정의합니다. 필요한 최소 플랫폼은
|
||||
// 응용 프로그램을 실행하는 데 필요한 기능이 포함된 가장 빠른 버전의 Windows, Internet Explorer
|
||||
// 등입니다. 이 매크로는 지정된 버전 이상의 플랫폼 버전에서 사용 가능한 모든 기능을 활성화해야
|
||||
// 작동합니다.
|
||||
|
||||
// 아래 지정된 플랫폼에 우선하는 플랫폼을 대상으로 하는 경우 다음 정의를 수정하십시오.
|
||||
// 다른 플랫폼에 사용되는 해당 값의 최신 정보는 MSDN을 참조하십시오.
|
||||
#ifndef _WIN32_WINNT // 필요한 최소 플랫폼을 Windows Vista로 지정합니다.
|
||||
#define _WIN32_WINNT 0x0600 // 다른 버전의 Windows에 맞도록 적합한 값으로 변경해 주십시오.
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user