Initial commit: Complete open-source Decal rebuild
All 5 phases of the open-source Decal rebuild: Phase 1: 14 decompiled .NET projects (Interop.*, Adapter, FileService, DecalUtil) Phase 2: 10 native DLLs rewritten as C# COM servers with matching GUIDs - DecalDat, DHS, SpellFilter, DecalInput, DecalNet, DecalFilters - Decal.Core, DecalControls, DecalRender, D3DService Phase 3: C++ shims for Inject.DLL (D3D9 hooking) and LauncherHook.DLL Phase 4: DenAgent WinForms tray application Phase 5: WiX installer and build script 25 C# projects building with 0 errors. Native C++ projects require VS 2022 + Windows SDK (x86). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
d1442e3747
1382 changed files with 170725 additions and 0 deletions
87
Native/DenAgent/DenAgent.h
Normal file
87
Native/DenAgent/DenAgent.h
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
// DenAgent.h : main header file for the DENAGENT application
|
||||
//
|
||||
|
||||
#if !defined(AFX_DENAGENT_H__A4F37F75_E088_4616_9AC5_3B39579BC3BB__INCLUDED_)
|
||||
#define AFX_DENAGENT_H__A4F37F75_E088_4616_9AC5_3B39579BC3BB__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
#ifndef __AFXWIN_H__
|
||||
#error include 'stdafx.h' before including this file for PCH
|
||||
#endif
|
||||
|
||||
#include "resource.h" // main symbols
|
||||
#include "DenAgent_i.h"
|
||||
|
||||
class CTrayWnd;
|
||||
|
||||
|
||||
// the public key to unencrypt xmls
|
||||
#include "..\include\DecalKey.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDenAgentApp:
|
||||
// See DenAgent.cpp for the implementation of this class
|
||||
//
|
||||
|
||||
class CDenAgentApp : public CWinApp
|
||||
{
|
||||
public:
|
||||
CDenAgentApp();
|
||||
|
||||
// Returns the formatted string of the AC version
|
||||
static bool getVersionString ( LPCTSTR szFilename, CString &strVersion );
|
||||
static bool getVersionInfo ( LPCTSTR szFilename, int &iReleaseMajor, int &iReleaseMinor, int &iBuildMajor, int &iBuildMinor );
|
||||
static bool getACVersionString ( CString &strVersion );
|
||||
static bool getCOMObjectDLL ( REFCLSID rclsid, CString &strFilename );
|
||||
|
||||
// decrypts xml file
|
||||
static void DecryptXML( const char *szPath, std::string &szXML );
|
||||
|
||||
// Prepends the agent path to a filename
|
||||
static bool getAgentPath ( LPCTSTR szFilename, CString &strPath );
|
||||
static bool checkXMLVersion ( CString &strClientVersion, CString &strXMLFile, CTrayWnd* pTrayWnd );
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CDenAgentApp)
|
||||
public:
|
||||
virtual BOOL InitInstance();
|
||||
virtual int ExitInstance();
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
static void importV1Plugins ();
|
||||
|
||||
// Helper functions
|
||||
static bool checkXMLVersions ( CTrayWnd* pTrayWnd );
|
||||
|
||||
struct cXMLBuild
|
||||
{
|
||||
LPCTSTR XMLFile;
|
||||
long build;
|
||||
};
|
||||
|
||||
static void getXMLBuilds ( cXMLBuild *pFirst, cXMLBuild *pLast );
|
||||
|
||||
//{{AFX_MSG(CDenAgentApp)
|
||||
// NOTE - the ClassWizard will add and remove member functions here.
|
||||
// DO NOT EDIT what you see in these blocks of generated code !
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
private:
|
||||
BOOL m_bATLInited;
|
||||
private:
|
||||
BOOL InitATL();
|
||||
CTrayWnd* m_pTrayWnd;
|
||||
};
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_DENAGENT_H__A4F37F75_E088_4616_9AC5_3B39579BC3BB__INCLUDED_)
|
||||
Loading…
Add table
Add a link
Reference in a new issue