clean up entire solution
This commit is contained in:
parent
ad730e446c
commit
572799fa5a
|
|
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.0.32014.148
|
VisualStudioVersion = 17.0.32014.148
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PolygonClientUtilities", "PolygonClientUtilities\PolygonClientUtilities.vcxproj", "{9D232642-FB2F-43DC-B0AC-C56E3B691233}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PolygonDLL", "PolygonDLL\PolygonDLL.vcxproj", "{9D232642-FB2F-43DC-B0AC-C56E3B691233}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<VCProjectVersion>16.0</VCProjectVersion>
|
<VCProjectVersion>16.0</VCProjectVersion>
|
||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
<ProjectGuid>{9d232642-fb2f-43dc-b0ac-c56e3b691233}</ProjectGuid>
|
<ProjectGuid>{9d232642-fb2f-43dc-b0ac-c56e3b691233}</ProjectGuid>
|
||||||
<RootNamespace>PolygonClientUtilities</RootNamespace>
|
<RootNamespace>PolygonDLL</RootNamespace>
|
||||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||||
<VcpkgTriplet Condition="'$(Platform)'=='Win32'">x86-windows-static</VcpkgTriplet>
|
<VcpkgTriplet Condition="'$(Platform)'=='Win32'">x86-windows-static</VcpkgTriplet>
|
||||||
<VcpkgTriplet Condition="'$(Platform)'=='x64'">x64-windows-static</VcpkgTriplet>
|
<VcpkgTriplet Condition="'$(Platform)'=='x64'">x64-windows-static</VcpkgTriplet>
|
||||||
|
|
@ -48,10 +48,12 @@
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
<EnableManagedIncrementalBuild>true</EnableManagedIncrementalBuild>
|
<EnableManagedIncrementalBuild>true</EnableManagedIncrementalBuild>
|
||||||
|
<TargetName>Polygon</TargetName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
<EnableManagedIncrementalBuild>true</EnableManagedIncrementalBuild>
|
<EnableManagedIncrementalBuild>true</EnableManagedIncrementalBuild>
|
||||||
|
<TargetName>Polygon</TargetName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Label="Vcpkg">
|
<PropertyGroup Label="Vcpkg">
|
||||||
<VcpkgEnableManifest>true</VcpkgEnableManifest>
|
<VcpkgEnableManifest>true</VcpkgEnableManifest>
|
||||||
|
|
@ -60,7 +62,7 @@
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;POLYGONCLIENTUTILITIES_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;_DEBUG;PolygonDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
|
|
@ -76,6 +78,7 @@
|
||||||
<IgnoreAllDefaultLibraries>
|
<IgnoreAllDefaultLibraries>
|
||||||
</IgnoreAllDefaultLibraries>
|
</IgnoreAllDefaultLibraries>
|
||||||
<IgnoreSpecificDefaultLibraries>LIBCMTD.lib</IgnoreSpecificDefaultLibraries>
|
<IgnoreSpecificDefaultLibraries>LIBCMTD.lib</IgnoreSpecificDefaultLibraries>
|
||||||
|
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
|
@ -85,7 +88,7 @@
|
||||||
</FunctionLevelLinking>
|
</FunctionLevelLinking>
|
||||||
<IntrinsicFunctions>false</IntrinsicFunctions>
|
<IntrinsicFunctions>false</IntrinsicFunctions>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;POLYGONCLIENTUTILITIES_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;NDEBUG;PolygonDLL_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
|
|
@ -106,6 +109,7 @@
|
||||||
</IgnoreAllDefaultLibraries>
|
</IgnoreAllDefaultLibraries>
|
||||||
<IgnoreSpecificDefaultLibraries>LIBCMT.lib</IgnoreSpecificDefaultLibraries>
|
<IgnoreSpecificDefaultLibraries>LIBCMT.lib</IgnoreSpecificDefaultLibraries>
|
||||||
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
||||||
|
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
52
README.md
52
README.md
|
|
@ -1,27 +1,57 @@
|
||||||
# PolygonDLLUtilities
|
# PolygonDLL
|
||||||
Manages DLLs for extending game client/server functionality
|
DLL used for extending game client/server functionality
|
||||||
|
|
||||||
Based off [ndoesstuff/JoinScriptUrlImpl](https://github.com/ndoesstuff/JoinScriptUrlImpl) as per the MIT license
|
Based off [ndoesstuff/JoinScriptUrlImpl](https://github.com/ndoesstuff/JoinScriptUrlImpl) as per the MIT license
|
||||||
|
|
||||||
Test trust check:
|
Test trust check:
|
||||||
> Insert a new brick with decal
|
1. Insert a new brick with decal
|
||||||
> Try setting decal ID to http://tadah.rocks - Should succeed
|
2. Try setting decal ID to http://tadah.rocks - Should succeed
|
||||||
> Try setting decal ID to http://tadah.rocks@example.com - Should fail
|
3. Try setting decal ID to http://tadah.rocks@example.com - Should fail
|
||||||
|
|
||||||
Test signature check:
|
Test extended signature check:
|
||||||
> Run `loadfile("rbxasset://signatureinvalid.txt")()` - Should throw an exception
|
- Run `loadfile("rbxasset://signatureinvalid.txt")()` - Should throw an exception
|
||||||
> Run `loadfile("rbxasset://signatureoverflow.txt")()` - Should throw an exception
|
- Run `loadfile("rbxasset://signatureoverflow.txt")()` - Should throw an exception
|
||||||
|
- Run `loadfile("https://tadah.rocks/test/sha256succ")()` - Should succeed (if compiled with the Tadah public key)
|
||||||
|
- Run `loadfile("https://polygon.pizzaboxer.xyz/Game/Visit.ashx")()` - Should succeed (if compiled with the Project Polygon public key)
|
||||||
|
|
||||||
Test command line parameter reimplementation (2010/2011 builds only):
|
Test command line parameter reimplementation (2010/2011 builds only):
|
||||||
> `> RobloxApp.exe -a http://polygondev.pizzaboxer.xyz/login/negotiate.ashx -t 0 -j http://polygondev.pizzaboxer.xyz/game/visit.ashx`
|
- `> RobloxApp.exe -a http://polygondev.pizzaboxer.xyz/login/negotiate.ashx -t 0 -j http://polygondev.pizzaboxer.xyz/game/visit.ashx`
|
||||||
|
|
||||||
Test DataModel creation (Arbiter builds only):
|
Test DataModel creation (Arbiter builds only):
|
||||||
> Run `print("NewGame")` - Should create a new DataModel with an executed script
|
- Run `print("NewGame")` - Should create a new DataModel with an executed script
|
||||||
|
|
||||||
|
Test asset redirection:
|
||||||
|
- Run `game:Load("https://www.roblox.com/Asset?id=1818&version=1")` - Should succeed
|
||||||
|
1. Insert a new brick with decal
|
||||||
|
2. Try setting decal ID to `https://www.roblox.com/Thumbs/Asset.ashx?id=1818&x=768&y=432` - Should succeed
|
||||||
|
3. Try setting decal ID to `https://www.roblox.com/Thumbs/Avatar.ashx?id=1&x=768&y=432` - Should succeed
|
||||||
|
|
||||||
|
## Build
|
||||||
|
PolygonDLL requires [vcpkg](https://github.com/microsoft/vcpkg) to manage package installation such with libcurl, detours, and rapidjson. Here's a quick way to install vcpkg;
|
||||||
|
|
||||||
# vcpkg
|
|
||||||
```
|
```
|
||||||
|
> cd <path where vcpkg should be kept; such as C:\vcpkg>
|
||||||
> git clone https://github.com/microsoft/vcpkg
|
> git clone https://github.com/microsoft/vcpkg
|
||||||
> .\vcpkg\bootstrap-vcpkg.bat
|
> .\vcpkg\bootstrap-vcpkg.bat
|
||||||
> .\vcpkg\vcpkg integrate install
|
> .\vcpkg\vcpkg integrate install
|
||||||
> .\vcpkg\vcpkg integrate project
|
> .\vcpkg\vcpkg integrate project
|
||||||
```
|
```
|
||||||
|
|
||||||
|
PolygonDLL only builds under Win32 for x86 architecture.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
The DLL is imported with StudPE under the `import` function name. Otherwise, the DLL should be imported into the executable via VMProtect.
|
||||||
|
|
||||||
|
Several preprocessor flags are available that modify how the DLL operates. They are specific to the executable being compiled for.
|
||||||
|
- `ARBITERBUILD`
|
||||||
|
- `MFC2010`
|
||||||
|
- `MFC2011`
|
||||||
|
- `PLAYER2012`
|
||||||
|
- `STUDIO2012`
|
||||||
|
|
||||||
|
You may read the code for further information.
|
||||||
|
|
||||||
|
## License
|
||||||
|
Copyright (c) Project Polygon and Tadah 2022. All rights reserved.
|
||||||
|
|
||||||
|
Forked with permission. Not for public use.
|
||||||
Loading…
Reference in New Issue