Skip to content

Commit

Permalink
Separated Age2 & Age3 FakeOnline implementations, reverted Age2 imple…
Browse files Browse the repository at this point in the history
…mentation to original
  • Loading branch information
luskaner committed Nov 7, 2024
1 parent cb85603 commit f865a01
Show file tree
Hide file tree
Showing 38 changed files with 905 additions and 114 deletions.
Binary file removed FakeOnline/FakeOnline.aps
Binary file not shown.
Binary file added age2/FakeOnline/Age2FakeOnline.aps
Binary file not shown.
File renamed without changes.
198 changes: 99 additions & 99 deletions FakeOnline/FakeOnline.rc → age2/FakeOnline/Age2FakeOnline.rc
Original file line number Diff line number Diff line change
@@ -1,99 +1,99 @@
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// Español (España, alfabetización internacional) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESN)
LANGUAGE LANG_SPANISH, SUBLANG_SPANISH_MODERN
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#include ""winres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "000904b0"
BEGIN
VALUE "CompanyName", "luskaner"
VALUE "FileDescription", "Fake an always online status"
VALUE "FileVersion", "1.0.0.1"
VALUE "InternalName", "FakeOnline.dll"
VALUE "LegalCopyright", "Copyright (C) 2024 - https://github.com/luskaner/ageLANServerLauncherCompanion"
VALUE "OriginalFilename", "FakeOnline.dll"
VALUE "ProductName", "FakeOnline"
VALUE "ProductVersion", "1.0.0.1"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x9, 1200
END
END
#endif // Español (España, alfabetización internacional) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// Español (España, alfabetización internacional) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESN)
LANGUAGE LANG_SPANISH, SUBLANG_SPANISH_MODERN

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE
BEGIN
"resource.h\0"
END

2 TEXTINCLUDE
BEGIN
"#include ""winres.h""\r\n"
"\0"
END

3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END

#endif // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "000904b0"
BEGIN
VALUE "CompanyName", "luskaner"
VALUE "FileDescription", "Fake an always online status"
VALUE "FileVersion", "1.0.0.1"
VALUE "InternalName", "Age2FakeOnline.dll"
VALUE "LegalCopyright", "Copyright (C) 2024 - https://github.com/luskaner/ageLANServerLauncherCompanion"
VALUE "OriginalFilename", "Age2FakeOnline.dll"
VALUE "ProductName", "Age2FakeOnline"
VALUE "ProductVersion", "1.0.0.1"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x9, 1200
END
END

#endif // Español (España, alfabetización internacional) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<VCProjectVersion>17.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{68c1afc3-2635-4663-90d8-050c3a7a3c8d}</ProjectGuid>
<RootNamespace>FakeOnline</RootNamespace>
<RootNamespace>Age2FakeOnline</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>FakeOnline</ProjectName>
<ProjectName>Age2FakeOnline</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
Expand Down Expand Up @@ -52,7 +52,7 @@
<ClCompile>
<WarningLevel>EnableAllWarnings</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;FakeOnline_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_DEBUG;Age2FakeOnline_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
Expand All @@ -71,7 +71,7 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;FakeOnline_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>NDEBUG;Age2FakeOnline_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
Expand Down Expand Up @@ -105,7 +105,7 @@
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="FakeOnline.rc" />
<ResourceCompile Include="Age2FakeOnline.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="FakeOnline.rc">
<ResourceCompile Include="Age2FakeOnline.rc">
<Filter>Resources</Filter>
</ResourceCompile>
</ItemGroup>
Expand Down
File renamed without changes.
27 changes: 27 additions & 0 deletions age2/FakeOnline/dllmain.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#include "pch.h"
#include "fakecomresolver.h"
#include <iostream>

BOOL APIENTRY DllMain( HMODULE /*hModule*/,
DWORD ul_reason_for_call,
LPVOID /*lpReserved*/
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
COMDllProcessAttach();
DetourTransactionCommit();
break;
case DLL_PROCESS_DETACH:
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
COMDllProcessDetach();
DetourTransactionCommit();
break;
}
return TRUE;
}

File renamed without changes.
File renamed without changes.
11 changes: 3 additions & 8 deletions FakeOnline/fakeonline.cpp → age2/FakeOnline/fakeonline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ HRESULT STDMETHODCALLTYPE FakeNetworkListManager::Invoke(DISPID dispIdMember, RE
}

HRESULT STDMETHODCALLTYPE FakeNetworkListManager::get_IsConnectedToInternet(VARIANT_BOOL* pbIsConnected) {
return get_IsConnected(pbIsConnected);
return original->get_IsConnected(pbIsConnected);
}

HRESULT STDMETHODCALLTYPE FakeNetworkListManager::get_IsConnected(VARIANT_BOOL* pbIsConnected) {
*pbIsConnected = VARIANT_TRUE;
return S_OK;
return original->get_IsConnected(pbIsConnected);
}

HRESULT STDMETHODCALLTYPE FakeNetworkListManager::QueryInterface(REFIID riid, void** ppvObject) {
Expand All @@ -37,11 +36,7 @@ ULONG STDMETHODCALLTYPE FakeNetworkListManager::AddRef() {
}

ULONG STDMETHODCALLTYPE FakeNetworkListManager::Release() {
ULONG refCount = original->Release();
if (refCount == 0) {
delete this;
}
return refCount;
return original->Release();
}

HRESULT STDMETHODCALLTYPE FakeNetworkListManager::GetNetworks(NLM_ENUM_NETWORK Flags, IEnumNetworks** ppEnumNetwork) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added age3/FakeOnline/Age3FakeOnline.aps
Binary file not shown.
45 changes: 45 additions & 0 deletions age3/FakeOnline/Age3FakeOnline.filters
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Archivos de origen">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Archivos de encabezado">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Archivos de recursos">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="framework.h">
<Filter>Archivos de encabezado</Filter>
</ClInclude>
<ClInclude Include="pch.h">
<Filter>Archivos de encabezado</Filter>
</ClInclude>
<ClInclude Include="fakeonline.h">
<Filter>Archivos de encabezado</Filter>
</ClInclude>
<ClInclude Include="fakecomresolver.h">
<Filter>Archivos de encabezado</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="dllmain.cpp">
<Filter>Archivos de origen</Filter>
</ClCompile>
<ClCompile Include="pch.cpp">
<Filter>Archivos de origen</Filter>
</ClCompile>
<ClCompile Include="fakeonline.cpp">
<Filter>Archivos de origen</Filter>
</ClCompile>
<ClCompile Include="fakecomresolver.cpp">
<Filter>Archivos de origen</Filter>
</ClCompile>
</ItemGroup>
</Project>
Loading

0 comments on commit f865a01

Please sign in to comment.