├── .gitignore ├── .github ├── FUNDING.yml └── workflows │ └── autobuild-workflow.yaml ├── FlashPatch ├── icon.ico ├── App.config ├── Properties │ ├── Settings.settings │ ├── Settings.Designer.cs │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── App.xaml.cs ├── app.manifest ├── App.xaml ├── PatchWindow.xaml ├── PatchWindow.xaml.cs ├── UpdateChecker.cs ├── HexPatch.cs ├── PatchableBinary.cs ├── WinAPI.cs ├── FlashPatch.csproj └── Patcher.cs ├── LICENSE ├── FlashPatch.sln └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .vs 2 | bin 3 | obj 4 | 5 | *.exe 6 | *.obj 7 | *.pdb -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: darktohka 2 | liberapay: darktohka 3 | ko_fi: disyer 4 | -------------------------------------------------------------------------------- /FlashPatch/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darktohka/FlashPatch/HEAD/FlashPatch/icon.ico -------------------------------------------------------------------------------- /FlashPatch/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /FlashPatch/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /FlashPatch/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Net; 2 | using System.Windows; 3 | 4 | namespace FlashPatch { 5 | public partial class App : Application { 6 | 7 | private void Application_Startup(object sender, StartupEventArgs e) { 8 | ServicePointManager.Expect100Continue = true; 9 | ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /FlashPatch/app.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 darktohka 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /FlashPatch/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace FlashPatch.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /.github/workflows/autobuild-workflow.yaml: -------------------------------------------------------------------------------- 1 | name: Build FlashPatch 2 | 3 | on: [push, repository_dispatch, workflow_dispatch] 4 | 5 | jobs: 6 | build: 7 | runs-on: windows-2019 8 | steps: 9 | - name: Checkout repository 10 | uses: actions/checkout@v4 11 | - name: Setup Visual Studio 12 | uses: ilammy/msvc-dev-cmd@v1 13 | - name: Build executable 14 | shell: powershell 15 | working-directory: FlashPatch 16 | run: > 17 | msbuild /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin FlashPatch.csproj 18 | - name: Import certificate 19 | shell: bash 20 | working-directory: FlashPatch/bin 21 | run: > 22 | echo ${{ secrets.SIGN_WIN_CERT }} | base64 --decode > cert.pfx 23 | - name: Sign executable 24 | shell: powershell 25 | working-directory: FlashPatch/bin 26 | run: > 27 | signtool sign /a /tr "${{ secrets.SIGN_WIN_TIMESTAMP }}" /td sha256 /fd sha256 /f cert.pfx FlashPatch.exe 28 | - name: Remove certificate 29 | shell: bash 30 | working-directory: FlashPatch/bin 31 | run: > 32 | rm cert.pfx 33 | - uses: actions/upload-artifact@v4 34 | with: 35 | name: FlashPatch 36 | path: FlashPatch/bin/FlashPatch.exe 37 | -------------------------------------------------------------------------------- /FlashPatch.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.32602.291 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FlashPatch", "FlashPatch\FlashPatch.csproj", "{3634FB53-38E0-4D55-B5D1-5F415C44A66D}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Debug|x86 = Debug|x86 12 | Release|Any CPU = Release|Any CPU 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {3634FB53-38E0-4D55-B5D1-5F415C44A66D}.Debug|Any CPU.ActiveCfg = Release|Any CPU 17 | {3634FB53-38E0-4D55-B5D1-5F415C44A66D}.Debug|Any CPU.Build.0 = Release|Any CPU 18 | {3634FB53-38E0-4D55-B5D1-5F415C44A66D}.Debug|x86.ActiveCfg = Debug|x86 19 | {3634FB53-38E0-4D55-B5D1-5F415C44A66D}.Debug|x86.Build.0 = Debug|x86 20 | {3634FB53-38E0-4D55-B5D1-5F415C44A66D}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {3634FB53-38E0-4D55-B5D1-5F415C44A66D}.Release|Any CPU.Build.0 = Release|Any CPU 22 | {3634FB53-38E0-4D55-B5D1-5F415C44A66D}.Release|x86.ActiveCfg = Release|x86 23 | {3634FB53-38E0-4D55-B5D1-5F415C44A66D}.Release|x86.Build.0 = Release|x86 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {D948C739-0087-4EBC-9496-2062C0AC7CB3} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /FlashPatch/App.xaml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 29 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /FlashPatch/PatchWindow.xaml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 17 | 18 | Play Adobe Flash Player games in the browser after January 12th, 2021. 19 | 20 | Now supports Chinese Flash! 21 | 22 | 23 |