AVA2 cross-platform client parity baseline

This commit is contained in:
shen
2026-10-06 00:53:42 -07:00
commit 9f748eb05a
3271 changed files with 1275528 additions and 0 deletions
@@ -0,0 +1,33 @@
#include "StdAfx.h"
#include <iostream>
#include <fstream>
#include <psapi.h>
#include "CShieldCheckIntegrity.h"
#if defined(ENABLE_CSHIELD) && !defined(_DEBUG)
std::string GetExeFileName()
{
char buffer[MAX_PATH];
GetModuleFileName(NULL, buffer, MAX_PATH);
return std::string(buffer);
}
std::string GetExePath()
{
std::string f = GetExeFileName();
return f.substr(0, f.find_last_of("\\/"));
}
#ifdef ENABLE_CSHIELD_DEBUG
void ErrorMessage(std::string error)
{
std::ofstream myfile("syserr.txt", std::ios::app);
if (myfile.is_open())
{
myfile << error << "\n";
myfile.close();
}
}
#endif
#endif