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
82
Native/PlainText/ScriptSiteImpl.h
Normal file
82
Native/PlainText/ScriptSiteImpl.h
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
// ScriptSiteImpl.h
|
||||
// Declaration of class IActiveScriptSiteImpl
|
||||
|
||||
#ifndef __SCRIPTSITEIMPL_H
|
||||
#define __SCRIPTSITEIMPL_H
|
||||
|
||||
class IActiveScriptSiteImpl
|
||||
: public IActiveScriptSite
|
||||
{
|
||||
class cObject
|
||||
{
|
||||
public:
|
||||
cObject( BSTR szName, IUnknown *pObject )
|
||||
: m_strName( szName ),
|
||||
m_pObject( pObject )
|
||||
{
|
||||
}
|
||||
|
||||
_bstr_t m_strName;
|
||||
CComPtr< IUnknown > m_pObject;
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
typedef std::deque< cObject > cObjectList;
|
||||
cObjectList m_objects;
|
||||
|
||||
CComPtr< IActiveScript > m_pScript;
|
||||
|
||||
IActiveScriptSiteImpl()
|
||||
: m_pScript( NULL )
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT createScriptEngine( LPCOLESTR strLanguage );
|
||||
|
||||
// Helper functions
|
||||
void addNamedItem( BSTR szName, IUnknown *pObject, DWORD dwFlags = SCRIPTITEM_ISSOURCE | SCRIPTITEM_ISVISIBLE );
|
||||
|
||||
// IActiveScriptSite Methods
|
||||
STDMETHOD(GetLCID)(LCID *plcid)
|
||||
{
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
STDMETHOD(GetItemInfo)(LPCOLESTR pstrName, DWORD dwReturnMask, IUnknown **ppunkItem, ITypeInfo **ppTypeInfo);
|
||||
STDMETHOD(GetDocVersionString)(BSTR *pbstrVersionString)
|
||||
{
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
STDMETHOD(OnScriptTerminate)(const VARIANT *pvarResult, const EXCEPINFO *pexcepinfo)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
STDMETHOD(OnStateChange)(SCRIPTSTATE ssScriptState)
|
||||
{
|
||||
if( ssScriptState == SCRIPTSTATE_CLOSED )
|
||||
{
|
||||
m_objects.clear();
|
||||
m_pScript.Release();
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
STDMETHOD(OnScriptError)(IActiveScriptError *pase);
|
||||
|
||||
STDMETHOD(OnEnterScript)()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
STDMETHOD(OnLeaveScript)()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue