[
  {
    "path": ".github/FUNDING.yml",
    "content": "# These are supported funding model platforms\n\ngithub: [game1024]\npatreon: \n\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug.yml",
    "content": "name: Bug Report / 错误报告\r\ndescription: 报告软件中的错误或问题 / Report a bug or issue\r\ntitle: \"[Bug]: \"\r\nlabels: [\"bug\"]\r\nbody:\r\n  - type: markdown\r\n    attributes:\r\n      value: |\r\n        ## 重要提示 / Important Notice\r\n        \r\n        ⚠️ **本项目仅支持离线使用场景，对于在线类软件（如网络游戏、在线服务、网盘等）的问题不提供支持。**\r\n                \r\n        ---\r\n        \r\n        感谢您反馈问题！请填写以下信息以帮助我们更好地定位和解决问题。\r\n        \r\n  - type: input\r\n    id: software-version\r\n    attributes:\r\n      label: 软件版本 / Software Version\r\n      description: 您使用的 OpenSpeedy 版本是什么？\r\n      placeholder: 例如：v1.0.0 或 commit hash\r\n    validations:\r\n      required: true\r\n\r\n  - type: dropdown\r\n    id: os-version\r\n    attributes:\r\n      label: 操作系统 / Operating System\r\n      description: 您使用的操作系统版本\r\n      options:\r\n        - Windows 11 (23H2)\r\n        - Windows 11 (22H2)\r\n        - Windows 11 (21H2)\r\n        - Windows 10 (22H2)\r\n        - Windows 10 (21H2)\r\n        - Windows 10 (20H2)\r\n        - Windows 10 (其他版本 / Other)\r\n        - Windows 8.1\r\n        - Windows 8\r\n        - Windows 7\r\n        - 其他 / Other\r\n    validations:\r\n      required: true\r\n\r\n  - type: input\r\n    id: os-build\r\n    attributes:\r\n      label: 系统版本号 / OS Build Number\r\n      description: 可以在\"设置 > 系统 > 关于\"中找到 / Can be found in \"Settings > System > About\"\r\n      placeholder: 例如：22621.1234\r\n\r\n  - type: textarea\r\n    id: description\r\n    attributes:\r\n      label: 问题描述 / Bug Description\r\n      description: 请详细描述您遇到的问题\r\n      placeholder: 描述问题的具体表现...\r\n    validations:\r\n      required: true\r\n\r\n  - type: textarea\r\n    id: reproduction\r\n    attributes:\r\n      label: 复现步骤 / Steps to Reproduce\r\n      description: 如何复现这个问题？\r\n      placeholder: |\r\n        1. 打开软件...\r\n        2. 点击...\r\n        3. 看到错误...\r\n    validations:\r\n      required: true\r\n\r\n  - type: textarea\r\n    id: expected\r\n    attributes:\r\n      label: 期望行为 / Expected Behavior\r\n      description: 您期望发生什么？\r\n      placeholder: 描述期望的正确行为...\r\n    validations:\r\n      required: true\r\n\r\n  - type: textarea\r\n    id: actual\r\n    attributes:\r\n      label: 实际行为 / Actual Behavior\r\n      description: 实际发生了什么？\r\n      placeholder: 描述实际发生的情况...\r\n    validations:\r\n      required: true\r\n\r\n  - type: textarea\r\n    id: target-software\r\n    attributes:\r\n      label: 目标软件信息 / Target Software Information\r\n      description: 您正在使用 OpenSpeedy 优化哪个软件？请提供软件名称和版本\r\n      placeholder: |\r\n        软件名称：\r\n        软件版本：\r\n        软件类型：离线软件 / 单机软件\r\n\r\n  - type: textarea\r\n    id: logs\r\n    attributes:\r\n      label: 日志或错误信息 / Logs or Error Messages\r\n      description: 如有相关日志或错误信息，请粘贴在此\r\n      render: shell\r\n\r\n  - type: textarea\r\n    id: screenshots\r\n    attributes:\r\n      label: 截图 / Screenshots\r\n      description: 如果适用，请添加截图来帮助解释您的问题\r\n\r\n  - type: textarea\r\n    id: additional\r\n    attributes:\r\n      label: 其他信息 / Additional Context\r\n      description: 其他可能有助于解决问题的信息\r\n\r\n  - type: checkboxes\r\n    id: terms\r\n    attributes:\r\n      label: 确认事项 / Confirmation\r\n      description: 请确认以下事项\r\n      options:\r\n        - label: 我确认这是一个离线软件的问题，不涉及在线服务 / I confirm this is about offline software, not online services\r\n          required: true\r\n        - label: 我已经搜索过现有的 issues，没有找到类似问题 / I have searched existing issues and found no duplicates\r\n          required: true\r\n        - label: 我使用的是最新版本的软件 / I am using the latest version of the software\r\n          required: false\r\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/config.yml",
    "content": "blank_issues_enabled: false\r\ncontact_links:\r\n  - name: 💬 讨论区 / Discussions\r\n    url: https://github.com/game1024/Speedy/discussions\r\n    about: 如有疑问或需要帮助，请访问讨论区 / For questions or help, please visit Discussions\r\n  - name: 📖 文档 / Documentation\r\n    url: https://github.com/game1024/Speedy/blob/master/README.md\r\n    about: 查看项目文档和使用说明 / View project documentation and usage guide\r\n  - name: ⚠️ 重要提示 / Important Notice\r\n    url: https://github.com/game1024/Speedy/blob/master/README.md\r\n    about: 本项目仅支持离线软件，不支持在线服务类软件 / This project only supports offline software, not online services\r\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature.yml",
    "content": "name: Feature Request / 功能请求\r\ndescription: 建议新功能或改进 / Suggest a new feature or improvement\r\ntitle: \"[Feature]: \"\r\nlabels: [\"enhancement\"]\r\nbody:\r\n  - type: markdown\r\n    attributes:\r\n      value: |\r\n        ## 重要提示 / Important Notice\r\n\r\n        ⚠️ **本项目仅支持离线使用场景，对于在线类软件（如网络游戏、在线服务、网盘等）的功能请求不提供支持。**\r\n        \r\n        ---\r\n        \r\n        感谢您的建议！请详细描述您希望添加的功能。\r\n        \r\n\r\n  - type: textarea\r\n    id: problem\r\n    attributes:\r\n      label: 问题描述 / Problem Description\r\n      description: 这个功能要解决什么问题？\r\n      placeholder: 我在使用中遇到了...的问题\r\n    validations:\r\n      required: true\r\n\r\n  - type: textarea\r\n    id: solution\r\n    attributes:\r\n      label: 建议的解决方案 / Proposed Solution\r\n      description: 您希望如何实现这个功能？\r\n      placeholder: 我建议添加一个...功能，可以...\r\n    validations:\r\n      required: true\r\n\r\n  - type: textarea\r\n    id: alternatives\r\n    attributes:\r\n      label: 替代方案 / Alternatives Considered\r\n      description: 您是否考虑过其他解决方案？\r\n      placeholder: 我也考虑过...，但是...\r\n\r\n  - type: textarea\r\n    id: use-case\r\n    attributes:\r\n      label: 使用场景 / Use Case\r\n      description: 这个功能在什么场景下会被使用？\r\n      placeholder: 当我...的时候，我需要...\r\n    validations:\r\n      required: true\r\n\r\n  - type: textarea\r\n    id: additional\r\n    attributes:\r\n      label: 其他信息 / Additional Context\r\n      description: 其他可能有助于理解该功能请求的信息\r\n      placeholder: 相关链接、参考资料等\r\n\r\n  - type: checkboxes\r\n    id: terms\r\n    attributes:\r\n      label: 确认事项 / Confirmation\r\n      description: 请确认以下事项\r\n      options:\r\n        - label: 这个功能适用于离线软件场景 / This feature is for offline software scenarios\r\n          required: true\r\n        - label: 我已经搜索过现有的 issues，没有找到类似的功能请求 / I have searched existing issues and found no similar requests\r\n          required: true\r\n"
  },
  {
    "path": ".github/workflows/ci.yml",
    "content": "name: Build OpenSpeedy\n\non:\n  pull_request:\n    branches: [ master ]\n  workflow_dispatch:\n\njobs:\n  build:\n    runs-on: self-hosted\n    outputs:\n      artifact-id: ${{ steps.upload-unsigned-artifacts.outputs.artifact-id }}\n\n    steps:\n    - name: Checkout\n      uses: actions/checkout@v4\n      \n    - name: Build 32-bit\n      shell: cmd\n      run: |\n        echo Building 32-bit...\n        call script\\initenv.bat\n        call script\\build32.bat\n\n    - name: Build 64-bit\n      shell: cmd\n      run: |\n        echo Building 64-bit...\n        call script\\initenv.bat\n        call script\\build64.bat\n\n    - name: Collect artifacts to flat directory\n      shell: cmd\n      run: |\n        echo Collecting artifacts...\n        \n        if not exist \"artifacts\" mkdir \"artifacts\"\n        \n        copy \"build\\CMAKE_x64_static-Release\\OpenSpeedy.exe\" \"artifacts\\\"\n        copy \"build\\CMAKE_x64_static-Release\\speedpatch64.dll\" \"artifacts\\\"\n        copy \"build\\CMAKE_x64_static-Release\\bridge64.exe\" \"artifacts\\\"\n        copy \"build\\CMAKE_x86_static-Release\\speedpatch32.dll\" \"artifacts\\\"\n        copy \"build\\CMAKE_x86_static-Release\\bridge32.exe\" \"artifacts\\\"\n        \n        echo Artifacts directory contents:\n        dir \"artifacts\"\n        \n    - name: Upload unsigned artifacts\n      id: upload-unsigned-artifacts\n      uses: actions/upload-artifact@v4\n      if: success()\n      with:\n        name: OpenSpeedy-unsigned-artifacts\n        path: artifacts/\n        if-no-files-found: warn\n    \n"
  },
  {
    "path": ".github/workflows/package.yml",
    "content": "name: Package\non:\n  workflow_dispatch:\n    inputs:\n      build_id:\n        description: '构建工作流ID'\n        required: true\n        type: string\n      version:\n        description: '版本号'\n        required: true\n        default: '1.0.0'\n        type: string\n      artifact_name:\n        description: '签名的制品名称'\n        required: true\n        default: 'OpenSpeedy-unsigned-artifacts'\n        type: string\n\njobs:\n  package:\n    runs-on: windows-latest  # GitHub-hosted runner\n    \n    steps:\n    - name: Checkout\n      uses: actions/checkout@v4\n\n    - name: Download build artifact\n      uses: actions/download-artifact@v4\n      with:\n        name: ${{ github.event.inputs.artifact_name }}\n        run-id: ${{ github.event.inputs.build_id }}\n        path: artifacts/\n        github-token: ${{ secrets.GITHUB_TOKEN }}\n\n    - id: upload-unsigned-artifacts\n      name: Re-upload as new artifact\n      uses: actions/upload-artifact@v4\n      with:\n        name: OpenSpeedy-unsigned-artifacts  \n        path: artifacts/          \n        retention-days: 30       \n        \n    - name: SignPath signing\n      uses: signpath/github-action-submit-signing-request@v1.1\n      with:\n        api-token: ${{ secrets.SIGNPATH_API_TOKEN }}\n        organization-id: '58b9835d-38ea-4898-a564-76610c01cecd'\n        project-slug: OpenSpeedy\n        signing-policy-slug: release-signing\n        github-artifact-id: ${{ steps.upload-unsigned-artifacts.outputs.artifact-id }}\n        artifact-configuration-slug: initial\n        wait-for-completion: true\n        output-artifact-directory: signed-artifacts/\n        parameters: |\n          version: ${{ toJSON(github.event.inputs.version) }}\n        \n    - name: Upload signed artifacts\n      uses: actions/upload-artifact@v4\n      with:\n        name: OpenSpeedy-${{ github.event.inputs.version }}\n        path: signed-artifacts/\n        retention-days: 30\n\n    - name: Install WiX Toolset v3\n      run: |\n        choco install wixtoolset -y\n        $env:PATH += \";C:\\Program Files (x86)\\WiX Toolset v3.11\\bin\"\n        echo \"C:\\Program Files (x86)\\WiX Toolset v3.11\\bin\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append\n\n    - name: Prepare installer files\n      run: |\n        New-Item -ItemType Directory -Force -Path installer/files\n        Copy-Item -Path \"signed-artifacts/*\" -Destination \"installer/files/\" -Recurse -Force\n\n    - name: Build MSI installer\n      run: |\n        cd installer\n        candle.exe OpenSpeedy.wxs -dVersion=\"${{ github.event.inputs.version }}\" -ext WixUIExtension\n        light.exe OpenSpeedy.wixobj -out ../OpenSpeedy-installer-${{ github.event.inputs.version }}.msi -ext WixUIExtension\n\n    - id: upload-unsigned-installer\n      name: Upload installer\n      uses: actions/upload-artifact@v4\n      with:\n        name: OpenSpeedy-unsigned-installer-${{ github.event.inputs.version }}\n        path: OpenSpeedy-installer-${{ github.event.inputs.version }}.msi\n\n    - name: SignPath signing\n      uses: signpath/github-action-submit-signing-request@v1.1\n      with:\n        api-token: ${{ secrets.SIGNPATH_API_TOKEN }}\n        organization-id: '58b9835d-38ea-4898-a564-76610c01cecd'\n        project-slug: OpenSpeedy\n        signing-policy-slug: release-signing\n        github-artifact-id: ${{ steps.upload-unsigned-installer.outputs.artifact-id }}\n        artifact-configuration-slug: installer\n        wait-for-completion: true\n        output-artifact-directory: signed-installer/\n        parameters: |\n          version: ${{ toJSON(github.event.inputs.version) }}    \n\n    - name: Upload signed installer\n      uses: actions/upload-artifact@v4\n      with:\n        name: OpenSpeedy-installer-${{ github.event.inputs.version }}\n        path: signed-installer/\n        retention-days: 30\n"
  },
  {
    "path": ".gitignore",
    "content": "# This file is used to ignore files which are generated\n# ----------------------------------------------------------------------------\n*.msi\n*.wixobj\n*.wixpdb\n*~\n*.autosave\n*.a\n*.core\n*.moc\n*.o\n*.obj\n*.orig\n*.rej\n*.so\n*.so.*\n*_pch.h.cpp\n*_resource.rc\n*.qm\n.#*\n*.*#\ncore\n!core/\ntags\n.DS_Store\n.directory\n*.debug\nMakefile*\n*.prl\n*.app\nmoc_*.cpp\nui_*.h\nqrc_*.cpp\nThumbs.db\n*.res\n*.rc\n/.qmake.cache\n/.qmake.stash\n\n# qtcreator generated files\n*.pro.user*\n*.qbs.user*\nCMakeLists.txt.user*\n\n# xemacs temporary files\n*.flc\n\n# Vim temporary files\n.*.swp\n\n# Visual Studio generated files\n*.ib_pdb_index\n*.idb\n*.ilk\n*.pdb\n*.sln\n*.suo\n*.vcproj\n*vcproj.*.*.user\n*.ncb\n*.sdf\n*.opensdf\n*.vcxproj\n*vcxproj.*\n\n# MinGW generated files\n*.Debug\n*.Release\n\n# Python byte code\n*.pyc\n\n# Binaries\n# --------\n*.dll\n*.exe\n\n# Directories with generated files\n.moc/\n.obj/\n.pch/\n.rcc/\n.uic/\n/build*/\n.vs/\nout/"
  },
  {
    "path": ".gitmodules",
    "content": ""
  },
  {
    "path": "CMakeLists.txt",
    "content": "cmake_minimum_required(VERSION 3.16)\r\n\r\nproject(OpenSpeedy VERSION 1.7.7 LANGUAGES CXX)\r\n\r\n\r\nset(CMAKE_AUTOUIC ON)\r\nset(CMAKE_AUTOMOC ON)\r\nset(CMAKE_AUTORCC ON)\r\n\r\nset(CMAKE_CXX_STANDARD 17)\r\nset(CMAKE_CXX_STANDARD_REQUIRED ON)\r\n\r\n# 启用Qt静态链接\r\nset(CMAKE_MSVC_RUNTIME_LIBRARY \"MultiThreaded$<$<CONFIG:Debug>:Debug>\")\r\n\r\nfind_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets LinguistTools)\r\nfind_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Network WinExtras LinguistTools)\r\nset(TS_FILES\r\n  OpenSpeedy_zh_CN.ts\r\n  OpenSpeedy_en_US.ts\r\n  OpenSpeedy_zh_TW.ts\r\n)\r\n\r\nset(PROJECT_SOURCES\r\n        main.cpp\r\n        mainwindow.cpp\r\n        mainwindow.h\r\n        mainwindow.ui\r\n        themeutils.h\r\n        themeutils.cpp\r\n        ${TS_FILES}\r\n)\r\n\r\nif(${QT_VERSION_MAJOR} GREATER_EQUAL 6)\r\n    qt_add_executable(OpenSpeedy\r\n\r\n        MANUAL_FINALIZATION\r\n        ${PROJECT_SOURCES}\r\n        winutils.h winutils.cpp\r\n        processmonitor.h processmonitor.cpp\r\n        resources.qrc\r\n        images/icon.ico images/logo.png\r\n        icons.rc\r\n    )\r\n\r\n# Define target properties for Android with Qt 6 as:\r\n#    set_property(TARGET OpenSpeedy APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR\r\n\r\n#                 ${CMAKE_CURRENT_SOURCE_DIR}/android)\r\n# For more information, see https://doc.qt.io/qt-6/qt-add-executable.html#target-creation\r\n\r\n    qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})\r\nelse()\r\n      qt5_create_translation(QM_FILES\r\n        ${CMAKE_SOURCE_DIR}\r\n        ${TS_FILES})\r\n\r\n      add_definitions(\"-DUNICODE -DNOMINMAX\")\r\n      add_executable(OpenSpeedy\r\n\r\n          ${PROJECT_SOURCES}\r\n          processmonitor.h processmonitor.cpp\r\n          resources.qrc\r\n          images/icon.ico images/logo.png\r\n          icons.rc\r\n          config.h\r\n          windbg.h\r\n          aboutdialog.ui\r\n          aboutdialog.h aboutdialog.cpp aboutdialog.ui\r\n          preferencedialog.h preferencedialog.cpp preferencedialog.ui\r\n          qsinglekeysequenceedit.h qsinglekeysequenceedit.cpp\r\n          ${QM_FILES}\r\n\r\n\r\n      )\r\n\r\n      add_library(winutils\r\n        winutils.h winutils.cpp\r\n        cpuutils.h cpuutils.cpp\r\n        memutils.h memutils.cpp\r\n        taskscheduler.h\r\n        taskscheduler.cpp\r\n      )\r\n\r\n      target_include_directories(winutils PUBLIC\r\n          ${CMAKE_CURRENT_SOURCE_DIR}\r\n      )\r\n\r\n    target_link_libraries(winutils PUBLIC\r\n      Qt${QT_VERSION_MAJOR}::Core\r\n      pdh\r\n      ole32\r\n      oleaut32\r\n      taskschd)\r\nendif()\r\n\r\n\r\n\r\ntarget_link_libraries(OpenSpeedy PRIVATE\r\n\r\n  Qt${QT_VERSION_MAJOR}::Widgets\r\n  Qt${QT_VERSION_MAJOR}::Network\r\n  Qt${QT_VERSION_MAJOR}::WinExtras\r\n  winutils\r\n)\r\n\r\n# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.\r\n# If you are developing for iOS or macOS you should consider setting an\r\n# explicit, fixed bundle identifier manually though.\r\nif(${QT_VERSION} VERSION_LESS 6.1.0)\r\n  set(BUNDLE_ID_OPTION MACOSX_BUNDLE_GUI_IDENTIFIER com.example.OpenSpeedy)\r\nendif()\r\nset_target_properties(OpenSpeedy PROPERTIES\r\n\r\n    ${BUNDLE_ID_OPTION}\r\n    MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}\r\n    MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}\r\n    MACOSX_BUNDLE TRUE\r\n    WIN32_EXECUTABLE TRUE\r\n    #LINK_FLAGS \"/MANIFESTUAC:\\\"level='requireAdministrator' uiAccess='false'\\\" /SUBSYSTEM:WINDOWS\"\r\n)\r\n\r\ninclude(GNUInstallDirs)\r\ninstall(TARGETS OpenSpeedy\r\n\r\n    BUNDLE DESTINATION .\r\n    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}\r\n    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}\r\n)\r\n\r\nif(QT_VERSION_MAJOR EQUAL 6)\r\n    qt_finalize_executable(OpenSpeedy)\r\n\r\nendif()\r\n\r\nadd_subdirectory(third_party/minhook)\r\nadd_subdirectory(speedpatch)\r\nadd_subdirectory(bridge)\r\n\r\n"
  },
  {
    "path": "CMakePresets.json",
    "content": "{\n  \"version\": 3,\n  \"configurePresets\": [\n    {\n      \"hidden\": true,\n      \"name\": \"Qt\",\n      \"cacheVariables\": {\n        \"CMAKE_PREFIX_PATH\": \"$env{QTDIR}\"\n      },\n      \"vendor\": {\n        \"qt-project.org/Qt\": {\n          \"checksum\": \"wVa86FgEkvdCTVp1/nxvrkaemJc=\"\n        }\n      }\n    }\n  ],\n  \"vendor\": {\n    \"qt-project.org/Presets\": {\n      \"checksum\": \"67SmY24ZeVbebyKD0fGfIzb/bGI=\"\n    }\n  }\n}"
  },
  {
    "path": "CMakeUserPresets.json",
    "content": "{\n  \"version\": 3,\n  \"configurePresets\": [\n    {\n      \"name\": \"Qt-Debug\",\n      \"inherits\": \"Qt-Default\",\n      \"binaryDir\": \"${sourceDir}/out/build/debug\",\n      \"cacheVariables\": {\n        \"CMAKE_BUILD_TYPE\": \"Debug\",\n        \"CMAKE_CXX_FLAGS\": \"-DQT_QML_DEBUG\"\n      },\n      \"environment\": {\n        \"QML_DEBUG_ARGS\": \"-qmljsdebugger=file:{68d8eccf-89d3-401a-a51b-854d41e11c66},block\"\n      }\n    },\n    {\n      \"name\": \"Qt-Release\",\n      \"inherits\": \"Qt-Default\",\n      \"binaryDir\": \"${sourceDir}/out/build/release\",\n      \"cacheVariables\": {\n        \"CMAKE_BUILD_TYPE\": \"Release\"\n      }\n    },\n    {\n      \"hidden\": true,\n      \"name\": \"Qt-Default\",\n      \"inherits\": \"6.9.0_msvc2022_64\",\n      \"vendor\": {\n        \"qt-project.org/Default\": {\n          \"checksum\": \"p2g8qSfRuZwrHdoqsydD/azGQjs=\"\n        }\n      }\n    },\n    {\n      \"hidden\": true,\n      \"name\": \"6.9.0_msvc2022_64\",\n      \"inherits\": \"Qt\",\n      \"environment\": {\n        \"QTDIR\": \"D:/Qt/6.9.0/msvc2022_64\"\n      },\n      \"architecture\": {\n        \"strategy\": \"external\",\n        \"value\": \"x64\"\n      },\n      \"generator\": \"Ninja\",\n      \"vendor\": {\n        \"qt-project.org/Version\": {\n          \"checksum\": \"sBywmcWZZXChcZz0AVGlSBNHGws=\"\n        }\n      }\n    }\n  ],\n  \"vendor\": {\n    \"qt-project.org/Presets\": {\n      \"checksum\": \"IQB0bB4OeX7kqF6cObd8brpl2ck=\"\n    }\n  }\n}"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "OpenSpeedy_en_US.ts",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"en_US\">\n<context>\n    <name>AboutDialog</name>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"35\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"206\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"229\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"229\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"206\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"228\"/>\n        <source>关于</source>\n        <translation>About</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"59\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"207\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"230\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"230\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"207\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"229\"/>\n        <source>OpenSpeedy</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"89\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"209\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"231\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"231\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"209\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"230\"/>\n        <source>😄</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"239\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"212\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"239\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"239\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"212\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"238\"/>\n        <source>General Public License v3</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"321\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"243\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"243\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"242\"/>\n        <source>🎁</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"333\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"244\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"244\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"243\"/>\n        <source>捐赠：</source>\n        <translation>Sponsor：</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"348\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"245\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"245\"/>\n        <source>\n&lt;html&gt;&lt;body style=&quot; font-family:&apos;微软雅黑&apos;; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;\n&lt;a href=&quot;https://afdian.com/a/game1024&quot;&gt;&lt;span style=&quot;text-decoration: none; color:#003e92&quot;&gt;afdian/a/game1024&lt;/span&gt;&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"244\"/>\n        <source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;\n&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;\np, li { white-space: pre-wrap; }\nhr { height: 1px; border-width: 0; }\nli.unchecked::marker { content: &quot;\\2610&quot;; }\nli.checked::marker { content: &quot;\\2612&quot;; }\n&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;微软雅黑&apos;; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;\n&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;https://afdian.com/a/game1024&quot;&gt;&lt;span style=&quot;text-decoration: none; color:#003e92&quot;&gt;afdian/a/game1024&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"178\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"214\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"236\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"236\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"214\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"235\"/>\n        <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/game1024&quot;&gt;&lt;span style=&quot; text-decoration: none; color:#003e92;&quot;&gt;game1024&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"166\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"217\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"235\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"235\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"217\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"234\"/>\n        <source>v0.0.0</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"272\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"210\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"241\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"241\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"210\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"240\"/>\n        <source>作者：</source>\n        <translation>Author：</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"251\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"216\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"240\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"240\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"216\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"239\"/>\n        <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/game1024/OpenSpeedy&quot;&gt;&lt;span style=&quot; text-decoration: none; color:#003e92;&quot;&gt;game1024/OpenSpeedy&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"299\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"219\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"242\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"242\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"219\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"241\"/>\n        <source>主页：</source>\n        <translation>Github：</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"107\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"208\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"232\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"232\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"208\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"231\"/>\n        <source>版本：</source>\n        <translation>Version：</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"199\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"218\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"237\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"237\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"218\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"236\"/>\n        <source>协议：</source>\n        <translation>License：</translation>\n    </message>\n    <message>\n        <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;作者：&lt;a href=&quot;https://github.com/game1024&quot;&gt;&lt;span style=&quot; text-decoration: none; color:#003e92;&quot;&gt;game1024&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation type=\"vanished\">&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Author：&lt;a href=&quot;https://github.com/game1024&quot;&gt;&lt;span style=&quot; text-decoration: none; color:#003e92;&quot;&gt;game1024&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"135\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"213\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"233\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"233\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"213\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"232\"/>\n        <source>🚀</source>\n        <translation></translation>\n    </message>\n    <message>\n        <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;主页：&lt;a href=&quot;https://github.com/game1024/OpenSpeedy&quot;&gt;&lt;span style=&quot; text-decoration: none; color:#003e92;&quot;&gt;https://github.com/game1024/OpenSpeedy&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation type=\"vanished\">&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;HomePage：&lt;a href=&quot;https://github.com/game1024/OpenSpeedy&quot;&gt;&lt;span style=&quot; text-decoration: none; color:#003e92;&quot;&gt;https://github.com/game1024/OpenSpeedy&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"154\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"215\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"234\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"234\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"215\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"233\"/>\n        <source>🌳</source>\n        <translation></translation>\n    </message>\n    <message>\n        <source>版本：v0.0.0</source>\n        <translation type=\"vanished\">Version：v0.0.0</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"227\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"211\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"238\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"238\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"211\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"237\"/>\n        <source>📜</source>\n        <translation></translation>\n    </message>\n    <message>\n        <source>协议：General Public License v3</source>\n        <translation type=\"vanished\">License：General Public License v3</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.cpp\" line=\"27\"/>\n        <source>确认</source>\n        <translation>OK</translation>\n    </message>\n</context>\n<context>\n    <name>MainWindow</name>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"37\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"541\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <source>OpenSpeedy</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <source>Speedy</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"61\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"545\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"558\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"558\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"558\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"558\"/>\n        <source>⚡变速速率</source>\n        <translation>⚡Acceleration</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"137\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"547\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <source>🖥️ 操作系统</source>\n        <translation>🖥️ Operate System</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"155\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"548\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <source>windows 11 24H2</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"173\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"549\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <source>🔥 CPU</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"194\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"550\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <source>10.0%</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"212\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"551\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <source>📊 内存</source>\n        <translation>📊 Memory</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"230\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"565\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"565\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"565\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"565\"/>\n        <source> ( 7.2G / 32.0G ) 12.3%</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"248\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <source>♥️ 32bit 注入器</source>\n        <translation>♥️ 32bit Injector</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"266\"/>\n        <location filename=\"mainwindow.ui\" line=\"302\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <source>正常</source>\n        <translation>Normal</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"284\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <source>♥️ 64bit 注入器</source>\n        <translation>♥️ 64bit Injector</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"331\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <source>▲\n原速</source>\n        <translation>▲\nOrigin</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"630\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"576\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"576\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"576\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"576\"/>\n        <source>💻进程</source>\n        <translation type=\"unfinished\">💻Processes</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"784\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"581\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"581\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"581\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"581\"/>\n        <source>架构</source>\n        <translation>Arch</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"922\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <source>浅色</source>\n        <translation>Light</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"930\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <source>深色</source>\n        <translation>Dark</translation>\n    </message>\n    <message>\n        <source>体系结构</source>\n        <translation type=\"vanished\">Arch</translation>\n    </message>\n    <message>\n        <source>x1.0倍</source>\n        <translation type=\"vanished\">x1.0 times</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"541\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <source>✖️1.0倍</source>\n        <translation>✖️1.0 times</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"576\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <source>Ctrl + Alt + ⬆️ 增加速度</source>\n        <translation>Ctrl + Alt + ⬆️ Speed Up</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"588\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <source>Ctrl + Alt + ⬇️ 减少速度</source>\n        <translation>Ctrl + Alt + ⬇️ Speed Down</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"600\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <source>Ctrl + Alt + 0 重置速度</source>\n        <translation>Ctrl + Alt + 0 Reset Speed</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"75\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"546\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <source>开机自启</source>\n        <translation>Launch at startup</translation>\n    </message>\n    <message>\n        <source>💻系统进程</source>\n        <translation type=\"vanished\">💻System Process</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"654\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"577\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"577\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"577\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"577\"/>\n        <source>🔍输入进程名搜索...</source>\n        <translation>🔍Search with process name</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"751\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"571\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"584\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"584\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"584\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"584\"/>\n        <source>进程名称</source>\n        <translation>Process Name</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"762\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"583\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"583\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"583\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"583\"/>\n        <source>PID</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"773\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"582\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"582\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"582\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"582\"/>\n        <source>内存使用</source>\n        <translation>Memory</translation>\n    </message>\n    <message>\n        <source>平台架构</source>\n        <translation type=\"vanished\">Arch</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"795\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"580\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"580\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"580\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"580\"/>\n        <source>优先级</source>\n        <translation>Priority</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"806\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"579\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"579\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"579\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"579\"/>\n        <source>是否加速</source>\n        <translation>isAccelerated</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"830\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"585\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"585\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"585\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"585\"/>\n        <source>搜索到1200个进程, 已过滤展示20个</source>\n        <translation>Found 1200 processes, filtered to show 20</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"853\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"586\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"586\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"586\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"586\"/>\n        <source>📖关于</source>\n        <translation>📖About</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"861\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"587\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"587\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"587\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"587\"/>\n        <source>⌨️快捷键</source>\n        <translation>⌨️Keyboard</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"866\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"588\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"588\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"588\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"588\"/>\n        <source>🌐语言</source>\n        <translation>🌐Language</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"874\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"589\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"589\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"589\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"589\"/>\n        <source>🎨主题</source>\n        <translation>🎨Theme</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"889\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"542\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <source>中文(简体)</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"911\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"544\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <source>中文(繁體)</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"900\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"543\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <source>English</source>\n        <translation></translation>\n    </message>\n    <message>\n        <source>变速速率</source>\n        <translation type=\"vanished\">⚡Acceleration</translation>\n    </message>\n    <message>\n        <source>原速</source>\n        <translation type=\"vanished\">Origin</translation>\n    </message>\n    <message>\n        <source>系统进程</source>\n        <translation type=\"vanished\">System Process</translation>\n    </message>\n    <message>\n        <source>输入进程名搜索...</source>\n        <translation type=\"vanished\">Search with process name</translation>\n    </message>\n    <message>\n        <source>线程数</source>\n        <translation type=\"vanished\">Thread Num</translation>\n    </message>\n    <message>\n        <source>🪟 操作系统</source>\n        <translation type=\"vanished\">🪟 Operate System</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"130\"/>\n        <location filename=\"mainwindow.cpp\" line=\"135\"/>\n        <source>%1倍</source>\n        <translation>%1 times</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"131\"/>\n        <location filename=\"mainwindow.cpp\" line=\"136\"/>\n        <source>✖️%1倍</source>\n        <translation>✖️%1 times</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"204\"/>\n        <source>显示</source>\n        <translation>Show</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"205\"/>\n        <source>隐藏</source>\n        <translation>Hide</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"206\"/>\n        <source>退出</source>\n        <translation>Exit</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"404\"/>\n        <location filename=\"mainwindow.cpp\" line=\"417\"/>\n        <location filename=\"mainwindow.cpp\" line=\"430\"/>\n        <source>提示</source>\n        <translation>Tips</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"405\"/>\n        <location filename=\"mainwindow.cpp\" line=\"418\"/>\n        <location filename=\"mainwindow.cpp\" line=\"431\"/>\n        <source>直到重启应用后，界面的语言才会生效</source>\n        <translation>The UI language will only take effect after restarting the application.</translation>\n    </message>\n</context>\n<context>\n    <name>PreferenceDialog</name>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"20\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <source>快捷键</source>\n        <translation>Keyboard</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"40\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <source>档位3</source>\n        <translation>Shift3</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"52\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <source>速度</source>\n        <translation>Speed</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"62\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <source>Ctrl+Alt+1</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"74\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <source>减少速度</source>\n        <translation>Speed Down</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"89\"/>\n        <location filename=\"preferencedialog.ui\" line=\"324\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <source>按键</source>\n        <translation>Key</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"119\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <source>Ctrl+Alt+5</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"131\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <source>档位5</source>\n        <translation>Shift5</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"138\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <source>Ctrl+Alt+3</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"168\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <source>档位1</source>\n        <translation>Shift1</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"175\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <source>Ctrl+Alt+0</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"187\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <source>重置速度</source>\n        <translation>Speed Reset</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"197\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <source>Ctrl+Alt+Up</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"204\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <source>Ctrl+Alt+4</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"229\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <source>档位2</source>\n        <translation>Shift2</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"236\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <source>Ctrl+Alt+2</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"243\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <source>Ctrl+Alt+Down</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"268\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <source>增加速度</source>\n        <translation>Speed Up</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"299\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <source>档位4</source>\n        <translation>Shift4</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"354\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <source>步幅</source>\n        <translation>Step</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"40\"/>\n        <source>确认</source>\n        <translation>OK</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"41\"/>\n        <source>取消</source>\n        <translation>Cancel</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"272\"/>\n        <source>%1 增加速度</source>\n        <translation>%1 Speed Up</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"277\"/>\n        <source>%1 减少速度</source>\n        <translation>%1 Speed Down</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"282\"/>\n        <source>%1 重置速度</source>\n        <translation>%1 Speed Reset</translation>\n    </message>\n</context>\n<context>\n    <name>ProcessMonitor</name>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"84\"/>\n        <location filename=\"processmonitor.cpp\" line=\"97\"/>\n        <source>搜索到%1个进程, 已过滤展示%2个</source>\n        <translation>Found %1 processes, filtered to show %2</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"126\"/>\n        <source>加速中</source>\n        <translation>Accelerating</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"238\"/>\n        <location filename=\"processmonitor.cpp\" line=\"292\"/>\n        <source>高</source>\n        <translation>High</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"241\"/>\n        <location filename=\"processmonitor.cpp\" line=\"295\"/>\n        <source>中</source>\n        <translation>Medium</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"244\"/>\n        <location filename=\"processmonitor.cpp\" line=\"298\"/>\n        <source>低</source>\n        <translation>Low</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"247\"/>\n        <location filename=\"processmonitor.cpp\" line=\"301\"/>\n        <source>实时</source>\n        <translation>RT</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"250\"/>\n        <location filename=\"processmonitor.cpp\" line=\"304\"/>\n        <source>未知</source>\n        <translation>Unknown</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"356\"/>\n        <location filename=\"processmonitor.cpp\" line=\"385\"/>\n        <source>启动失败</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"357\"/>\n        <source>32位桥接子进程启动失败，请确保Speedy.exe和bridge32.exe在同一目录下</source>\n        <translation>Failed to start 32-bit bridge subprocess. Please ensure Speedy.exe and bridge32.exe are in the same directory.</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"386\"/>\n        <source>64位桥接子进程启动失败，请确保Speedy.exe和bridge64.exe在同一目录下</source>\n        <translation>Failed to start 64-bit bridge subprocess. Please ensure Speedy.exe and bridge64.exe are in the same directory.</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"415\"/>\n        <location filename=\"processmonitor.cpp\" line=\"426\"/>\n        <source>正常</source>\n        <translation>Normal</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"420\"/>\n        <location filename=\"processmonitor.cpp\" line=\"431\"/>\n        <source>异常退出</source>\n        <translation>Error Exit</translation>\n    </message>\n</context>\n</TS>\n"
  },
  {
    "path": "OpenSpeedy_zh_CN.ts",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"zh_CN\">\n<context>\n    <name>AboutDialog</name>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"35\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"206\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"229\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"229\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"206\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"228\"/>\n        <source>关于</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"59\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"207\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"230\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"230\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"207\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"229\"/>\n        <source>OpenSpeedy</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"89\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"209\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"231\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"231\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"209\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"230\"/>\n        <source>😄</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"239\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"212\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"239\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"239\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"212\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"238\"/>\n        <source>General Public License v3</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"321\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"243\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"243\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"242\"/>\n        <source>🎁</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"333\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"244\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"244\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"243\"/>\n        <source>捐赠：</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"348\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"245\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"245\"/>\n        <source>\n&lt;html&gt;&lt;body style=&quot; font-family:&apos;微软雅黑&apos;; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;\n&lt;a href=&quot;https://afdian.com/a/game1024&quot;&gt;&lt;span style=&quot;text-decoration: none; color:#003e92&quot;&gt;afdian/a/game1024&lt;/span&gt;&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"244\"/>\n        <source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;\n&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;\np, li { white-space: pre-wrap; }\nhr { height: 1px; border-width: 0; }\nli.unchecked::marker { content: &quot;\\2610&quot;; }\nli.checked::marker { content: &quot;\\2612&quot;; }\n&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;微软雅黑&apos;; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;\n&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;https://afdian.com/a/game1024&quot;&gt;&lt;span style=&quot;text-decoration: none; color:#003e92&quot;&gt;afdian/a/game1024&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"178\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"214\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"236\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"236\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"214\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"235\"/>\n        <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/game1024&quot;&gt;&lt;span style=&quot; text-decoration: none; color:#003e92;&quot;&gt;game1024&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"166\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"217\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"235\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"235\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"217\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"234\"/>\n        <source>v0.0.0</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"272\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"210\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"241\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"241\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"210\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"240\"/>\n        <source>作者：</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"251\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"216\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"240\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"240\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"216\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"239\"/>\n        <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/game1024/OpenSpeedy&quot;&gt;&lt;span style=&quot; text-decoration: none; color:#003e92;&quot;&gt;game1024/OpenSpeedy&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"299\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"219\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"242\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"242\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"219\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"241\"/>\n        <source>主页：</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"107\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"208\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"232\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"232\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"208\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"231\"/>\n        <source>版本：</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"199\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"218\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"237\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"237\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"218\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"236\"/>\n        <source>协议：</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"135\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"213\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"233\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"233\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"213\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"232\"/>\n        <source>🚀</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"154\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"215\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"234\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"234\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"215\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"233\"/>\n        <source>🌳</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"227\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"211\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"238\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"238\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"211\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"237\"/>\n        <source>📜</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.cpp\" line=\"27\"/>\n        <source>确认</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n</context>\n<context>\n    <name>MainWindow</name>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"37\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"541\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <source>OpenSpeedy</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"61\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"545\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"558\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"558\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"558\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"558\"/>\n        <source>⚡变速速率</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"137\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"547\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <source>🖥️ 操作系统</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"155\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"548\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <source>windows 11 24H2</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"173\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"549\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <source>🔥 CPU</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"194\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"550\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <source>10.0%</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"212\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"551\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <source>📊 内存</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"230\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"565\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"565\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"565\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"565\"/>\n        <source> ( 7.2G / 32.0G ) 12.3%</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"248\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <source>♥️ 32bit 注入器</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"266\"/>\n        <location filename=\"mainwindow.ui\" line=\"302\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <source>正常</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"284\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <source>♥️ 64bit 注入器</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"331\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <source>▲\n原速</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"630\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"576\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"576\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"576\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"576\"/>\n        <source>💻进程</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"784\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"581\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"581\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"581\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"581\"/>\n        <source>架构</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"541\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <source>✖️1.0倍</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"576\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <source>Ctrl + Alt + ⬆️ 增加速度</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"588\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <source>Ctrl + Alt + ⬇️ 减少速度</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"600\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <source>Ctrl + Alt + 0 重置速度</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"75\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"546\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <source>开机自启</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <source>Speedy</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"654\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"577\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"577\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"577\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"577\"/>\n        <source>🔍输入进程名搜索...</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"751\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"571\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"584\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"584\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"584\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"584\"/>\n        <source>进程名称</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"762\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"583\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"583\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"583\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"583\"/>\n        <source>PID</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"773\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"582\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"582\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"582\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"582\"/>\n        <source>内存使用</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"795\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"580\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"580\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"580\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"580\"/>\n        <source>优先级</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"806\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"579\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"579\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"579\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"579\"/>\n        <source>是否加速</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"830\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"585\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"585\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"585\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"585\"/>\n        <source>搜索到1200个进程, 已过滤展示20个</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"853\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"586\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"586\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"586\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"586\"/>\n        <source>📖关于</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"861\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"587\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"587\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"587\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"587\"/>\n        <source>⌨️快捷键</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"866\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"588\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"588\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"588\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"588\"/>\n        <source>🌐语言</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"874\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"589\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"589\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"589\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"589\"/>\n        <source>🎨主题</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"889\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"542\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <source>中文(简体)</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"911\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"544\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <source>中文(繁體)</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"922\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <source>浅色</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"930\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <source>深色</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"900\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"543\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <source>English</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"130\"/>\n        <location filename=\"mainwindow.cpp\" line=\"135\"/>\n        <source>%1倍</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"131\"/>\n        <location filename=\"mainwindow.cpp\" line=\"136\"/>\n        <source>✖️%1倍</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"204\"/>\n        <source>显示</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"205\"/>\n        <source>隐藏</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"206\"/>\n        <source>退出</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"404\"/>\n        <location filename=\"mainwindow.cpp\" line=\"417\"/>\n        <location filename=\"mainwindow.cpp\" line=\"430\"/>\n        <source>提示</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"405\"/>\n        <location filename=\"mainwindow.cpp\" line=\"418\"/>\n        <location filename=\"mainwindow.cpp\" line=\"431\"/>\n        <source>直到重启应用后，界面的语言才会生效</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n</context>\n<context>\n    <name>PreferenceDialog</name>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"20\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <source>快捷键</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"40\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <source>档位3</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"52\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <source>速度</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"62\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <source>Ctrl+Alt+1</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"74\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <source>减少速度</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"89\"/>\n        <location filename=\"preferencedialog.ui\" line=\"324\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <source>按键</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"119\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <source>Ctrl+Alt+5</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"131\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <source>档位5</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"138\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <source>Ctrl+Alt+3</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"168\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <source>档位1</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"175\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <source>Ctrl+Alt+0</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"187\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <source>重置速度</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"197\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <source>Ctrl+Alt+Up</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"204\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <source>Ctrl+Alt+4</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"229\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <source>档位2</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"236\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <source>Ctrl+Alt+2</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"243\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <source>Ctrl+Alt+Down</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"268\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <source>增加速度</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"299\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <source>档位4</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"354\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <source>步幅</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"40\"/>\n        <source>确认</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"41\"/>\n        <source>取消</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"272\"/>\n        <source>%1 增加速度</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"277\"/>\n        <source>%1 减少速度</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"282\"/>\n        <source>%1 重置速度</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n</context>\n<context>\n    <name>ProcessMonitor</name>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"84\"/>\n        <location filename=\"processmonitor.cpp\" line=\"97\"/>\n        <source>搜索到%1个进程, 已过滤展示%2个</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"126\"/>\n        <source>加速中</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"238\"/>\n        <location filename=\"processmonitor.cpp\" line=\"292\"/>\n        <source>高</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"241\"/>\n        <location filename=\"processmonitor.cpp\" line=\"295\"/>\n        <source>中</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"244\"/>\n        <location filename=\"processmonitor.cpp\" line=\"298\"/>\n        <source>低</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"247\"/>\n        <location filename=\"processmonitor.cpp\" line=\"301\"/>\n        <source>实时</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"250\"/>\n        <location filename=\"processmonitor.cpp\" line=\"304\"/>\n        <source>未知</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"356\"/>\n        <location filename=\"processmonitor.cpp\" line=\"385\"/>\n        <source>启动失败</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"357\"/>\n        <source>32位桥接子进程启动失败，请确保Speedy.exe和bridge32.exe在同一目录下</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"386\"/>\n        <source>64位桥接子进程启动失败，请确保Speedy.exe和bridge64.exe在同一目录下</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"415\"/>\n        <location filename=\"processmonitor.cpp\" line=\"426\"/>\n        <source>正常</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"420\"/>\n        <location filename=\"processmonitor.cpp\" line=\"431\"/>\n        <source>异常退出</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n</context>\n</TS>\n"
  },
  {
    "path": "OpenSpeedy_zh_TW.ts",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\" language=\"zh_TW\">\n<context>\n    <name>AboutDialog</name>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"35\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"206\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"229\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"229\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"206\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"228\"/>\n        <source>关于</source>\n        <translation>關於</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"59\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"207\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"230\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"230\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"207\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"229\"/>\n        <source>OpenSpeedy</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"107\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"208\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"232\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"232\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"208\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"231\"/>\n        <source>版本：</source>\n        <translation>版本：</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"321\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"243\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"243\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"242\"/>\n        <source>🎁</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"333\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"244\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"244\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"243\"/>\n        <source>捐赠：</source>\n        <translation>捐贈</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"348\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"245\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"245\"/>\n        <source>\n&lt;html&gt;&lt;body style=&quot; font-family:&apos;微软雅黑&apos;; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;\n&lt;a href=&quot;https://afdian.com/a/game1024&quot;&gt;&lt;span style=&quot;text-decoration: none; color:#003e92&quot;&gt;afdian/a/game1024&lt;/span&gt;&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"244\"/>\n        <source>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;\n&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;\np, li { white-space: pre-wrap; }\nhr { height: 1px; border-width: 0; }\nli.unchecked::marker { content: &quot;\\2610&quot;; }\nli.checked::marker { content: &quot;\\2612&quot;; }\n&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:&apos;微软雅黑&apos;; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;\n&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;https://afdian.com/a/game1024&quot;&gt;&lt;span style=&quot;text-decoration: none; color:#003e92&quot;&gt;afdian/a/game1024&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"89\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"209\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"231\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"231\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"209\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"230\"/>\n        <source>😄</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"272\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"210\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"241\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"241\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"210\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"240\"/>\n        <source>作者：</source>\n        <translation>作者：</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"227\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"211\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"238\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"238\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"211\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"237\"/>\n        <source>📜</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"239\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"212\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"239\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"239\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"212\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"238\"/>\n        <source>General Public License v3</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"135\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"213\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"233\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"233\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"213\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"232\"/>\n        <source>🚀</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"178\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"214\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"236\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"236\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"214\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"235\"/>\n        <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/game1024&quot;&gt;&lt;span style=&quot; text-decoration: none; color:#003e92;&quot;&gt;game1024&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"154\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"215\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"234\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"234\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"215\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"233\"/>\n        <source>🌳</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"251\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"216\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"240\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"240\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"216\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"239\"/>\n        <source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/game1024/OpenSpeedy&quot;&gt;&lt;span style=&quot; text-decoration: none; color:#003e92;&quot;&gt;game1024/OpenSpeedy&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"166\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"217\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"235\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"235\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"217\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"234\"/>\n        <source>v0.0.0</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"199\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"218\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"237\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"237\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"218\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"236\"/>\n        <source>协议：</source>\n        <translation>協議：</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.ui\" line=\"299\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"219\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_aboutdialog.h\" line=\"242\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"242\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_aboutdialog.h\" line=\"219\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_aboutdialog.h\" line=\"241\"/>\n        <source>主页：</source>\n        <translation>主頁：</translation>\n    </message>\n    <message>\n        <location filename=\"aboutdialog.cpp\" line=\"27\"/>\n        <source>确认</source>\n        <translation>確認</translation>\n    </message>\n</context>\n<context>\n    <name>MainWindow</name>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"37\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"541\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <source>OpenSpeedy</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"61\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"545\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"558\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"558\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"558\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"558\"/>\n        <source>⚡变速速率</source>\n        <translation>⚡變速倍率</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"75\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"546\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <source>开机自启</source>\n        <translation>開機自啟</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"541\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"559\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <source>✖️1.0倍</source>\n        <translation>✖️1.0倍</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"137\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"547\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <source>🖥️ 操作系统</source>\n        <translation>🖥️ 作業系統</translation>\n    </message>\n    <message>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <source>Speedy</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"155\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"548\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <source>windows 11 24H2</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"173\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"549\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <source>🔥 CPU</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"194\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"550\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <source>10.0%</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"212\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"551\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <source>📊 内存</source>\n        <translation>📊 記憶體</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"230\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"552\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"565\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"565\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"565\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"565\"/>\n        <source> ( 7.2G / 32.0G ) 12.3%</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"248\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <source>♥️ 32bit 注入器</source>\n        <translation>♥️ 32bit 注入器</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"266\"/>\n        <location filename=\"mainwindow.ui\" line=\"302\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <source>正常</source>\n        <translation>正常</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"284\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <source>♥️ 64bit 注入器</source>\n        <translation>♥️ 64bit 注入器</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"331\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <source>▲\n原速</source>\n        <translation>▲\n原速</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"576\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"560\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <source>Ctrl + Alt + ⬆️ 增加速度</source>\n        <translation>Ctrl + Alt + ⬆️ 增加速度</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"588\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"561\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <source>Ctrl + Alt + ⬇️ 减少速度</source>\n        <translation>Ctrl + Alt + ⬇️ 減少速度</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"600\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"562\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <source>Ctrl + Alt + 0 重置速度</source>\n        <translation>Ctrl + Alt + 0 重設速度</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"630\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"563\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"576\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"576\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"576\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"576\"/>\n        <source>💻进程</source>\n        <translation type=\"unfinished\">💻行程</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"922\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"556\"/>\n        <source>浅色</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"930\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"557\"/>\n        <source>深色</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <source>💻系统进程</source>\n        <translation type=\"vanished\">💻系統行程</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"654\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"564\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"577\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"577\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"577\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"577\"/>\n        <source>🔍输入进程名搜索...</source>\n        <translation>🔍輸入行程名搜尋...</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"751\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"571\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"584\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"584\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"584\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"584\"/>\n        <source>进程名称</source>\n        <translation>行程名稱</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"762\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"570\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"583\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"583\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"583\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"583\"/>\n        <source>PID</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"773\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"569\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"582\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"582\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"582\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"582\"/>\n        <source>内存使用</source>\n        <translation>記憶體使用</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"784\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"568\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"581\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"581\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"581\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"581\"/>\n        <source>架构</source>\n        <translation>架構</translation>\n    </message>\n    <message>\n        <source>平台架构</source>\n        <translation type=\"vanished\">平臺架構</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"795\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"567\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"580\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"580\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"580\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"580\"/>\n        <source>优先级</source>\n        <translation>優先順序</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"806\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"566\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"579\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"579\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"579\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"579\"/>\n        <source>是否加速</source>\n        <translation>是否加速</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"830\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"572\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"585\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"585\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"585\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"585\"/>\n        <source>搜索到1200个进程, 已过滤展示20个</source>\n        <translation>搜索到1200个行程, 已過濾顯示20個</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"853\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"573\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"586\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"586\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"586\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"586\"/>\n        <source>📖关于</source>\n        <translation>📖關於</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"861\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"574\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"587\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"587\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"587\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"587\"/>\n        <source>⌨️快捷键</source>\n        <translation>⌨️快速鍵</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"866\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"575\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"588\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"588\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"588\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"588\"/>\n        <source>🌐语言</source>\n        <translation>🌐語言</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"874\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"589\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"589\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"589\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"589\"/>\n        <source>🎨主题</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"889\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"542\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"553\"/>\n        <source>中文(简体)</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"900\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"543\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"554\"/>\n        <source>English</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.ui\" line=\"911\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"544\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_mainwindow.h\" line=\"555\"/>\n        <source>中文(繁體)</source>\n        <translation></translation>\n    </message>\n    <message>\n        <source>变速速率</source>\n        <translation type=\"vanished\">變速速率</translation>\n    </message>\n    <message>\n        <source>原速</source>\n        <translation type=\"vanished\">原速</translation>\n    </message>\n    <message>\n        <source>x1.0倍</source>\n        <translation type=\"vanished\">x1.0倍</translation>\n    </message>\n    <message>\n        <source>系统进程</source>\n        <translation type=\"vanished\">系統行程</translation>\n    </message>\n    <message>\n        <source>输入进程名搜索...</source>\n        <translation type=\"vanished\">輸入行程名搜索</translation>\n    </message>\n    <message>\n        <source>线程数</source>\n        <translation type=\"vanished\">線程數</translation>\n    </message>\n    <message>\n        <source>🪟 操作系统</source>\n        <translation type=\"vanished\">🪟 作業系統</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"130\"/>\n        <location filename=\"mainwindow.cpp\" line=\"135\"/>\n        <source>%1倍</source>\n        <translation>%1倍</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"131\"/>\n        <location filename=\"mainwindow.cpp\" line=\"136\"/>\n        <source>✖️%1倍</source>\n        <translation>✖️%1倍</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"204\"/>\n        <source>显示</source>\n        <translation>顯示</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"205\"/>\n        <source>隐藏</source>\n        <translation>隱藏</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"206\"/>\n        <source>退出</source>\n        <translation>退出</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"404\"/>\n        <location filename=\"mainwindow.cpp\" line=\"417\"/>\n        <location filename=\"mainwindow.cpp\" line=\"430\"/>\n        <source>提示</source>\n        <translation>提示</translation>\n    </message>\n    <message>\n        <location filename=\"mainwindow.cpp\" line=\"405\"/>\n        <location filename=\"mainwindow.cpp\" line=\"418\"/>\n        <location filename=\"mainwindow.cpp\" line=\"431\"/>\n        <source>直到重启应用后，界面的语言才会生效</source>\n        <translation>直到重啟應用後，界面的語言才會生效</translation>\n    </message>\n    <message>\n        <source>是否注入</source>\n        <translation type=\"vanished\">是否注入</translation>\n    </message>\n    <message>\n        <source>体系结构</source>\n        <translation type=\"vanished\">架构</translation>\n    </message>\n</context>\n<context>\n    <name>PreferenceDialog</name>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"20\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"288\"/>\n        <source>快捷键</source>\n        <translation>快速鍵</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"40\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"289\"/>\n        <source>档位3</source>\n        <translation>檔位3</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"52\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"290\"/>\n        <source>速度</source>\n        <translation>速度</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"62\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"291\"/>\n        <source>Ctrl+Alt+1</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"74\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"292\"/>\n        <source>减少速度</source>\n        <translation>減少速度</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"89\"/>\n        <location filename=\"preferencedialog.ui\" line=\"324\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"293\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"307\"/>\n        <source>按键</source>\n        <translation>按鍵</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"119\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"294\"/>\n        <source>Ctrl+Alt+5</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"131\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"295\"/>\n        <source>档位5</source>\n        <translation>檔位5</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"138\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"296\"/>\n        <source>Ctrl+Alt+3</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"168\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"297\"/>\n        <source>档位1</source>\n        <translation>檔位1</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"175\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"298\"/>\n        <source>Ctrl+Alt+0</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"187\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"299\"/>\n        <source>重置速度</source>\n        <translation>重設速度</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"197\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"300\"/>\n        <source>Ctrl+Alt+Up</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"204\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"301\"/>\n        <source>Ctrl+Alt+4</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"229\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"302\"/>\n        <source>档位2</source>\n        <translation>檔位2</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"236\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"303\"/>\n        <source>Ctrl+Alt+2</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"243\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"304\"/>\n        <source>Ctrl+Alt+Down</source>\n        <translation></translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"268\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"305\"/>\n        <source>增加速度</source>\n        <translation>增加速度</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"299\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"306\"/>\n        <source>档位4</source>\n        <translation>檔位4</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.ui\" line=\"354\"/>\n        <location filename=\"build/CMAKE_x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <location filename=\"build/x64_static-Release/OpenSpeedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <location filename=\"build/x64_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <location filename=\"build/x86_static-Debug/Speedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <location filename=\"build/x86_static-Release/Speedy_autogen/include/ui_preferencedialog.h\" line=\"308\"/>\n        <source>步幅</source>\n        <translation>步進</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"40\"/>\n        <source>确认</source>\n        <translation>確認</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"41\"/>\n        <source>取消</source>\n        <translation>取消</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"272\"/>\n        <source>%1 增加速度</source>\n        <translation>%1 增加速度</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"277\"/>\n        <source>%1 减少速度</source>\n        <translation>%1 減少速度</translation>\n    </message>\n    <message>\n        <location filename=\"preferencedialog.cpp\" line=\"282\"/>\n        <source>%1 重置速度</source>\n        <translation>%1 重設速度</translation>\n    </message>\n</context>\n<context>\n    <name>ProcessMonitor</name>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"84\"/>\n        <location filename=\"processmonitor.cpp\" line=\"97\"/>\n        <source>搜索到%1个进程, 已过滤展示%2个</source>\n        <translation>搜尋到%1個行程，已篩選顯示%2個</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"126\"/>\n        <source>加速中</source>\n        <translation>加速中</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"238\"/>\n        <location filename=\"processmonitor.cpp\" line=\"292\"/>\n        <source>高</source>\n        <translation>高</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"241\"/>\n        <location filename=\"processmonitor.cpp\" line=\"295\"/>\n        <source>中</source>\n        <translation>標準</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"244\"/>\n        <location filename=\"processmonitor.cpp\" line=\"298\"/>\n        <source>低</source>\n        <translation>在標準以下</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"247\"/>\n        <location filename=\"processmonitor.cpp\" line=\"301\"/>\n        <source>实时</source>\n        <translation>即時</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"250\"/>\n        <location filename=\"processmonitor.cpp\" line=\"304\"/>\n        <source>未知</source>\n        <translation>未知</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"356\"/>\n        <location filename=\"processmonitor.cpp\" line=\"385\"/>\n        <source>启动失败</source>\n        <translation type=\"unfinished\"></translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"357\"/>\n        <source>32位桥接子进程启动失败，请确保Speedy.exe和bridge32.exe在同一目录下</source>\n        <translation>32位橋接子進程啟動失敗，請確保Speedy.exe和bridge32.exe在同一目錄下</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"386\"/>\n        <source>64位桥接子进程启动失败，请确保Speedy.exe和bridge64.exe在同一目录下</source>\n        <translation>64位橋接子進程啟動失敗，請確保Speedy.exe和bridge64.exe在同一目錄下</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"415\"/>\n        <location filename=\"processmonitor.cpp\" line=\"426\"/>\n        <source>正常</source>\n        <translation>正常</translation>\n    </message>\n    <message>\n        <location filename=\"processmonitor.cpp\" line=\"420\"/>\n        <location filename=\"processmonitor.cpp\" line=\"431\"/>\n        <source>异常退出</source>\n        <translation>異常退出</translation>\n    </message>\n</context>\n</TS>\n"
  },
  {
    "path": "README.md",
    "content": "\n\n<h1 align=\"center\"> OpenSpeedy </h1>\n\n<p align=\"center\">\n  <img style=\"margin:0 auto\" width=100 height=100 src=\"https://github.com/user-attachments/assets/a82ceda2-9b7b-41e4-96dc-cd250c9bd3ff\">\n  </img>  \n</p>\n\n<p align=\"center\">\n  OpenSpeedy is an open-source and free game speed tool that helps you break frame rate limitations and provides a smoother, silkier gaming acceleration experience.\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.fiofio.cn/en/\">Offcial Website</a>\n  <br/>\n  <br/>\n  \n  <img src=\"https://api.visitorbadge.io/api/visitors?path=game1024.openspeedy&countColor=%234ecdc4\">\n  <br/>\n    \n  <a href=\"https://github.com/game1024/OpenSpeedy/stargazers\">\n    <img src=\"https://img.shields.io/github/stars/game1024/OpenSpeedy?style=for-the-badge&color=yellow\" alt=\"GitHub Stars\">\n  </a>\n\n  <img src=\"https://img.shields.io/github/forks/game1024/OpenSpeedy?style=for-the-badge&color=8a2be2\" alt=\"GitHub Forks\">\n\n  <a href=\"https://github.com/game1024/OpenSpeedy/issues\">\n    <img src=\"https://img.shields.io/github/issues-raw/game1024/OpenSpeedy?style=for-the-badge&label=Issues&color=orange\" alt=\"Github Issues\">\n  </a>\n  <br/>  \n  \n  <a href=\"https://github.com/game1024/OpenSpeedy/releases\">\n    <img src=\"https://img.shields.io/github/downloads/game1024/OpenSpeedy/total?style=for-the-badge\" alt=\"Downloads\">\n  </a>\n  <a href=\"https://github.com/game1024/OpenSpeedy/releases\">\n    <img src=\"https://img.shields.io/github/v/release/game1024/OpenSpeedy?style=for-the-badge&color=brightgreen\" alt=\"Version\">\n  </a>\n  <a href=\"https://github.com/game1024/OpenSpeedy/actions\">\n      <img src=\"https://img.shields.io/github/actions/workflow/status/game1024/OpenSpeedy/ci.yml?style=for-the-badge\" alt=\"Github Action\">\n  </a>\n  <a href=\"https://github.com/game1024/OpenSpeedy\">\n    <img src=\"https://img.shields.io/badge/Platform-Windows-lightblue?style=for-the-badge\" alt=\"Platform\">\n  </a>\n  <br/>\n  \n  <a href=\"https://github.com/game1024/OpenSpeedy/commits\">\n    <img src=\"https://img.shields.io/github/commit-activity/m/game1024/OpenSpeedy?style=for-the-badge\" alt=\"Commit Activity\">\n  </a>\n  <img src=\"https://img.shields.io/badge/language-C/C++-blue?style=for-the-badge\">\n  <img src=\"https://img.shields.io/badge/License-GPLv3-green.svg?style=for-the-badge\">\n  <br/>\n\n  <a href=\"https://hellogithub.com/repository/975f473c56ad4369a1c30ac9aa5819e0\" target=\"_blank\">\n    <img src=\"https://abroad.hellogithub.com/v1/widgets/recommend.svg?rid=975f473c56ad4369a1c30ac9aa5819e0&claim_uid=kmUCncHJr9SpNV7&theme=neutral\" alt=\"Featured｜HelloGitHub\" style=\"width: 250px; height: 54px;\" width=\"250\" height=\"54\" />\n  </a>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/game1024/OpenSpeedy/blob/master/docs/README_cn.md\">\n    简体中文\n  </a>\n  ·\n  <a href=\"https://github.com/game1024/OpenSpeedy/blob/master/docs/README_ja.md\">\n    日本語\n  </a>\n  ·\n  <a href=\"https://github.com/game1024/OpenSpeedy?tab=readme-ov-file#-openspeedy-\">\n    English\n  </a>\n</p>\n\n# 🚀 Features\n- Completely free and open-source\n- Easy-to-use interface\n- Customizable speed multiplier\n- Good compatibility with various game engines\n- Low system resource consumption\n- Supports accelerating both x86 and x64 processes\n- Non-invasive to the kernel: Ring3 level Hook, does not compromise the system kernel\n\n# 💾 Installation\n📦 **Method1: Winget**\n\n``` powershell\n# install \nwinget install openspeedy\n\n# open a new terminal, you can run openspeedy by following command\nspeedy\n``` \n\n📥 **Method2: Manual Download**\n\nVisit the [Installation Page](https://github.com/game1024/OpenSpeedy/releases) to download the latest version\n\n\n\n# 💻 System Requirements\n- OS: Windows 10 or later\n- Platform: x86 (32-bit) and x64 (64-bit)\n\n# 📝 Usage Instructions\n1. Start OpenSpeedy\n2. Launch the target game you want to speed up\n<img src=\"https://github.com/user-attachments/assets/648e721d-9c3a-4d82-954c-19b16355d084\" width=\"50%\">\n\n3. Select the game process, and adjust the speed multiplier in the OpenSpeedy interface\n<img src=\"https://github.com/user-attachments/assets/9469aae9-8be0-4e40-884d-1fbea3206e73\" width=\"50%\">\n\n4. The effect takes effect immediately. Compare the results below\n\n<video src=\"https://github.com/user-attachments/assets/74471b1f-7f95-4de8-b5aa-7edc85c9d5f0\" width=\"70%\"></video>\n\n# 🔧 Technical Principle\nOpenSpeedy achieves game speed adjustment by hooking the following Windows system time functions:\n\n| Function Name | Library | Description |\n|---------------|---------|-------------|\n| Sleep | user32.dll | Thread sleep |\n| SetTimer | user32.dll | Create message-based timer |\n| timeGetTime | winmm.dll | Get milliseconds elapsed since system startup |\n| GetTickCount | kernel32.dll | Get milliseconds elapsed since system startup |\n| GetTickCount64 | kernel32.dll | Get milliseconds elapsed since system startup (64-bit) |\n| QueryPerformanceCounter | kernel32.dll | High precision performance counter |\n| GetSystemTimeAsFileTime | kernel32.dll | Get system time |\n| GetSystemTimePreciseAsFileTime | kernel32.dll | Get high precision system time |\n\n# ⚠️ Notes\n- This tool is for learning and research purposes only\n- Some online games may have anti-cheat systems. Using this tool may result in your account being banned\n- Excessive speeding up may cause the game physics engine to malfunction or crash\n- Not recommended for use in competitive online games\n- Open source product does not include digital signature and may be falsely flagged by antivirus software\n\n# 🔄 Feedback\nIf you encounter any issues during use, feel free to provide feedback via:\n- [FAQ](https://github.com/game1024/OpenSpeedy/wiki#faq) - You can first check the wiki to locate the issue.\n- [GitHub Issues](https://github.com/game1024/OpenSpeedy/issues) - Submit issue reports\n\n\n# 🎁 Buy me a coffee\nIf you find the OpenSpeedy project helpful, you can buy me a coffee~ ☕️\n\n|Name|Description|\n|--|--|\n|365VPN|uses dedicated lines to connect worldwide, offering speeds of up to 10Gbps. Download now to start surfing for free🏄: https://ref.365tz87989.com/?r=RWQVZD|\n|Github Sponsor|https://github.com/sponsors/game1024|\n\n# Sponsors\n\n<table>\n  <td>\n    <a href=\"https://signpath.org/\" target=\"_blank\"><img src=\"https://avatars.githubusercontent.com/u/34448643\" height=\"30\" alt=\"SignPath logo\" /></a>\n  </td>\n\n  <td>\n    This program uses free code signing provided by <a href=\"https://about.signpath.io/?utm_source=foundation&utm_medium=github&utm_campaign=0install\">SignPath.io</a> and a certificate by the <a href=\"https://signpath.org/?utm_source=foundation&utm_medium=github&utm_campaign=0install\">SignPath Foundation</a>\n\n  </td>\n</table>\n\n\n# 📜 License\nOpenSpeedy is licensed under the GNU v3 License.\n\n# 🙏 Acknowledgements\nOpenSpeedy uses source code from the following projects. Thanks to the open-source community! If OpenSpeedy helps you, please give us a Star!\n- [minhook](https://github.com/TsudaKageyu/minhook): For API Hooking\n- [Qt](https://www.qt.io/): GUI\n\nDisclaimer: OpenSpeedy is intended for educational and research purposes only. Users assume all risks and responsibilities for using this software. The author is not responsible for any loss or legal liability resulting from the use of this software.\n\n<a href=\"https://openomy.com/game1024/openspeedy\" target=\"_blank\" style=\"display: block; width: 100%;\" align=\"center\">\n  <img src=\"https://openomy.com/svg?repo=game1024/openspeedy&chart=bubble&latestMonth=6\" target=\"_blank\" alt=\"Contribution Leaderboard\" style=\"display: block; width: 100%;\" />\n</a>\n\n<p align=\"center\">\n  <img src=\"https://api.star-history.com/svg?repos=game1024/openspeedy&type=Date\" Alt=\"Star History Chart\">\n</p>\n\n"
  },
  {
    "path": "aboutdialog.cpp",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#include \"aboutdialog.h\"\n#include \"ui_aboutdialog.h\"\n#include <QPushButton>\n#include <QScreen>\nAboutDialog::AboutDialog(QWidget* parent)\n  : QDialog(parent)\n  , ui(new Ui::AboutDialog)\n{\n    ui->setupUi(this);\n    ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr(\"确认\"));\n    ui->versionContent->setText(QString(\"%1\").arg(OPENSPEEDY_VERSION));\n    connect(QGuiApplication::primaryScreen(),\n            &QScreen::logicalDotsPerInchChanged,\n            this,\n            &AboutDialog::recreate);\n    setWindowFlags(Qt::Dialog | Qt::WindowTitleHint | Qt::CustomizeWindowHint);\n}\n\nAboutDialog::~AboutDialog()\n{\n    delete ui;\n}\n\nvoid\nAboutDialog::recreate()\n{\n    layout()->invalidate();\n    layout()->activate();\n    adjustSize();\n}\n"
  },
  {
    "path": "aboutdialog.h",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n * \n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * \n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * \n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#ifndef ABOUTDIALOG_H\n#define ABOUTDIALOG_H\n#include \"config.h\"\n#include <QDialog>\n\nnamespace Ui\n{\nclass AboutDialog;\n}\n\nclass AboutDialog : public QDialog\n{\n    Q_OBJECT\n\n  public:\n    explicit AboutDialog(QWidget* parent = nullptr);\n    ~AboutDialog();\n\n  private slots:\n    void recreate();\n\n  private:\n    Ui::AboutDialog* ui;\n};\n\n#endif // ABOUTDIALOG_H\n"
  },
  {
    "path": "aboutdialog.ui",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>AboutDialog</class>\n <widget class=\"QDialog\" name=\"AboutDialog\">\n  <property name=\"windowModality\">\n   <enum>Qt::ApplicationModal</enum>\n  </property>\n  <property name=\"geometry\">\n   <rect>\n    <x>0</x>\n    <y>0</y>\n    <width>440</width>\n    <height>215</height>\n   </rect>\n  </property>\n  <property name=\"sizePolicy\">\n   <sizepolicy hsizetype=\"Maximum\" vsizetype=\"Maximum\">\n    <horstretch>0</horstretch>\n    <verstretch>0</verstretch>\n   </sizepolicy>\n  </property>\n  <property name=\"minimumSize\">\n   <size>\n    <width>0</width>\n    <height>0</height>\n   </size>\n  </property>\n  <property name=\"maximumSize\">\n   <size>\n    <width>16777215</width>\n    <height>16777215</height>\n   </size>\n  </property>\n  <property name=\"windowTitle\">\n   <string>关于</string>\n  </property>\n  <property name=\"sizeGripEnabled\">\n   <bool>false</bool>\n  </property>\n  <property name=\"modal\">\n   <bool>false</bool>\n  </property>\n  <layout class=\"QVBoxLayout\" name=\"verticalLayout\">\n   <property name=\"spacing\">\n    <number>7</number>\n   </property>\n   <property name=\"sizeConstraint\">\n    <enum>QLayout::SetFixedSize</enum>\n   </property>\n   <item>\n    <widget class=\"QLabel\" name=\"appTitle\">\n     <property name=\"font\">\n      <font>\n       <family>微软雅黑</family>\n       <pointsize>12</pointsize>\n      </font>\n     </property>\n     <property name=\"text\">\n      <string>OpenSpeedy</string>\n     </property>\n     <property name=\"alignment\">\n      <set>Qt::AlignCenter</set>\n     </property>\n    </widget>\n   </item>\n   <item>\n    <layout class=\"QGridLayout\" name=\"gridLayout\">\n     <property name=\"sizeConstraint\">\n      <enum>QLayout::SetMaximumSize</enum>\n     </property>\n     <property name=\"verticalSpacing\">\n      <number>4</number>\n     </property>\n     <item row=\"0\" column=\"0\">\n      <widget class=\"QLabel\" name=\"authorIcon\">\n       <property name=\"sizePolicy\">\n        <sizepolicy hsizetype=\"Maximum\" vsizetype=\"Preferred\">\n         <horstretch>0</horstretch>\n         <verstretch>0</verstretch>\n        </sizepolicy>\n       </property>\n       <property name=\"font\">\n        <font>\n         <family>Segoe UI Emoji</family>\n         <pointsize>12</pointsize>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>😄</string>\n       </property>\n      </widget>\n     </item>\n     <item row=\"3\" column=\"1\">\n      <widget class=\"QLabel\" name=\"versionTitle\">\n       <property name=\"sizePolicy\">\n        <sizepolicy hsizetype=\"Minimum\" vsizetype=\"Preferred\">\n         <horstretch>0</horstretch>\n         <verstretch>0</verstretch>\n        </sizepolicy>\n       </property>\n       <property name=\"font\">\n        <font>\n         <family>微软雅黑</family>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>版本：</string>\n       </property>\n       <property name=\"scaledContents\">\n        <bool>false</bool>\n       </property>\n       <property name=\"alignment\">\n        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>\n       </property>\n       <property name=\"wordWrap\">\n        <bool>true</bool>\n       </property>\n      </widget>\n     </item>\n     <item row=\"1\" column=\"0\">\n      <widget class=\"QLabel\" name=\"homeIcon\">\n       <property name=\"sizePolicy\">\n        <sizepolicy hsizetype=\"Maximum\" vsizetype=\"Preferred\">\n         <horstretch>0</horstretch>\n         <verstretch>0</verstretch>\n        </sizepolicy>\n       </property>\n       <property name=\"font\">\n        <font>\n         <family>Segoe UI Emoji</family>\n         <pointsize>12</pointsize>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>🚀</string>\n       </property>\n      </widget>\n     </item>\n     <item row=\"3\" column=\"0\">\n      <widget class=\"QLabel\" name=\"versionIcon\">\n       <property name=\"sizePolicy\">\n        <sizepolicy hsizetype=\"Maximum\" vsizetype=\"Preferred\">\n         <horstretch>0</horstretch>\n         <verstretch>0</verstretch>\n        </sizepolicy>\n       </property>\n       <property name=\"font\">\n        <font>\n         <family>Segoe UI Emoji</family>\n         <pointsize>12</pointsize>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>🌳</string>\n       </property>\n      </widget>\n     </item>\n     <item row=\"3\" column=\"2\">\n      <widget class=\"QLabel\" name=\"versionContent\">\n       <property name=\"font\">\n        <font>\n         <family>微软雅黑</family>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>v0.0.0</string>\n       </property>\n      </widget>\n     </item>\n     <item row=\"0\" column=\"2\">\n      <widget class=\"QLabel\" name=\"authorContent\">\n       <property name=\"font\">\n        <font>\n         <family>微软雅黑</family>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/game1024&quot;&gt;&lt;span style=&quot; text-decoration: none; color:#003e92;&quot;&gt;game1024&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>\n       </property>\n       <property name=\"openExternalLinks\">\n        <bool>true</bool>\n       </property>\n      </widget>\n     </item>\n     <item row=\"4\" column=\"1\">\n      <widget class=\"QLabel\" name=\"licenseTitle\">\n       <property name=\"sizePolicy\">\n        <sizepolicy hsizetype=\"Minimum\" vsizetype=\"Preferred\">\n         <horstretch>0</horstretch>\n         <verstretch>0</verstretch>\n        </sizepolicy>\n       </property>\n       <property name=\"font\">\n        <font>\n         <family>微软雅黑</family>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>协议：</string>\n       </property>\n       <property name=\"scaledContents\">\n        <bool>false</bool>\n       </property>\n       <property name=\"alignment\">\n        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>\n       </property>\n       <property name=\"wordWrap\">\n        <bool>true</bool>\n       </property>\n      </widget>\n     </item>\n     <item row=\"4\" column=\"0\">\n      <widget class=\"QLabel\" name=\"licenseIcon\">\n       <property name=\"sizePolicy\">\n        <sizepolicy hsizetype=\"Maximum\" vsizetype=\"Preferred\">\n         <horstretch>0</horstretch>\n         <verstretch>0</verstretch>\n        </sizepolicy>\n       </property>\n       <property name=\"font\">\n        <font>\n         <family>Segoe UI Emoji</family>\n         <pointsize>12</pointsize>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>📜</string>\n       </property>\n      </widget>\n     </item>\n     <item row=\"4\" column=\"2\">\n      <widget class=\"QLabel\" name=\"licenseContent\">\n       <property name=\"font\">\n        <font>\n         <family>微软雅黑</family>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>General Public License v3</string>\n       </property>\n      </widget>\n     </item>\n     <item row=\"1\" column=\"2\">\n      <widget class=\"QLabel\" name=\"homeContent\">\n       <property name=\"font\">\n        <font>\n         <family>微软雅黑</family>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/game1024/OpenSpeedy&quot;&gt;&lt;span style=&quot; text-decoration: none; color:#003e92;&quot;&gt;game1024/OpenSpeedy&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>\n       </property>\n       <property name=\"openExternalLinks\">\n        <bool>true</bool>\n       </property>\n      </widget>\n     </item>\n     <item row=\"0\" column=\"1\">\n      <widget class=\"QLabel\" name=\"authorTitle\">\n       <property name=\"sizePolicy\">\n        <sizepolicy hsizetype=\"Minimum\" vsizetype=\"Preferred\">\n         <horstretch>0</horstretch>\n         <verstretch>0</verstretch>\n        </sizepolicy>\n       </property>\n       <property name=\"font\">\n        <font>\n         <family>微软雅黑</family>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>作者：</string>\n       </property>\n       <property name=\"scaledContents\">\n        <bool>false</bool>\n       </property>\n       <property name=\"alignment\">\n        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>\n       </property>\n       <property name=\"wordWrap\">\n        <bool>true</bool>\n       </property>\n      </widget>\n     </item>\n     <item row=\"1\" column=\"1\">\n      <widget class=\"QLabel\" name=\"homeTitle\">\n       <property name=\"sizePolicy\">\n        <sizepolicy hsizetype=\"Minimum\" vsizetype=\"Preferred\">\n         <horstretch>0</horstretch>\n         <verstretch>0</verstretch>\n        </sizepolicy>\n       </property>\n       <property name=\"font\">\n        <font>\n         <family>微软雅黑</family>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>主页：</string>\n       </property>\n       <property name=\"scaledContents\">\n        <bool>false</bool>\n       </property>\n       <property name=\"alignment\">\n        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>\n       </property>\n       <property name=\"wordWrap\">\n        <bool>true</bool>\n       </property>\n      </widget>\n     </item>\n     <item row=\"2\" column=\"0\">\n      <widget class=\"QLabel\" name=\"sponsorIcon\">\n       <property name=\"font\">\n        <font>\n         <family>Segoe UI Emoji</family>\n         <pointsize>12</pointsize>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>🎁</string>\n       </property>\n      </widget>\n     </item>\n     <item row=\"2\" column=\"1\">\n      <widget class=\"QLabel\" name=\"sponsorTitle\">\n       <property name=\"font\">\n        <font>\n         <family>微软雅黑</family>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>捐赠：</string>\n       </property>\n       <property name=\"alignment\">\n        <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>\n       </property>\n      </widget>\n     </item>\n     <item row=\"2\" column=\"2\">\n      <widget class=\"QLabel\" name=\"sponsorContent\">\n       <property name=\"font\">\n        <font>\n         <family>微软雅黑</family>\n        </font>\n       </property>\n       <property name=\"text\">\n        <string>\n&lt;html&gt;&lt;body style=&quot; font-family:'微软雅黑'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;\n&lt;a href=&quot;https://afdian.com/a/game1024&quot;&gt;&lt;span style=&quot;text-decoration: none; color:#003e92&quot;&gt;afdian/a/game1024&lt;/span&gt;&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;</string>\n       </property>\n       <property name=\"openExternalLinks\">\n        <bool>true</bool>\n       </property>\n      </widget>\n     </item>\n    </layout>\n   </item>\n   <item>\n    <widget class=\"QDialogButtonBox\" name=\"buttonBox\">\n     <property name=\"standardButtons\">\n      <set>QDialogButtonBox::Ok</set>\n     </property>\n    </widget>\n   </item>\n  </layout>\n </widget>\n <resources/>\n <connections>\n  <connection>\n   <sender>buttonBox</sender>\n   <signal>accepted()</signal>\n   <receiver>AboutDialog</receiver>\n   <slot>accept()</slot>\n   <hints>\n    <hint type=\"sourcelabel\">\n     <x>219</x>\n     <y>154</y>\n    </hint>\n    <hint type=\"destinationlabel\">\n     <x>219</x>\n     <y>89</y>\n    </hint>\n   </hints>\n  </connection>\n </connections>\n</ui>\n"
  },
  {
    "path": "bridge/CMakeLists.txt",
    "content": "cmake_minimum_required(VERSION 3.16)\n\nproject(Bridge LANGUAGES CXX)\n\nset(CMAKE_AUTOUIC ON)\nset(CMAKE_AUTOMOC ON)\nset(CMAKE_AUTORCC ON)\n\nset(CMAKE_CXX_STANDARD 17)\nset(CMAKE_CXX_STANDARD_REQUIRED ON)\n\nset(CMAKE_RUNTIME_OUTPUT_DIRECTORY ..)\n\nfind_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)\nfind_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core)\n\n# 判断是32位还是64位\nif(CMAKE_SIZEOF_VOID_P EQUAL 8)\n  set(TARGET_NAME \"bridge64\")\n  set(SPEEDPATCH_LIBRARY \"speedpatch64\")\nelseif(CMAKE_SIZEOF_VOID_P EQUAL 4)\n  set(TARGET_NAME \"bridge32\")\n  set(SPEEDPATCH_LIBRARY \"speedpatch32\")\nelse()\n  set(TARGET_NAME \"bridge64\")\n  set(SPEEDPATCH_LIBRARY \"speedpatch\")\nendif()\n\nadd_executable(${TARGET_NAME}\n  main.cpp\n)\n\ntarget_link_libraries(${TARGET_NAME} Qt${QT_VERSION_MAJOR}::Core ${SPEEDPATCH_LIBRARY} winutils)\n\ninclude(GNUInstallDirs)\ninstall(TARGETS ${TARGET_NAME}\n    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}\n    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}\n)\n"
  },
  {
    "path": "bridge/main.cpp",
    "content": "#include \"../config.h\"\n#include \"../speedpatch/speedpatch.h\"\n#include \"../windbg.h\"\n#include \"../winutils.h\"\n#include <QCoreApplication>\n#include <QDebug>\n#include <QDir>\n#include <QRegularExpression>\n#include <QTextStream>\n\n#ifndef _WIN64\n#define SPEEDPATCH_DLL SPEEDPATCH32_DLL\n#else\n#define SPEEDPATCH_DLL SPEEDPATCH64_DLL\n#endif\n\nvoid\nhandleInject(int processId, QString dllPath)\n{\n    qDebug() << \"执行 inject，进程ID:\" << processId;\n    winutils::injectDll(processId, dllPath);\n    SetProcessStatus(processId, true);\n}\n\nvoid\nhandleUnhook(int processId, QString dllPath)\n{\n    qDebug() << \"执行 unhook，进程ID:\" << processId;\n    SetProcessStatus(processId, false);\n}\n\nvoid\nhandleChange(double factor)\n{\n    qDebug() << \"执行 change，参数:\" << factor;\n    ChangeSpeed(factor);\n}\n\nint\nmain(int argc, char* argv[])\n{\n    SetUnhandledExceptionFilter(createMiniDump);\n    QCoreApplication a(argc, argv);\n    if (winutils::enableAllPrivilege())\n    {\n        qDebug() << \"权限提升成功\";\n    }\n\n    QString dllPath = QDir::toNativeSeparators(\n      QCoreApplication::applicationDirPath() + \"/\" + SPEEDPATCH_DLL);\n\n    QTextStream in(stdin);\n    QTextStream out(stdout);\n\n    QRegularExpression injectRegex(\"^\\\\s*inject\\\\s+(\\\\d+)\\\\s*$\",\n                                   QRegularExpression::CaseInsensitiveOption);\n    QRegularExpression unhookRegex(\"^\\\\s*unhook\\\\s+(\\\\d+)\\\\s*$\",\n                                   QRegularExpression::CaseInsensitiveOption);\n    QRegularExpression changeRegex(\"^\\\\s*change\\\\s+([+-]?\\\\d*\\\\.?\\\\d+)\\\\s*$\",\n                                   QRegularExpression::CaseInsensitiveOption);\n    QRegularExpression exitRegex(\"^\\\\s*exit\\\\s*$\",\n                                 QRegularExpression::CaseInsensitiveOption);\n\n    while (true)\n    {\n        QString line = in.readLine();\n        if (line.isNull())\n        {\n            // 管道关闭或输入结束\n            break;\n        }\n        line = line.trimmed();\n        if (line.isEmpty())\n            continue;\n\n        QRegularExpressionMatch match;\n        if ((match = injectRegex.match(line)).hasMatch())\n        {\n            int pid = match.captured(1).toInt();\n            handleInject(pid, dllPath);\n        }\n        else if ((match = unhookRegex.match(line)).hasMatch())\n        {\n            int pid = match.captured(1).toInt();\n            handleUnhook(pid, dllPath);\n        }\n        else if ((match = changeRegex.match(line)).hasMatch())\n        {\n            double factor = match.captured(1).toDouble();\n            handleChange(factor);\n        }\n        else if (exitRegex.match(line).hasMatch())\n        {\n            qDebug() << \"收到exit命令，程序即将退出。\";\n            break;\n        }\n        else\n        {\n            qDebug() << \"无效命令：\" << line;\n        }\n    }\n\n    return 0;\n}\n"
  },
  {
    "path": "config.h",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#ifndef CONFIG_H\n#define CONFIG_H\n\n#define OPENSPEEDY_VERSION \"v1.7.9\"\n\n#define BRIDGE32_EXE \"bridge32.exe\"\n#define BRIDGE64_EXE \"bridge64.exe\"\n\n#define SPEEDPATCH32_DLL \"speedpatch32.dll\"\n#define SPEEDPATCH64_DLL \"speedpatch64.dll\"\n\n#define CONFIG_LANGUAGE \"General/Language\"\n#define CONFIG_THEME \"General/Theme\"\n\n\n// 热键ID\nenum HotkeyIds\n{\n    HOTKEY_INCREASE_SPEED = 1001,\n    HOTKEY_DECREASE_SPEED = 1002,\n    HOTKEY_RESET_SPEED = 1003,\n    HOTKEY_SHIFT1 = 1011,\n    HOTKEY_SHIFT2 = 1012,\n    HOTKEY_SHIFT3 = 1013,\n    HOTKEY_SHIFT4 = 1014,\n    HOTKEY_SHIFT5 = 1015\n};\n\n#endif // CONFIG_H\n"
  },
  {
    "path": "cpuutils.cpp",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#include \"cpuutils.h\"\n\nCpuUtils::CpuUtils()\n{\n}\n\nbool CpuUtils::init()\n{\n    // 创建查询\n    if (PdhOpenQuery(NULL, NULL, &hQuery) != ERROR_SUCCESS) return false;\n\n    if (PdhAddEnglishCounter(hQuery,\n                             L\"\\\\Processor(_Total)\\\\% Processor Time\",\n                             NULL,\n                             &hCounter) != ERROR_SUCCESS)\n    {\n        PdhCloseQuery(hQuery);\n        return false;\n    }\n\n    // 第一次采样\n    PdhCollectQueryData(hQuery);\n    initialized = true;\n    return true;\n}\n\ndouble CpuUtils::getUsage()\n{\n    if (!initialized) return -1;\n\n    // 收集数据\n    if (PdhCollectQueryData(hQuery) != ERROR_SUCCESS) return -1;\n\n    PDH_FMT_COUNTERVALUE value;\n    if (PdhGetFormattedCounterValue(hCounter, PDH_FMT_DOUBLE, NULL, &value) !=\n        ERROR_SUCCESS)\n        return -1;\n\n    return value.doubleValue;\n}\n\nQString CpuUtils::getModel()\n{\n    int cpuInfo[4];\n    char cpuBrand[48 + 1] = {0};\n\n    // 获取CPU品牌字符串（需要调用3次CPUID）\n    __cpuid(cpuInfo, 0x80000002);\n    memcpy(cpuBrand, cpuInfo, sizeof(cpuInfo));\n\n    __cpuid(cpuInfo, 0x80000003);\n    memcpy(cpuBrand + 16, cpuInfo, sizeof(cpuInfo));\n\n    __cpuid(cpuInfo, 0x80000004);\n    memcpy(cpuBrand + 32, cpuInfo, sizeof(cpuInfo));\n\n    QString result(cpuBrand);\n\n    return result.trimmed();\n}\n\nCpuUtils::~CpuUtils()\n{\n    if (hCounter) PdhRemoveCounter(hCounter);\n    if (hQuery) PdhCloseQuery(hQuery);\n}\n"
  },
  {
    "path": "cpuutils.h",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n * \n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * \n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * \n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#ifndef CPUUTILS_H\n#define CPUUTILS_H\n\n#include <windows.h>\n#include <QString>\n#include <pdh.h>\n\nclass CpuUtils\n{\n   private:\n    PDH_HQUERY hQuery = NULL;\n    PDH_HCOUNTER hCounter = NULL;\n    bool initialized = false;\n\n   public:\n    CpuUtils();\n\n    ~CpuUtils();\n\n    bool init();\n\n    double getUsage();\n\n    QString getModel();\n};\n\n#endif  // CPUUTILS_H\n"
  },
  {
    "path": "docs/README_cn.md",
    "content": "<h1 align=\"center\"> OpenSpeedy </h1>\n\n<p align=\"center\">\n  <img style=\"margin:0 auto\" width=100 height=100 src=\"https://github.com/user-attachments/assets/a82ceda2-9b7b-41e4-96dc-cd250c9bd3ff\">\n  </img>  \n</p>\n\n<p align=\"center\">\n  OpenSpeedy 是一款开源免费的游戏变速工具，让你的游戏突破帧率限制，提供更流畅丝滑的游戏加速体验。\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.fiofio.cn/\">官方网站</a>\n  <br/>\n  <br/>\n\t\n  <img src=\"https://api.visitorbadge.io/api/visitors?path=game1024.openspeedy&countColor=%234ecdc4\">\n  <br/>\n    \n  <a href=\"https://github.com/game1024/OpenSpeedy/stargazers\">\n    <img src=\"https://img.shields.io/github/stars/game1024/OpenSpeedy?style=for-the-badge&color=yellow\" alt=\"GitHub Stars\">\n  </a>\n\n  <img src=\"https://img.shields.io/github/forks/game1024/OpenSpeedy?style=for-the-badge&color=8a2be2\" alt=\"GitHub Forks\">\n\n  <a href=\"https://github.com/game1024/OpenSpeedy/issues\">\n    <img src=\"https://img.shields.io/github/issues-raw/game1024/OpenSpeedy?style=for-the-badge&label=Issues&color=orange\" alt=\"Github Issues\">\n  </a>\n  <br/>  \n  \n  <a href=\"https://github.com/game1024/OpenSpeedy/releases\">\n    <img src=\"https://img.shields.io/github/downloads/game1024/OpenSpeedy/total?style=for-the-badge\" alt=\"Downloads\">\n  </a>\n  <a href=\"https://github.com/game1024/OpenSpeedy/releases\">\n    <img src=\"https://img.shields.io/github/v/release/game1024/OpenSpeedy?style=for-the-badge&color=brightgreen\" alt=\"Version\">\n  </a>\n  <a href=\"https://github.com/game1024/OpenSpeedy/actions\">\n      <img src=\"https://img.shields.io/github/actions/workflow/status/game1024/OpenSpeedy/ci.yml?style=for-the-badge\" alt=\"Github Action\">\n  </a>\n  <a href=\"https://github.com/game1024/OpenSpeedy\">\n    <img src=\"https://img.shields.io/badge/Platform-Windows-lightblue?style=for-the-badge\" alt=\"Platform\">\n  </a>\n  <br/>\n  \n  <a href=\"https://github.com/game1024/OpenSpeedy/commits\">\n    <img src=\"https://img.shields.io/github/commit-activity/m/game1024/OpenSpeedy?style=for-the-badge\" alt=\"提交活跃度\">\n  </a>\n  <img src=\"https://img.shields.io/badge/language-C/C++-blue?style=for-the-badge\">\n  <img src=\"https://img.shields.io/badge/License-GPLv3-green.svg?style=for-the-badge\">\n  <br/>\n\n  <a href=\"https://hellogithub.com/repository/975f473c56ad4369a1c30ac9aa5819e0\" target=\"_blank\">\n    <img src=\"https://abroad.hellogithub.com/v1/widgets/recommend.svg?rid=975f473c56ad4369a1c30ac9aa5819e0&claim_uid=kmUCncHJr9SpNV7&theme=neutral\" alt=\"Featured｜HelloGitHub\" style=\"width: 250px; height: 54px;\" width=\"250\" height=\"54\" />\n  </a>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/game1024/OpenSpeedy/blob/master/docs/README_cn.md\">\n    简体中文\n  </a>\n  ·\n  <a href=\"https://github.com/game1024/OpenSpeedy/blob/master/docs/README_ja.md\">\n    日本語\n  </a>\n  ·\n  <a href=\"https://github.com/game1024/OpenSpeedy?tab=readme-ov-file#-openspeedy-\">\n    English\n  </a>\n</p>\n\n\n# 🚀 特性\n- 完全免费且开源\n- 简单易用的界面\n- 可自定义变速倍率\n- 对多种游戏引擎兼容性良好\n- 低系统资源占用\n- 同时可以加速x86和x64平台进程\n- 无内核侵入性，Ring3层Hook，不破坏系统内核\n\n\n# 💾 安装\n📦 **方式1: Winget**\n\n``` powershell\n# 安装命令如下\nwinget install openspeedy\n\n# 打开一个新的终端，运行openspeedy\nspeedy\n```\n\n📥 **方式2: 手动下载**\n\n访问 [安装页面](https://github.com/game1024/OpenSpeedy/releases) 下载最新版本\n\n\n📥 **方式3：微软商店下载（仅限中国地区）**\n\n<a href=\"https://apps.microsoft.com/detail/xpdbtx08f0xtfc?referrer=appbadge&mode=full\">\n\t<img src=\"https://get.microsoft.com/images/en-us%20dark.svg\" width=\"200\"/>\n</a>\n\n# 💻 操作系统要求\n- OS: Windows10 以上\n- 平台：x86（32位） 和 x64 （64位）\n\n\n# 📝 使用说明\n1. 启动 OpenSpeedy\n2. 运行需要变速的目标游戏\n<img src=\"https://github.com/user-attachments/assets/648e721d-9c3a-4d82-954c-19b16355d084\" width=\"50%\">\n\n3. 勾选游戏进程，在 OpenSpeedy 界面中调整速度倍率\n<img src=\"https://github.com/user-attachments/assets/9469aae9-8be0-4e40-884d-1fbea3206e73\" width=\"50%\">\n\n4. 即刻生效，对比效果如下\n\n<video src=\"https://github.com/user-attachments/assets/74471b1f-7f95-4de8-b5aa-7edc85c9d5f0\" width=\"70%\"></video>\n\n# 🔧 技术原理\n\n如果想要了解如何编译项目，可以参考[开发者文档](https://github.com/game1024/OpenSpeedy/wiki/%E5%BC%80%E5%8F%91%E8%80%85%E6%96%87%E6%A1%A3)\n\nOpenSpeedy 通过 Hook 以下 Windows 系统时间函数来实现游戏速度调整：\n\n|函数名\t| 所属库 |\t功能 |\n|--------|----------|------------------|\n|Sleep|user32.dll|线程休眠|\n|SetTimer|user32.dll|创建基于消息的计时器|\n|timeGetTime | winmm.dll\t| 获取系统启动后经过的毫秒数 |\n|GetTickCount | kernel32.dll\t| 获取系统启动后经过的毫秒数 |\n|GetTickCount64\t| kernel32.dll\t| 获取系统启动后经过的毫秒数(64位) |\n|QueryPerformanceCounter |\tkernel32.dll\t| 高精度性能计数器 |\n|GetSystemTimeAsFileTime |\tkernel32.dll\t| 获取系统时间 |\n|GetSystemTimePreciseAsFileTime |\tkernel32.dll\t| 获取高精度系统时间 |\n\n# ⚠️ 注意事项\n- 本工具仅供学习和研究使用\n- 部分在线游戏可能有反作弊系统，使用本工具可能导致账号被封禁\n- 过度加速可能导致游戏物理引擎异常或崩溃\n- 不建议在竞技类在线游戏中使用\n- 开源产品不带数字签名，可能被杀毒软件误报\n\n# 🔄 反馈\n如果在使用过程中遇到任何问题，欢迎通过以下方式反馈：\n- [FAQ](https://github.com/game1024/OpenSpeedy/wiki#faq) - 先查看wiki定位常见问题\n- [GitHub Issues](https://github.com/game1024/OpenSpeedy/issues) - 提交问题报告, 网盘类问题请勿提issue, 我不支持, 谢谢合作～🙏\n\n\n# 🎁 请我喝杯咖啡\n如果觉得OpenSpeedy项目对你有帮助，可以请我喝杯咖啡～☕️\n\n\n|名称|介绍|备注|\n|-|-|-|\n|365VPN|我用过最稳定的，不限流的全系统VPN|[体验地址](https://ref.365tz87989.com/?r=RWQVZD)|\n\n# 📜 开源协议\nOpenSpeedy 遵循 GNU v3 许可证。\n\n# 🙏 鸣谢\nOpenSpeedy使用到以下项目的源码，感谢开源社区的力量，如果OpenSpeedy对你有帮助，欢迎Star!\n- [minhook](https://github.com/TsudaKageyu/minhook): 用于API Hook\n- [Qt](https://www.qt.io/): GUI\n\n免责声明: OpenSpeedy 仅用于教育和研究目的。用户应自行承担使用本软件的所有风险和责任。作者不对因使用本软件导致的任何损失或法律责任负责。\n\n<a href=\"https://openomy.com/game1024/openspeedy\" target=\"_blank\" style=\"display: block; width: 100%;\" align=\"center\">\n  <img src=\"https://openomy.com/svg?repo=game1024/openspeedy&chart=bubble&latestMonth=6\" target=\"_blank\" alt=\"Contribution Leaderboard\" style=\"display: block; width: 100%;\" />\n</a>\n\n\n<p align=\"center\">\n  <img src=\"https://api.star-history.com/svg?repos=game1024/openspeedy&type=Date\" Alt=\"Star History Chart\">\n</p>\n"
  },
  {
    "path": "docs/README_ja.md",
    "content": "<h1 align=\"center\"> OpenSpeedy </h1>\n\n<p align=\"center\">\n  <img style=\"margin:0 auto\" width=100 height=100 src=\"https://github.com/user-attachments/assets/a82ceda2-9b7b-41e4-96dc-cd250c9bd3ff\">\n  </img>  \n</p>\n\n<p align=\"center\">\n  OpenSpeedyは、フレームレート制限を突破し、よりスムーズで快適なゲーム加速体験を提供する、オープンソースかつ無料のゲーム速度調整ツールです。\n</p>\n\n<p align=\"center\">\n  <img src=\"https://api.visitorbadge.io/api/visitors?path=game1024.openspeedy&countColor=%234ecdc4\">\n  <br/>\n    \n  <a href=\"https://github.com/game1024/OpenSpeedy/stargazers\">\n    <img src=\"https://img.shields.io/github/stars/game1024/OpenSpeedy?style=for-the-badge&color=yellow\" alt=\"GitHub Stars\">\n  </a>\n\n  <img src=\"https://img.shields.io/github/forks/game1024/OpenSpeedy?style=for-the-badge&color=8a2be2\" alt=\"GitHub Forks\">\n\n  <a href=\"https://github.com/game1024/OpenSpeedy/issues\">\n    <img src=\"https://img.shields.io/github/issues-raw/game1024/OpenSpeedy?style=for-the-badge&label=Issues&color=orange\" alt=\"Github Issues\">\n  </a>\n  <br/>  \n  \n  <a href=\"https://github.com/game1024/OpenSpeedy/releases\">\n    <img src=\"https://img.shields.io/github/downloads/game1024/OpenSpeedy/total?style=for-the-badge\" alt=\"Downloads\">\n  </a>\n  <a href=\"https://github.com/game1024/OpenSpeedy/releases\">\n    <img src=\"https://img.shields.io/github/v/release/game1024/OpenSpeedy?style=for-the-badge&color=brightgreen\" alt=\"Version\">\n  </a>\n  <a href=\"https://github.com/game1024/OpenSpeedy/actions\">\n      <img src=\"https://img.shields.io/github/actions/workflow/status/game1024/OpenSpeedy/ci.yml?style=for-the-badge\" alt=\"Github Action\">\n  </a>\n  <a href=\"https://github.com/game1024/OpenSpeedy\">\n    <img src=\"https://img.shields.io/badge/Platform-Windows-lightblue?style=for-the-badge\" alt=\"Platform\">\n  </a>\n  <br/>\n  \n  <a href=\"https://github.com/game1024/OpenSpeedy/commits\">\n    <img src=\"https://img.shields.io/github/commit-activity/m/game1024/OpenSpeedy?style=for-the-badge\" alt=\"コミットアクティビティ\">\n  </a>\n  <img src=\"https://img.shields.io/badge/language-C/C++-blue?style=for-the-badge\">\n  <img src=\"https://img.shields.io/badge/License-GPLv3-green.svg?style=for-the-badge\">\n  <br/>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/game1024/OpenSpeedy/blob/master/docs/README_cn.md\">\n    简体中文\n  </a>\n  ·\n  <a href=\"https://github.com/game1024/OpenSpeedy/blob/master/docs/README_ja.md\">\n    日本語\n  </a>\n  ·\n  <a href=\"https://github.com/game1024/OpenSpeedy?tab=readme-ov-file#-openspeedy-\">\n    English\n  </a>\n</p>\n\n# 🚀 特徴\n- 完全無料・オープンソース\n- シンプルで使いやすいインターフェース\n- 速度倍率をカスタマイズ可能\n- 様々なゲームエンジンとの高い互換性\n- 低いシステムリソース消費\n- x86およびx64プラットフォームのプロセスを同時に加速可能\n- カーネル非侵入型、Ring3レベルのHook、システムカーネルを破壊しない\n\n# 📥 インストール\n1. [インストールページ](https://github.com/game1024/OpenSpeedy/releases)にアクセスし、最新版をダウンロードしてください\n2. ダウンロードしたファイルを任意の場所に解凍してください\n3. インストール不要、「OpenSpeedy.exe」を直接実行するだけで利用できます\n\n# 💻 動作環境\n- OS: Windows10以降\n- プラットフォーム：x86（32ビット）およびx64（64ビット）\n\n# 📝 使い方\n1. OpenSpeedyを起動する\n2. 速度を変更したいゲームを起動する\n<img src=\"https://github.com/user-attachments/assets/648e721d-9c3a-4d82-954c-19b16355d084\" width=\"50%\">\n\n3. ゲームプロセスを選択し、OpenSpeedyの画面で速度倍率を調整する\n<img src=\"https://github.com/user-attachments/assets/9469aae9-8be0-4e40-884d-1fbea3206e73\" width=\"50%\">\n\n4. すぐに効果が反映されます。下記の比較動画をご覧ください\n\n<video src=\"https://github.com/user-attachments/assets/74471b1f-7f95-4de8-b5aa-7edc85c9d5f0\" width=\"70%\"></video>\n\n# 🔧 技術原理\nOpenSpeedyは、以下のWindowsシステム時間関数をHookすることで、ゲーム速度を調整しています：\n\n| 関数名 | 所属ライブラリ | 機能 |\n|--------|--------|------------------|\n| Sleep | user32.dll | スレッドのスリープ |\n| SetTimer | user32.dll | メッセージベースのタイマー作成 |\n| timeGetTime | winmm.dll | システム起動後の経過ミリ秒数取得 |\n| GetTickCount | kernel32.dll | システム起動後の経過ミリ秒数取得 |\n| GetTickCount64 | kernel32.dll | システム起動後の経過ミリ秒数取得 (64ビット) |\n| QueryPerformanceCounter | kernel32.dll | 高精度パフォーマンスカウンタ |\n| GetSystemTimeAsFileTime | kernel32.dll | システム時刻の取得 |\n| GetSystemTimePreciseAsFileTime | kernel32.dll | 高精度なシステム時刻の取得 |\n\n# ⚠️ 注意事項\n- 本ツールは学習および研究用途のみを目的としています\n- 一部オンラインゲームにはアンチチートシステムが搭載されています。本ツールの使用によりアカウントがBANされる場合があります\n- 過度な加速は、ゲームの物理エンジン異常やクラッシュの原因となる場合があります\n- 対戦型オンラインゲームでの利用は推奨しません\n- オープンソース製品のためデジタル署名は付与しておらず、ウイルス対策ソフトによる誤検出の可能性があります\n\n# 🔄 フィードバック\n使用中に問題が発生した場合は、以下の方法でご連絡ください：\n- [FAQ](https://github.com/game1024/OpenSpeedy/wiki#faq) - まずはWikiを確認して問題の場所を特定できます\n- [GitHub Issues](https://github.com/game1024/OpenSpeedy/issues) - 不具合報告\n\n# 🎁 スポンサー\nもしOpenSpeedyプロジェクトが役に立ったと感じたら、コーヒーをご馳走していただけると嬉しいです～ ☕️\n\n365VPNは専用回線を利用して世界中を接続し、最大10Gbpsの速度を提供します。今すぐダウンロードして無料でサーフィンを始めましょう🏄: https://ref.365tz87989.com/?r=RWQVZD\n\n# 📜 ライセンス\nOpenSpeedyはGNU v3ライセンスに従っています。\n\n# 🙏 クレジット\nOpenSpeedyは以下のプロジェクトのソースコードを使用しています。オープンソースコミュニティに感謝します。OpenSpeedyが役立った場合はStarをお願いします！\n- [minhook](https://github.com/TsudaKageyu/minhook): APIフック用\n- [Qt](https://www.qt.io/): GUI\n\n免責事項: OpenSpeedyは教育及び研究目的のみでご利用ください。本ソフトウェアの使用に伴うすべてのリスクと責任は利用者にあります。著者は本ソフトウェアの使用によるいかなる損害や法的責任も一切負いません。\n\n<a href=\"https://openomy.com/game1024/openspeedy\" target=\"_blank\" style=\"display: block; width: 100%;\" align=\"center\">\n  <img src=\"https://openomy.com/svg?repo=game1024/openspeedy&chart=bubble&latestMonth=6\" target=\"_blank\" alt=\"Contribution Leaderboard\" style=\"display: block; width: 100%;\" />\n</a>\n\n<p align=\"center\">\n  <img src=\"https://api.star-history.com/svg?repos=game1024/openspeedy&type=Date\" Alt=\"Star History Chart\">\n</p>\n"
  },
  {
    "path": "installer/OpenSpeedy.wxs",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<Wix xmlns=\"http://schemas.microsoft.com/wix/2006/wi\">\r\n  <Product Id=\"*\" \r\n           Name=\"OpenSpeedy\" \r\n           Language=\"1033\" \r\n           Version=\"$(var.Version)\" \r\n           Manufacturer=\"Game1024\" \r\n           UpgradeCode=\"12345678-1234-1234-1234-123456789012\">\r\n    \r\n    <Package InstallerVersion=\"200\" Compressed=\"yes\" InstallScope=\"perUser\" />\r\n    <Icon Id=\"ProductIcon\" SourceFile=\"files\\OpenSpeedy.exe\" />\r\n    <Property Id=\"ARPPRODUCTICON\" Value=\"ProductIcon\" />\r\n\r\n    <MajorUpgrade DowngradeErrorMessage=\"A newer version of [ProductName] is already installed.\" />\r\n    <MediaTemplate EmbedCab=\"yes\" />\r\n\r\n    <!-- 添加标准 UI，允许选择安装路径 -->\r\n    <UIRef Id=\"WixUI_InstallDir\" />\r\n    <Property Id=\"WIXUI_INSTALLDIR\" Value=\"INSTALLFOLDER\" />\r\n    <UIRef Id=\"WixUI_ErrorProgressText\" />\r\n\r\n    <Feature Id=\"ProductFeature\" Title=\"OpenSpeedy\" Level=\"1\">\r\n      <ComponentGroupRef Id=\"ProductComponents\" />\r\n    </Feature>\r\n  </Product>\r\n\r\n  <Fragment>\r\n    <Directory Id=\"TARGETDIR\" Name=\"SourceDir\">\r\n      <Directory Id=\"LocalAppDataFolder\">\r\n        <Directory Id=\"INSTALLFOLDER\" Name=\"OpenSpeedy\" />\r\n      </Directory>\r\n      <Directory Id=\"ProgramMenuFolder\">\r\n        <Directory Id=\"ApplicationProgramsFolder\" Name=\"OpenSpeedy\" />\r\n      </Directory>\r\n      <Directory Id=\"DesktopFolder\" />\r\n    </Directory>\r\n  </Fragment>\r\n\r\n  <Fragment>\r\n    <ComponentGroup Id=\"ProductComponents\" Directory=\"INSTALLFOLDER\">\r\n      <Component Id=\"MainExecutable\" Guid=\"11111111-1111-1111-1111-111111111111\">\r\n        <File Id=\"MainExecutable\" Source=\"files\\OpenSpeedy.exe\">\r\n          <Shortcut Id=\"StartMenuShortcut\" \r\n                   Directory=\"ApplicationProgramsFolder\" \r\n                   Name=\"OpenSpeedy\" \r\n                   WorkingDirectory=\"INSTALLFOLDER\"\r\n                   Icon=\"ProductIcon\"\r\n                   IconIndex=\"0\" />\r\n          <Shortcut Id=\"DesktopShortcut\" \r\n                   Directory=\"DesktopFolder\" \r\n                   Name=\"OpenSpeedy\" \r\n                   WorkingDirectory=\"INSTALLFOLDER\"\r\n                   Icon=\"ProductIcon\"\r\n                   IconIndex=\"0\" />\r\n        </File>\r\n        <RemoveFolder Id=\"RemoveINSTALLFOLDER\" Directory=\"INSTALLFOLDER\" On=\"uninstall\" />\r\n        <RemoveFolder Id=\"RemoveApplicationProgramsFolder\" Directory=\"ApplicationProgramsFolder\" On=\"uninstall\" />\r\n        <RegistryValue Root=\"HKCU\" Key=\"Software\\OpenSpeedy\" Name=\"MainExe\" Type=\"integer\" Value=\"1\" KeyPath=\"yes\" />\r\n      </Component>\r\n      <Component Id=\"Bridge32\" Guid=\"22222222-2222-2222-2222-222222222222\">\r\n        <File Id=\"Bridge32Exe\" Source=\"files\\bridge32.exe\" />\r\n        <RegistryValue Root=\"HKCU\" Key=\"Software\\OpenSpeedy\" Name=\"Bridge32\" Type=\"integer\" Value=\"1\" KeyPath=\"yes\" />\r\n      </Component>\r\n      <Component Id=\"Bridge64\" Guid=\"33333333-3333-3333-3333-333333333333\">\r\n        <File Id=\"Bridge64Exe\" Source=\"files\\bridge64.exe\" />\r\n        <RegistryValue Root=\"HKCU\" Key=\"Software\\OpenSpeedy\" Name=\"Bridge64\" Type=\"integer\" Value=\"1\" KeyPath=\"yes\" />\r\n      </Component>\r\n      <Component Id=\"SpeedPatch32\" Guid=\"44444444-4444-4444-4444-444444444444\">\r\n        <File Id=\"SpeedPatch32Dll\" Source=\"files\\speedpatch32.dll\" />\r\n        <RegistryValue Root=\"HKCU\" Key=\"Software\\OpenSpeedy\" Name=\"Patch32\" Type=\"integer\" Value=\"1\" KeyPath=\"yes\" />\r\n      </Component>\r\n      <Component Id=\"SpeedPatch64\" Guid=\"55555555-5555-5555-5555-555555555555\">\r\n        <File Id=\"SpeedPatch64Dll\" Source=\"files\\speedpatch64.dll\" />\r\n        <RegistryValue Root=\"HKCU\" Key=\"Software\\OpenSpeedy\" Name=\"Patch64\" Type=\"integer\" Value=\"1\" KeyPath=\"yes\" />\r\n      </Component>\r\n    </ComponentGroup>\r\n  </Fragment>\r\n</Wix>\r\n"
  },
  {
    "path": "installer/config/config.xml",
    "content": "﻿<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Installer>\n  <Name>Speedy</Name>\n  <Version>1.0.0</Version>\n  <Title>Speedy</Title>\n  <Publisher>Game1024</Publisher>\n  <StartMenuDir>Speedy</StartMenuDir>\n  <TargetDir>@HomeDir@/Speedy</TargetDir>\n  <WizardStyle>Modern</WizardStyle>\n  <AllowNonAsciiCharacters>true</AllowNonAsciiCharacters>\n</Installer>"
  },
  {
    "path": "installer/create_installer.bat",
    "content": "set QTIFWDIR=D:\\Qt\\Tools\\QtInstallerFramework\\4.9\\bin\n%QTIFWDIR%\\binarycreator.exe -c %~dp0config\\config.xml -p packages OpenSpeedy-installer.exe\n"
  },
  {
    "path": "main.cpp",
    "content": "/*\r\n * OpenSpeedy - Open Source Game Speed Controller\r\n * Copyright (C) 2025 Game1024\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\r\n */\r\n#include \"mainwindow.h\"\r\n#include \"themeutils.h\"\r\n#include \"windbg.h\"\r\n#include <QApplication>\r\n#include <QCommandLineParser>\r\n#include <QLocalServer>\r\n#include <QLocalSocket>\r\n#include <QLocale>\r\n#include <QTranslator>\r\n#include <ShellScalingApi.h>\r\nint\r\nmain(int argc, char* argv[])\r\n{\r\n    SetUnhandledExceptionFilter(createMiniDump);\r\n    SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);\r\n    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);\r\n    QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);\r\n    QApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);\r\n    QApplication a(argc, argv);\r\n    \r\n    QSettings settings(QCoreApplication::applicationDirPath() + \"/config.ini\", QSettings::IniFormat);\r\n    int theme = settings.value(CONFIG_THEME, ThemeUtils::Light).toInt();\r\n    ThemeUtils::applyTheme((ThemeUtils::Theme)theme);\r\n\r\n    winutils::enableAllPrivilege();\r\n\r\n    // 检查是否已有实例在运行\r\n    QString unique = \"OpenSpeedy\";\r\n    QLocalSocket socket;\r\n    socket.connectToServer(unique);\r\n    if (socket.waitForConnected(500))\r\n    {\r\n        socket.close();\r\n        return -1;\r\n    }\r\n\r\n    // 使用资源文件中的图标\r\n    QIcon appIcon;\r\n    appIcon.addFile(\":/icons/images/icon_16.ico\", QSize(16, 16));\r\n    appIcon.addFile(\":/icons/images/icon_32.ico\", QSize(32, 32));\r\n    appIcon.addFile(\":/icons/images/icon_64.ico\", QSize(64, 64));\r\n    a.setWindowIcon(appIcon);\r\n\r\n    QTranslator translator;\r\n    const QString baseName =\r\n      \"OpenSpeedy_\" +\r\n      settings.value(CONFIG_LANGUAGE, QLocale().system().name()).toString();\r\n\r\n    if (translator.load(\":/i18n/translations/\" + baseName))\r\n    {\r\n        a.installTranslator(&translator);\r\n    }\r\n\r\n    // 解析命令行参数\r\n    QCommandLineParser parser;\r\n    parser.setApplicationDescription(\"OpenSpeedy\");\r\n    QCommandLineOption minimizeOption(\r\n      QStringList() << \"m\" << \"minimize-to-tray\", \"启动时最小化到托盘\");\r\n    parser.addOption(minimizeOption);\r\n    parser.process(a);\r\n\r\n    MainWindow w;\r\n\r\n    if (parser.isSet(minimizeOption))\r\n    {\r\n        w.hide();\r\n    }\r\n    else\r\n    {\r\n        w.show();\r\n    }\r\n\r\n    // 创建并启动本地服务器\r\n    QLocalServer server;\r\n    QLocalServer::removeServer(unique);\r\n    server.listen(unique);\r\n    // 当用户尝试再运行一个进程时，将窗口显示到最前台\r\n    QObject::connect(&server,\r\n                     &QLocalServer::newConnection,\r\n                     [&]\r\n                     {\r\n                         w.show();\r\n                         w.raise();\r\n                         w.showNormal();\r\n                         w.activateWindow();\r\n                     });\r\n    return a.exec();\r\n}\r\n"
  },
  {
    "path": "mainwindow.cpp",
    "content": "/*\r\n * OpenSpeedy - Open Source Game Speed Controller\r\n * Copyright (C) 2025 Game1024\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\r\n */\r\n#include \"./ui_mainwindow.h\"\r\n#include \"mainwindow.h\"\r\n#include \"themeutils.h\"\r\n#include <thread>\r\n#include <QCloseEvent>\r\n#include <QDateTime>\r\n#include <QDebug>\r\n#include <QDir>\r\n#include <QMessageBox>\r\n#include <QScreen>\r\n#include <QStyle>\r\nMainWindow::MainWindow(QWidget *parent)\r\n    : QMainWindow(parent), ui(new Ui::MainWindow)\r\n{\r\n    ui->setupUi(this);\r\n\r\n    QScreen *screen = QGuiApplication::primaryScreen();\r\n    if (screen != nullptr)\r\n    {\r\n        qreal dpiScale = screen->devicePixelRatio();\r\n        QRect screenGeometry = screen->availableGeometry();\r\n        int windowWidth = 1024;\r\n        int windowHeight = 768;\r\n\r\n        if (dpiScale >= 2)\r\n        {\r\n            windowWidth = static_cast<int>(1024 / 1.5);\r\n            windowHeight = static_cast<int>(768 / 1.5);\r\n        }\r\n\r\n        windowWidth = qMin(windowWidth, screenGeometry.width()-100);\r\n        windowHeight = qMin(windowHeight, screenGeometry.height()-100);\r\n        this->resize(windowWidth, windowHeight);\r\n\r\n        int x = (screenGeometry.width() - this->frameGeometry().width()) / 2 ;\r\n        int y = (screenGeometry.height() - this->frameGeometry().height()) /2;\r\n        this->move(x, y);\r\n\r\n    }\r\n    init();\r\n}\r\n\r\nMainWindow::~MainWindow()\r\n{\r\n    QApplication::instance()->removeNativeEventFilter(this);\r\n    m_thread->quit();\r\n    m_thread->wait();\r\n    delete m_settings;\r\n    delete m_aboutDlg;\r\n    delete m_preferenceDlg;\r\n    delete m_processMonitor;\r\n    delete m_cpu;\r\n    delete m_mem;\r\n    delete ui;\r\n}\r\n\r\nvoid MainWindow::recreate()\r\n{\r\n    // step1: 获取主屏幕的缩放比例\r\n    // step2: 根据缩放比例调整窗口大小\r\n    // step3: 确保窗口不会超出屏幕范围\r\n    QScreen* primaryScreen = QApplication::primaryScreen();\r\n    qreal dpiScale = primaryScreen->devicePixelRatio();\r\n    QRect screenGeometry = primaryScreen->availableGeometry();\r\n\r\n    int windowWidth = 1024;\r\n    int windowHeight = 768;\r\n\r\n    if (dpiScale >= 2)\r\n    {\r\n        windowWidth = static_cast<int>(1024 / 1.5);\r\n        windowHeight = static_cast<int>(768 / 1.5);\r\n    }\r\n\r\n    windowWidth = qMin(windowWidth, screenGeometry.width()-100);\r\n    windowHeight = qMin(windowHeight, screenGeometry.height()-100);\r\n    this->resize(windowWidth, windowHeight);\r\n    layout()->invalidate();\r\n    layout()->activate();\r\n    //adjustSize();\r\n    recreateTray();\r\n}\r\n\r\nvoid MainWindow::refresh()\r\n{\r\n    // 获取当前主题下的高亮文本颜色\r\n    QColor highlightColor = QApplication::palette().color(QPalette::Highlight);\r\n    // 如果是深色模式，使用亮蓝色；如果是浅色模式，使用深蓝色\r\n    QString colorStr = (QApplication::palette().color(QPalette::Window).value() < 128) ? \"lightblue\" : \"blue\";\r\n\r\n    ui->cpuContent->setText(QString(\"<span style='color:%1'>%2%</span>\")\r\n                            .arg(colorStr)\r\n                            .arg(m_cpu->getUsage(), 5, 'f', 1, ' '));\r\n\r\n    double memUsage = m_mem->getUsage();\r\n    double memTotal = m_mem->getTotal();\r\n    ui->memContent->setText(\r\n        QString(\"<span style='color:%1'>(%2G / %3G) %4%</span>\")\r\n        .arg(colorStr)\r\n        .arg(memUsage, 0, 'f', 1)\r\n        .arg(memTotal, 0, 'f', 1)\r\n        .arg(memUsage / memTotal * 100, 4, 'f', 1));\r\n}\r\n\r\nvoid MainWindow::on_sliderCtrl_valueChanged(int value)\r\n{\r\n    double factor = speedFactor(value);\r\n\r\n    m_processMonitor->changeSpeed(factor);\r\n\r\n    if (factor >= 1.0)\r\n    {\r\n        ui->sliderCtrl->setToolTip(QString(tr(\"%1倍\")).arg(factor, 0, 'f', 2));\r\n        ui->sliderLabel->setText(QString(tr(\"✖️%1倍\")).arg(factor, 0, 'f', 2));\r\n    }\r\n    else\r\n    {\r\n        ui->sliderCtrl->setToolTip(QString(tr(\"%1倍\")).arg(factor, 0, 'f'));\r\n        ui->sliderLabel->setText(QString(tr(\"✖️%1倍\")).arg(factor, 0, 'f'));\r\n    }\r\n\r\n    ui->sliderInputSpinBox->setValue(factor);\r\n    m_settings->setValue(CONFIG_SLIDERVALUE_KEY, value);\r\n    m_settings->sync();\r\n}\r\n\r\nvoid MainWindow::on_sliderInputSpinBox_editingFinished()\r\n{\r\n    double factor = ui->sliderInputSpinBox->value();\r\n    ui->sliderInputSpinBox->clearFocus();\r\n    ui->sliderCtrl->setValue(sliderValue(factor));\r\n}\r\n\r\nvoid MainWindow::on_processNameFilter_textChanged(const QString &text)\r\n{\r\n    m_processMonitor->setFilter(text);\r\n}\r\n\r\nvoid MainWindow::on_sliderLabel_clicked()\r\n{\r\n    if (ui->sliderCtrl->value() != 0)\r\n    {\r\n        m_back = ui->sliderCtrl->value();\r\n        ui->sliderCtrl->setValue(0);\r\n    }\r\n    else\r\n    {\r\n        ui->sliderCtrl->setValue(m_back);\r\n    }\r\n}\r\n\r\nvoid MainWindow::iconActivated(QSystemTrayIcon::ActivationReason reason)\r\n{\r\n    {\r\n        switch (reason)\r\n        {\r\n        case QSystemTrayIcon::Trigger: // 单击\r\n            if (isVisible())\r\n                hide();\r\n            else\r\n            {\r\n                show();\r\n                showNormal();\r\n                activateWindow();\r\n            }\r\n            break;\r\n        case QSystemTrayIcon::DoubleClick: // 双击\r\n            show();\r\n            showNormal();\r\n            activateWindow();\r\n            break;\r\n        default:\r\n            break;\r\n        }\r\n    }\r\n}\r\n\r\nvoid MainWindow::createTray()\r\n{\r\n    // 创建系统托盘图标\r\n    trayIcon = new QSystemTrayIcon(this);\r\n    trayIcon->setIcon(QIcon(\":/icons/images/icon.ico\"));\r\n    trayIcon->setToolTip(\"OpenSpeedy\");\r\n\r\n    // 创建托盘菜单、创建动作\r\n    trayMenu = new QMenu(this);\r\n    showAction = new QAction(tr(\"显示\"), this);\r\n    hideAction = new QAction(tr(\"隐藏\"), this);\r\n    quitAction = new QAction(tr(\"退出\"), this);\r\n\r\n    // 连接信号和槽\r\n    connect(showAction, &QAction::triggered, this,\r\n            [&]\r\n    {\r\n        showNormal();\r\n        activateWindow();\r\n    });\r\n    connect(hideAction, &QAction::triggered, this, &MainWindow::hide);\r\n    connect(quitAction, &QAction::triggered, qApp, &QApplication::quit);\r\n\r\n    // 添加动作到菜单\r\n    trayMenu->addAction(showAction);\r\n    trayMenu->addAction(hideAction);\r\n    trayMenu->addSeparator();\r\n    trayMenu->addAction(quitAction);\r\n\r\n    // 设置托盘图标的菜单\r\n    trayIcon->setContextMenu(trayMenu);\r\n\r\n    // 处理托盘图标的点击事件\r\n    connect(trayIcon, &QSystemTrayIcon::activated, this,\r\n            &MainWindow::iconActivated);\r\n\r\n    // 显示托盘图标\r\n    trayIcon->show();\r\n}\r\n\r\ndouble MainWindow::speedFactor(int sliderValue)\r\n{\r\n    double factor = 1.0;\r\n    if (sliderValue > 0.0)\r\n    {\r\n        factor = 1.0 + (double)sliderValue / 100;\r\n    }\r\n    else if (sliderValue < 0.0)\r\n    {\r\n        factor = 1.0 + (double)sliderValue / 100000;\r\n    }\r\n    else\r\n    {\r\n        factor = 1.0;\r\n    }\r\n\r\n    return factor;\r\n}\r\n\r\nint MainWindow::sliderValue(double speedFactor)\r\n{\r\n    int sliderValue = 0;\r\n    if (speedFactor > 1.0)\r\n    {\r\n        sliderValue = (long long)(speedFactor * 100) - 100;\r\n    }\r\n    else if (speedFactor < 1.0)\r\n    {\r\n        sliderValue = (long long)(speedFactor * 100000) - 100000;\r\n    }\r\n    else\r\n    {\r\n        sliderValue = 0;\r\n    }\r\n    qDebug() << sliderValue;\r\n\r\n    return sliderValue;\r\n}\r\n\r\nvoid MainWindow::recreateTray()\r\n{\r\n    qDebug() << \"重绘托盘\";\r\n    delete trayMenu;\r\n    delete trayIcon;\r\n    delete showAction;\r\n    delete hideAction;\r\n    delete quitAction;\r\n    createTray();\r\n    adjustSize();\r\n}\r\n\r\nvoid MainWindow::init()\r\n{\r\n    m_back = 0;\r\n    m_settings =\r\n        new QSettings(QCoreApplication::applicationDirPath() + \"/config.ini\",\r\n                      QSettings::IniFormat);\r\n\r\n    m_aboutDlg = new AboutDialog(this);\r\n    m_preferenceDlg =\r\n        new PreferenceDialog((HWND)winId(), m_settings, ui->increaseSpeedLabel,\r\n                             ui->decreaseSpeedLabel, ui->resetSpeedLabel, this);\r\n\r\n    // 安装本地事件过滤器以处理全局快捷键\r\n    QApplication::instance()->installNativeEventFilter(this);\r\n\r\n    m_processMonitor = new ProcessMonitor(\r\n        m_settings, ui->processMonitorWidget, ui->processMonitorLabel,\r\n        ui->injector32Status, ui->injector64Status, nullptr);\r\n    m_thread = new QThread(this);\r\n\r\n    connect(m_thread, &QThread::started, m_processMonitor,\r\n            &ProcessMonitor::start);\r\n    connect(m_thread, &QThread::finished, m_processMonitor,\r\n            &QObject::deleteLater);\r\n    connect(m_thread, &QThread::finished, m_thread, &QThread::deleteLater);\r\n    connect(QGuiApplication::primaryScreen(),\r\n            &QScreen::logicalDotsPerInchChanged, this, &MainWindow::recreate);\r\n    m_thread->start();\r\n    m_processMonitor->start();\r\n\r\n    createTray();\r\n    QApplication::setQuitOnLastWindowClosed(false);\r\n\r\n    ui->osContent->setText(winutils::getWindowsVersion());\r\n    m_cpu = new CpuUtils();\r\n    m_cpu->init();\r\n    m_mem = new MemUtils();\r\n    m_mem->init();\r\n    m_timer = new QTimer();\r\n\r\n    refresh();\r\n    connect(m_timer, &QTimer::timeout, this, &MainWindow::refresh);\r\n    m_timer->start(1000);\r\n\r\n    /* 读取slider值 */\r\n    int value = qBound(ui->sliderCtrl->minimum(),\r\n                       m_settings->value(CONFIG_SLIDERVALUE_KEY, 0).toInt(),\r\n                       ui->sliderCtrl->maximum());\r\n\r\n    ui->sliderCtrl->setValue(value);\r\n\r\n    if (winutils::isAutoStartEnabled(QApplication::applicationName()))\r\n    {\r\n        ui->autoStartCheckBox->setCheckState(Qt::Checked);\r\n    }\r\n    else\r\n    {\r\n        ui->autoStartCheckBox->setCheckState(Qt::Unchecked);\r\n    }\r\n\r\n    /* 首选项菜单 */\r\n    connect(ui->menuPreference, &QMenu::aboutToShow,\r\n            [this]\r\n    {\r\n        ui->menuPreference->hide();\r\n        QTimer::singleShot(50,\r\n                           [this]()\r\n        {\r\n            m_preferenceDlg->show();\r\n            m_preferenceDlg->activateWindow();\r\n            m_preferenceDlg->raise();\r\n        });\r\n    });\r\n\r\n    /* 关于菜单 */\r\n    connect(ui->menuAbout, &QMenu::aboutToShow,\r\n            [this]\r\n    {\r\n        ui->menuAbout->hide();\r\n        QTimer::singleShot(50,\r\n                           [this]()\r\n        {\r\n            m_aboutDlg->show();\r\n            m_aboutDlg->activateWindow();\r\n            m_aboutDlg->raise();\r\n        });\r\n    });\r\n\r\n    m_languageGroup = new QActionGroup(this);\r\n    m_languageGroup->setExclusive(true);\r\n    m_languageGroup->setEnabled(true);\r\n    m_languageGroup->addAction(ui->actionCN);\r\n    m_languageGroup->addAction(ui->actionTW);\r\n    m_languageGroup->addAction(ui->actionEN);\r\n    QString language =\r\n        m_settings->value(CONFIG_LANGUAGE, QLocale().system().name())\r\n        .toString();\r\n    if (language == \"zh_CN\")\r\n    {\r\n        ui->actionCN->setChecked(true);\r\n    }\r\n    else if (language == \"zh_TW\")\r\n    {\r\n        ui->actionTW->setChecked(true);\r\n    }\r\n    else if (language == \"en_US\")\r\n    {\r\n        ui->actionEN->setChecked(true);\r\n    }\r\n\r\n    connect(ui->actionCN, &QAction::triggered,\r\n            [this]\r\n    {\r\n        m_settings->setValue(CONFIG_LANGUAGE, \"zh_CN\");\r\n        QMessageBox msgBox(this);\r\n        msgBox.setWindowFlags(Qt::Dialog | Qt::WindowTitleHint |\r\n                              Qt::CustomizeWindowHint);\r\n        msgBox.setIcon(QMessageBox::Information);\r\n        msgBox.setWindowTitle(tr(\"提示\"));\r\n        msgBox.setText(tr(\"直到重启应用后，界面的语言才会生效\"));\r\n        msgBox.exec();\r\n    });\r\n\r\n    connect(ui->actionTW, &QAction::triggered,\r\n            [this]\r\n    {\r\n        m_settings->setValue(CONFIG_LANGUAGE, \"zh_TW\");\r\n        QMessageBox msgBox(this);\r\n        msgBox.setWindowFlags(Qt::Dialog | Qt::WindowTitleHint |\r\n                              Qt::CustomizeWindowHint);\r\n        msgBox.setIcon(QMessageBox::Information);\r\n        msgBox.setWindowTitle(tr(\"提示\"));\r\n        msgBox.setText(tr(\"直到重启应用后，界面的语言才会生效\"));\r\n        msgBox.exec();\r\n    });\r\n\r\n    connect(ui->actionEN, &QAction::triggered,\r\n            [this]\r\n    {\r\n        m_settings->setValue(CONFIG_LANGUAGE, \"en_US\");\r\n        QMessageBox msgBox(this);\r\n        msgBox.setWindowFlags(Qt::Dialog | Qt::WindowTitleHint |\r\n                              Qt::CustomizeWindowHint);\r\n        msgBox.setIcon(QMessageBox::Information);\r\n        msgBox.setWindowTitle(tr(\"提示\"));\r\n        msgBox.setText(tr(\"直到重启应用后，界面的语言才会生效\"));\r\n        msgBox.exec();\r\n    });\r\n\r\n    m_themeGroup = new QActionGroup(this);\r\n    m_themeGroup->setExclusive(true);\r\n    m_themeGroup->setEnabled(true);\r\n    m_themeGroup->addAction(ui->actionLightTheme);\r\n    m_themeGroup->addAction(ui->actionDarkTheme);\r\n    \r\n    int theme = m_settings->value(CONFIG_THEME, ThemeUtils::Light).toInt();\r\n    if (theme == ThemeUtils::Light)\r\n    {\r\n        ui->actionLightTheme->setChecked(true);\r\n    }\r\n    else\r\n    {\r\n        ui->actionDarkTheme->setChecked(true);\r\n    }\r\n\r\n    connect(ui->actionLightTheme, &QAction::triggered,\r\n            [this]\r\n    {\r\n        m_settings->setValue(CONFIG_THEME, ThemeUtils::Light);\r\n        ThemeUtils::applyTheme(ThemeUtils::Light);\r\n        refresh(); // 刷新界面以更新颜色\r\n    });\r\n\r\n    connect(ui->actionDarkTheme, &QAction::triggered,\r\n            [this]\r\n    {\r\n        m_settings->setValue(CONFIG_THEME, ThemeUtils::Dark);\r\n        ThemeUtils::applyTheme(ThemeUtils::Dark);\r\n        refresh(); // 刷新界面以更新颜色\r\n    });\r\n}\r\n\r\nvoid MainWindow::closeEvent(QCloseEvent *event)\r\n{\r\n    // 如果托盘图标可见，则隐藏窗口而不是关闭\r\n    if (trayIcon->isVisible())\r\n    {\r\n        hide();\r\n\r\n        // 阻止事件继续传播，防止应用关闭\r\n        event->ignore();\r\n    }\r\n    else\r\n    {\r\n        // 如果没有托盘图标，则正常关闭\r\n        event->accept();\r\n    }\r\n}\r\n\r\nbool MainWindow::nativeEventFilter(const QByteArray &eventType,\r\n                                   void *message,\r\n                                   long *result)\r\n{\r\n    Q_UNUSED(result)\r\n\r\n    if (eventType == \"windows_generic_MSG\" ||\r\n        eventType == \"windows_dispatcher_MSG\")\r\n    {\r\n        MSG *msg = static_cast<MSG *>(message);\r\n\r\n        if (msg->message == WM_HOTKEY)\r\n        {\r\n            static qint64 lastSoundTime = 0;\r\n            qint64 currentTime = QDateTime::currentMSecsSinceEpoch();\r\n            bool canPlaySound = (currentTime - lastSoundTime > 500);\r\n            int hotkeyId = msg->wParam;\r\n\r\n            switch (hotkeyId)\r\n            {\r\n            case HOTKEY_INCREASE_SPEED:\r\n            {\r\n                int currentValue = ui->sliderCtrl->value();\r\n                if (currentValue < ui->sliderCtrl->maximum())\r\n                {\r\n                    if (canPlaySound)\r\n                    {\r\n                        std::thread([]() { Beep(400, 5); }).detach();\r\n                        lastSoundTime = currentTime;\r\n                    }\r\n                    ui->sliderCtrl->setValue(\r\n                        currentValue + m_preferenceDlg->getIncreaseStep());\r\n                    qDebug() << \"全局快捷键: 增加速度到\"\r\n                             << speedFactor(currentValue +\r\n                                   m_preferenceDlg->getIncreaseStep());\r\n                }\r\n            }\r\n            break;\r\n\r\n            case HOTKEY_DECREASE_SPEED:\r\n            {\r\n                int currentValue = ui->sliderCtrl->value();\r\n                if (currentValue > ui->sliderCtrl->minimum())\r\n                {\r\n                    if (canPlaySound)\r\n                    {\r\n                        std::thread([]() { Beep(400, 5); }).detach();\r\n                        lastSoundTime = currentTime;\r\n                    }\r\n                    ui->sliderCtrl->setValue(\r\n                        currentValue - m_preferenceDlg->getDecreaseStep());\r\n                    qDebug() << \"全局快捷键: 降低速度到\"\r\n                             << speedFactor(currentValue -\r\n                                   m_preferenceDlg->getDecreaseStep());\r\n                }\r\n            }\r\n            break;\r\n\r\n            case HOTKEY_RESET_SPEED:\r\n                if (canPlaySound)\r\n                {\r\n                    std::thread([]() { Beep(1600, 5); }).detach();\r\n                    lastSoundTime = currentTime;\r\n                }\r\n                ui->sliderCtrl->setValue(0);\r\n                qDebug() << \"全局快捷键: 重置速度\";\r\n                break;\r\n            case HOTKEY_SHIFT1:\r\n                if (canPlaySound)\r\n                {\r\n                    std::thread([]() { Beep(1600, 5); }).detach();\r\n                    lastSoundTime = currentTime;\r\n                }\r\n                ui->sliderCtrl->setValue(\r\n                    sliderValue(m_preferenceDlg->getShift1()));\r\n                break;\r\n            case HOTKEY_SHIFT2:\r\n                if (canPlaySound)\r\n                {\r\n                    std::thread([]() { Beep(1600, 5); }).detach();\r\n                    lastSoundTime = currentTime;\r\n                }\r\n                ui->sliderCtrl->setValue(\r\n                    sliderValue(m_preferenceDlg->getShift2()));\r\n                break;\r\n            case HOTKEY_SHIFT3:\r\n                if (canPlaySound)\r\n                {\r\n                    std::thread([]() { Beep(1600, 5); }).detach();\r\n                    lastSoundTime = currentTime;\r\n                }\r\n                ui->sliderCtrl->setValue(\r\n                    sliderValue(m_preferenceDlg->getShift3()));\r\n                break;\r\n            case HOTKEY_SHIFT4:\r\n                if (canPlaySound)\r\n                {\r\n                    std::thread([]() { Beep(1600, 5); }).detach();\r\n                    lastSoundTime = currentTime;\r\n                }\r\n                ui->sliderCtrl->setValue(\r\n                    sliderValue(m_preferenceDlg->getShift4()));\r\n                break;\r\n            case HOTKEY_SHIFT5:\r\n                if (canPlaySound)\r\n                {\r\n                    std::thread([]() { Beep(1600, 5); }).detach();\r\n                    lastSoundTime = currentTime;\r\n                }\r\n                ui->sliderCtrl->setValue(\r\n                    sliderValue(m_preferenceDlg->getShift5()));\r\n                break;\r\n            }\r\n\r\n            return true; // 事件已处理\r\n        }\r\n    }\r\n\r\n    return false; // 让其他过滤器处理\r\n}\r\n\r\nvoid MainWindow::on_autoStartCheckBox_stateChanged(int state)\r\n{\r\n    QString execFilePath =\r\n        QDir::toNativeSeparators(QApplication::applicationFilePath());\r\n    if (state == Qt::Checked)\r\n    {\r\n\r\n        qDebug() << QApplication::applicationName()\r\n                 << QApplication::applicationFilePath();\r\n        winutils::setAutoStart(true, QApplication::applicationName(),\r\n                               execFilePath);\r\n    }\r\n    else\r\n    {\r\n        winutils::setAutoStart(false, QApplication::applicationName(),\r\n                               execFilePath);\r\n    }\r\n}\r\n"
  },
  {
    "path": "mainwindow.h",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n#include \"aboutdialog.h\"\n#include \"config.h\"\n#include \"cpuutils.h\"\n#include \"memutils.h\"\n#include \"preferencedialog.h\"\n#include \"processmonitor.h\"\n#include \"winutils.h\"\n#include <QAbstractNativeEventFilter>\n#include <QActionGroup>\n#include <QMainWindow>\n#include <QSettings>\n#include <QSystemTrayIcon>\n#define CONFIG_SLIDERVALUE_KEY \"MainWindow/SliderValue\"\n\nQT_BEGIN_NAMESPACE\nnamespace Ui\n{\nclass MainWindow;\n}\nQT_END_NAMESPACE\n\nclass MainWindow\n  : public QMainWindow\n  , public QAbstractNativeEventFilter\n{\n    Q_OBJECT\n\n  public:\n    MainWindow(QWidget* parent = nullptr);\n    ~MainWindow();\n\n  private slots:\n    void recreate();\n\n    void refresh();\n\n    void on_sliderCtrl_valueChanged(int value);\n\n    void on_sliderInputSpinBox_editingFinished();\n\n    void on_processNameFilter_textChanged(const QString& text);\n\n    void iconActivated(QSystemTrayIcon::ActivationReason reason);\n\n    void recreateTray();\n\n    void on_sliderLabel_clicked();\n\n    void on_autoStartCheckBox_stateChanged(int arg1);\n\n  private:\n    Ui::MainWindow* ui;\n    AboutDialog* m_aboutDlg;\n    PreferenceDialog* m_preferenceDlg;\n\n    QThread* m_thread;\n    ProcessMonitor* m_processMonitor;\n    QTimer* m_timer;\n\n    QSystemTrayIcon* trayIcon;\n    QMenu* trayMenu;\n    QAction* showAction;\n    QAction* hideAction;\n    QAction* quitAction;\n\n    CpuUtils* m_cpu;\n    MemUtils* m_mem;\n\n    QSettings* m_settings;\n\n    int m_back;\n\n    QActionGroup* m_languageGroup;\n    QActionGroup* m_themeGroup;\n\n    void init();\n\n    void createTray();\n\n    double speedFactor(int sliderValue);\n\n    int sliderValue(double speedFactor);\n\n  protected:\n    void closeEvent(QCloseEvent* event) override;\n\n    bool nativeEventFilter(const QByteArray& eventType,\n                           void* message,\n                           long* result) override;\n};\n#endif // MAINWINDOW_H\n"
  },
  {
    "path": "mainwindow.ui",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<ui version=\"4.0\">\r\n <class>MainWindow</class>\r\n <widget class=\"QMainWindow\" name=\"MainWindow\">\r\n  <property name=\"geometry\">\r\n   <rect>\r\n    <x>0</x>\r\n    <y>0</y>\r\n    <width>1024</width>\r\n    <height>768</height>\r\n   </rect>\r\n  </property>\r\n  <property name=\"sizePolicy\">\r\n   <sizepolicy hsizetype=\"Maximum\" vsizetype=\"Maximum\">\r\n    <horstretch>0</horstretch>\r\n    <verstretch>0</verstretch>\r\n   </sizepolicy>\r\n  </property>\r\n  <property name=\"minimumSize\">\r\n   <size>\r\n    <width>800</width>\r\n    <height>480</height>\r\n   </size>\r\n  </property>\r\n  <property name=\"maximumSize\">\r\n   <size>\r\n    <width>16777215</width>\r\n    <height>16777215</height>\r\n   </size>\r\n  </property>\r\n  <property name=\"font\">\r\n   <font>\r\n    <family>MS PGothic</family>\r\n   </font>\r\n  </property>\r\n  <property name=\"windowTitle\">\r\n   <string>OpenSpeedy</string>\r\n  </property>\r\n  <property name=\"styleSheet\">\r\n   <string notr=\"true\">QMainWindow {\r\n}</string>\r\n  </property>\r\n  <widget class=\"QWidget\" name=\"centralwidget\">\r\n   <layout class=\"QVBoxLayout\" name=\"verticalLayout_2\">\r\n    <item>\r\n     <layout class=\"QVBoxLayout\" name=\"verticalLayout\">\r\n      <item>\r\n       <widget class=\"QGroupBox\" name=\"speedGroupBox\">\r\n        <property name=\"font\">\r\n         <font>\r\n          <family>Segoe UI Emoji</family>\r\n          <pointsize>10</pointsize>\r\n          <italic>false</italic>\r\n          <stylestrategy>PreferAntialias</stylestrategy>\r\n         </font>\r\n        </property>\r\n        <property name=\"styleSheet\">\r\n         <string notr=\"true\"/>\r\n        </property>\r\n        <property name=\"title\">\r\n         <string>⚡变速速率</string>\r\n        </property>\r\n        <layout class=\"QVBoxLayout\" name=\"verticalLayout_3\">\r\n         <item>\r\n          <widget class=\"QCheckBox\" name=\"autoStartCheckBox\">\r\n           <property name=\"font\">\r\n            <font>\r\n             <family>微软雅黑</family>\r\n            </font>\r\n           </property>\r\n           <property name=\"focusPolicy\">\r\n            <enum>Qt::NoFocus</enum>\r\n           </property>\r\n           <property name=\"text\">\r\n            <string>开机自启</string>\r\n           </property>\r\n           <property name=\"tristate\">\r\n            <bool>false</bool>\r\n           </property>\r\n          </widget>\r\n         </item>\r\n         <item>\r\n          <widget class=\"QFrame\" name=\"sliderFrame\">\r\n           <property name=\"enabled\">\r\n            <bool>true</bool>\r\n           </property>\r\n           <property name=\"sizePolicy\">\r\n            <sizepolicy hsizetype=\"Preferred\" vsizetype=\"Fixed\">\r\n             <horstretch>0</horstretch>\r\n             <verstretch>0</verstretch>\r\n            </sizepolicy>\r\n           </property>\r\n           <property name=\"minimumSize\">\r\n            <size>\r\n             <width>0</width>\r\n             <height>0</height>\r\n            </size>\r\n           </property>\r\n           <property name=\"frameShape\">\r\n            <enum>QFrame::StyledPanel</enum>\r\n           </property>\r\n           <property name=\"frameShadow\">\r\n            <enum>QFrame::Raised</enum>\r\n           </property>\r\n           <layout class=\"QGridLayout\" name=\"gridLayout\">\r\n            <property name=\"topMargin\">\r\n             <number>0</number>\r\n            </property>\r\n            <property name=\"verticalSpacing\">\r\n             <number>7</number>\r\n            </property>\r\n            <item row=\"0\" column=\"3\" rowspan=\"6\">\r\n             <layout class=\"QFormLayout\" name=\"osLayout\">\r\n              <property name=\"sizeConstraint\">\r\n               <enum>QLayout::SetMaximumSize</enum>\r\n              </property>\r\n              <property name=\"fieldGrowthPolicy\">\r\n               <enum>QFormLayout::AllNonFixedFieldsGrow</enum>\r\n              </property>\r\n              <property name=\"rowWrapPolicy\">\r\n               <enum>QFormLayout::DontWrapRows</enum>\r\n              </property>\r\n              <property name=\"verticalSpacing\">\r\n               <number>12</number>\r\n              </property>\r\n              <item row=\"1\" column=\"0\">\r\n               <widget class=\"QLabel\" name=\"osLabel\">\r\n                <property name=\"font\">\r\n                 <font>\r\n                  <family>Segoe UI Emoji</family>\r\n                  <bold>true</bold>\r\n                  <stylestrategy>PreferAntialias</stylestrategy>\r\n                  <kerning>true</kerning>\r\n                 </font>\r\n                </property>\r\n                <property name=\"text\">\r\n                 <string>🖥️ 操作系统</string>\r\n                </property>\r\n               </widget>\r\n              </item>\r\n              <item row=\"1\" column=\"1\">\r\n               <widget class=\"QLabel\" name=\"osContent\">\r\n                <property name=\"sizePolicy\">\r\n                 <sizepolicy hsizetype=\"MinimumExpanding\" vsizetype=\"Preferred\">\r\n                  <horstretch>0</horstretch>\r\n                  <verstretch>0</verstretch>\r\n                 </sizepolicy>\r\n                </property>\r\n                <property name=\"font\">\r\n                 <font>\r\n                  <family>微软雅黑</family>\r\n                 </font>\r\n                </property>\r\n                <property name=\"text\">\r\n                 <string>windows 11 24H2</string>\r\n                </property>\r\n                <property name=\"alignment\">\r\n                 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>\r\n                </property>\r\n               </widget>\r\n              </item>\r\n              <item row=\"2\" column=\"0\">\r\n               <widget class=\"QLabel\" name=\"cpuLabel\">\r\n                <property name=\"font\">\r\n                 <font>\r\n                  <family>Segoe UI Emoji</family>\r\n                  <bold>true</bold>\r\n                  <stylestrategy>PreferAntialias</stylestrategy>\r\n                  <kerning>true</kerning>\r\n                 </font>\r\n                </property>\r\n                <property name=\"text\">\r\n                 <string>🔥 CPU</string>\r\n                </property>\r\n                <property name=\"alignment\">\r\n                 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>\r\n                </property>\r\n               </widget>\r\n              </item>\r\n              <item row=\"2\" column=\"1\">\r\n               <widget class=\"QLabel\" name=\"cpuContent\">\r\n                <property name=\"sizePolicy\">\r\n                 <sizepolicy hsizetype=\"MinimumExpanding\" vsizetype=\"Preferred\">\r\n                  <horstretch>0</horstretch>\r\n                  <verstretch>0</verstretch>\r\n                 </sizepolicy>\r\n                </property>\r\n                <property name=\"font\">\r\n                 <font>\r\n                  <family>微软雅黑</family>\r\n                 </font>\r\n                </property>\r\n                <property name=\"text\">\r\n                 <string>10.0%</string>\r\n                </property>\r\n                <property name=\"alignment\">\r\n                 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>\r\n                </property>\r\n               </widget>\r\n              </item>\r\n              <item row=\"3\" column=\"0\">\r\n               <widget class=\"QLabel\" name=\"memLabel\">\r\n                <property name=\"font\">\r\n                 <font>\r\n                  <family>Segoe UI Emoji</family>\r\n                  <bold>true</bold>\r\n                  <stylestrategy>PreferAntialias</stylestrategy>\r\n                  <kerning>true</kerning>\r\n                 </font>\r\n                </property>\r\n                <property name=\"text\">\r\n                 <string>📊 内存</string>\r\n                </property>\r\n               </widget>\r\n              </item>\r\n              <item row=\"3\" column=\"1\">\r\n               <widget class=\"QLabel\" name=\"memContent\">\r\n                <property name=\"sizePolicy\">\r\n                 <sizepolicy hsizetype=\"MinimumExpanding\" vsizetype=\"Preferred\">\r\n                  <horstretch>0</horstretch>\r\n                  <verstretch>0</verstretch>\r\n                 </sizepolicy>\r\n                </property>\r\n                <property name=\"font\">\r\n                 <font>\r\n                  <family>微软雅黑</family>\r\n                 </font>\r\n                </property>\r\n                <property name=\"text\">\r\n                 <string> ( 7.2G / 32.0G ) 12.3%</string>\r\n                </property>\r\n                <property name=\"alignment\">\r\n                 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>\r\n                </property>\r\n               </widget>\r\n              </item>\r\n              <item row=\"4\" column=\"0\">\r\n               <widget class=\"QLabel\" name=\"injector32Label\">\r\n                <property name=\"font\">\r\n                 <font>\r\n                  <family>Segoe UI Emoji</family>\r\n                  <bold>true</bold>\r\n                  <stylestrategy>PreferAntialias</stylestrategy>\r\n                  <kerning>true</kerning>\r\n                 </font>\r\n                </property>\r\n                <property name=\"text\">\r\n                 <string>♥️ 32bit 注入器</string>\r\n                </property>\r\n               </widget>\r\n              </item>\r\n              <item row=\"4\" column=\"1\">\r\n               <widget class=\"QLabel\" name=\"injector32Status\">\r\n                <property name=\"sizePolicy\">\r\n                 <sizepolicy hsizetype=\"MinimumExpanding\" vsizetype=\"Preferred\">\r\n                  <horstretch>0</horstretch>\r\n                  <verstretch>0</verstretch>\r\n                 </sizepolicy>\r\n                </property>\r\n                <property name=\"font\">\r\n                 <font>\r\n                  <family>微软雅黑</family>\r\n                 </font>\r\n                </property>\r\n                <property name=\"text\">\r\n                 <string>正常</string>\r\n                </property>\r\n                <property name=\"alignment\">\r\n                 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>\r\n                </property>\r\n               </widget>\r\n              </item>\r\n              <item row=\"5\" column=\"0\">\r\n               <widget class=\"QLabel\" name=\"injector64Label\">\r\n                <property name=\"font\">\r\n                 <font>\r\n                  <family>Segoe UI Emoji</family>\r\n                  <bold>true</bold>\r\n                  <stylestrategy>PreferAntialias</stylestrategy>\r\n                  <kerning>true</kerning>\r\n                 </font>\r\n                </property>\r\n                <property name=\"text\">\r\n                 <string>♥️ 64bit 注入器</string>\r\n                </property>\r\n               </widget>\r\n              </item>\r\n              <item row=\"5\" column=\"1\">\r\n               <widget class=\"QLabel\" name=\"injector64Status\">\r\n                <property name=\"sizePolicy\">\r\n                 <sizepolicy hsizetype=\"MinimumExpanding\" vsizetype=\"Preferred\">\r\n                  <horstretch>0</horstretch>\r\n                  <verstretch>0</verstretch>\r\n                 </sizepolicy>\r\n                </property>\r\n                <property name=\"font\">\r\n                 <font>\r\n                  <family>微软雅黑</family>\r\n                 </font>\r\n                </property>\r\n                <property name=\"text\">\r\n                 <string>正常</string>\r\n                </property>\r\n                <property name=\"alignment\">\r\n                 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>\r\n                </property>\r\n               </widget>\r\n              </item>\r\n             </layout>\r\n            </item>\r\n            <item row=\"5\" column=\"0\">\r\n             <widget class=\"QLabel\" name=\"originSpeedLabel\">\r\n              <property name=\"sizePolicy\">\r\n               <sizepolicy hsizetype=\"MinimumExpanding\" vsizetype=\"Preferred\">\r\n                <horstretch>0</horstretch>\r\n                <verstretch>0</verstretch>\r\n               </sizepolicy>\r\n              </property>\r\n              <property name=\"font\">\r\n               <font>\r\n                <family>微软雅黑</family>\r\n                <underline>false</underline>\r\n                <stylestrategy>PreferAntialias</stylestrategy>\r\n                <kerning>true</kerning>\r\n               </font>\r\n              </property>\r\n              <property name=\"styleSheet\">\r\n               <string notr=\"true\">color:  #0078D4;</string>\r\n              </property>\r\n              <property name=\"text\">\r\n               <string>▲\r\n原速</string>\r\n              </property>\r\n              <property name=\"alignment\">\r\n               <set>Qt::AlignHCenter|Qt::AlignTop</set>\r\n              </property>\r\n              <property name=\"indent\">\r\n               <number>0</number>\r\n              </property>\r\n             </widget>\r\n            </item>\r\n            <item row=\"4\" column=\"1\">\r\n             <widget class=\"QDoubleSpinBox\" name=\"sliderInputSpinBox\">\r\n              <property name=\"sizePolicy\">\r\n               <sizepolicy hsizetype=\"Maximum\" vsizetype=\"Ignored\">\r\n                <horstretch>0</horstretch>\r\n                <verstretch>0</verstretch>\r\n               </sizepolicy>\r\n              </property>\r\n              <property name=\"minimumSize\">\r\n               <size>\r\n                <width>100</width>\r\n                <height>0</height>\r\n               </size>\r\n              </property>\r\n              <property name=\"font\">\r\n               <font>\r\n                <family>微软雅黑</family>\r\n                <pointsize>9</pointsize>\r\n               </font>\r\n              </property>\r\n              <property name=\"focusPolicy\">\r\n               <enum>Qt::StrongFocus</enum>\r\n              </property>\r\n              <property name=\"wrapping\">\r\n               <bool>false</bool>\r\n              </property>\r\n              <property name=\"frame\">\r\n               <bool>false</bool>\r\n              </property>\r\n              <property name=\"alignment\">\r\n               <set>Qt::AlignCenter</set>\r\n              </property>\r\n              <property name=\"buttonSymbols\">\r\n               <enum>QAbstractSpinBox::UpDownArrows</enum>\r\n              </property>\r\n              <property name=\"accelerated\">\r\n               <bool>false</bool>\r\n              </property>\r\n              <property name=\"keyboardTracking\">\r\n               <bool>true</bool>\r\n              </property>\r\n              <property name=\"minimum\">\r\n               <double>0.010000000000000</double>\r\n              </property>\r\n              <property name=\"maximum\">\r\n               <double>1000.000000000000000</double>\r\n              </property>\r\n              <property name=\"value\">\r\n               <double>1.000000000000000</double>\r\n              </property>\r\n             </widget>\r\n            </item>\r\n            <item row=\"4\" column=\"0\">\r\n             <widget class=\"QSlider\" name=\"sliderCtrl\">\r\n              <property name=\"sizePolicy\">\r\n               <sizepolicy hsizetype=\"MinimumExpanding\" vsizetype=\"Fixed\">\r\n                <horstretch>2</horstretch>\r\n                <verstretch>0</verstretch>\r\n               </sizepolicy>\r\n              </property>\r\n              <property name=\"minimumSize\">\r\n               <size>\r\n                <width>200</width>\r\n                <height>40</height>\r\n               </size>\r\n              </property>\r\n              <property name=\"cursor\">\r\n               <cursorShape>PointingHandCursor</cursorShape>\r\n              </property>\r\n              <property name=\"mouseTracking\">\r\n               <bool>true</bool>\r\n              </property>\r\n              <property name=\"tabletTracking\">\r\n               <bool>false</bool>\r\n              </property>\r\n              <property name=\"focusPolicy\">\r\n               <enum>Qt::NoFocus</enum>\r\n              </property>\r\n              <property name=\"styleSheet\">\r\n               <string notr=\"true\">QSlider::handle:horizontal {\r\n    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,\r\n                stop:0 rgba(255, 255, 255, 0.9), \r\n                stop:0.2 rgba(255, 255, 255, 0.7),\r\n                stop:0.8 rgba(230, 230, 230, 0.8), \r\n                stop:1 rgba(200, 200, 200, 0.9));\r\n    border: 1px solid rgba(150, 150, 150, 0.8);\r\n}\r\n\r\nQSlider::handle:horizontal:hover {\r\n    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,\r\n                stop:0 rgba(255, 255, 255, 0.95), \r\n                stop:0.2 rgba(227, 242, 253, 0.8),\r\n                stop:0.8 rgba(144, 202, 249, 0.8), \r\n                stop:1 rgba(100, 181, 246, 0.9));\r\n    border: 1px solid rgba(25, 118, 210, 0.8);\r\n}\r\n\r\nQSlider::handle:horizontal:pressed {\r\n    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,\r\n                stop:0 rgba(227, 242, 253, 0.9), \r\n                stop:0.3 rgba(144, 202, 249, 0.8),\r\n                stop:0.7 rgba(66, 165, 245, 0.9), \r\n                stop:1 rgba(25, 118, 210, 0.95));\r\n    border: 1px solid rgba(13, 71, 161, 0.9);\r\n}</string>\r\n              </property>\r\n              <property name=\"minimum\">\r\n               <number>-99900</number>\r\n              </property>\r\n              <property name=\"maximum\">\r\n               <number>99900</number>\r\n              </property>\r\n              <property name=\"pageStep\">\r\n               <number>100</number>\r\n              </property>\r\n              <property name=\"sliderPosition\">\r\n               <number>0</number>\r\n              </property>\r\n              <property name=\"tracking\">\r\n               <bool>true</bool>\r\n              </property>\r\n              <property name=\"orientation\">\r\n               <enum>Qt::Horizontal</enum>\r\n              </property>\r\n              <property name=\"invertedControls\">\r\n               <bool>true</bool>\r\n              </property>\r\n              <property name=\"tickPosition\">\r\n               <enum>QSlider::TicksBothSides</enum>\r\n              </property>\r\n              <property name=\"tickInterval\">\r\n               <number>3330</number>\r\n              </property>\r\n             </widget>\r\n            </item>\r\n            <item row=\"0\" column=\"2\" rowspan=\"6\">\r\n             <widget class=\"Line\" name=\"osSpliter\">\r\n              <property name=\"frameShadow\">\r\n               <enum>QFrame::Sunken</enum>\r\n              </property>\r\n              <property name=\"lineWidth\">\r\n               <number>1</number>\r\n              </property>\r\n              <property name=\"orientation\">\r\n               <enum>Qt::Vertical</enum>\r\n              </property>\r\n             </widget>\r\n            </item>\r\n            <item row=\"3\" column=\"0\">\r\n             <layout class=\"QHBoxLayout\" name=\"sliderTitle\">\r\n              <item>\r\n               <spacer name=\"horizontalSpacer_1\">\r\n                <property name=\"orientation\">\r\n                 <enum>Qt::Horizontal</enum>\r\n                </property>\r\n                <property name=\"sizeHint\" stdset=\"0\">\r\n                 <size>\r\n                  <width>70</width>\r\n                  <height>20</height>\r\n                 </size>\r\n                </property>\r\n               </spacer>\r\n              </item>\r\n              <item>\r\n               <widget class=\"QPushButton\" name=\"sliderLabel\">\r\n                <property name=\"sizePolicy\">\r\n                 <sizepolicy hsizetype=\"MinimumExpanding\" vsizetype=\"Maximum\">\r\n                  <horstretch>0</horstretch>\r\n                  <verstretch>0</verstretch>\r\n                 </sizepolicy>\r\n                </property>\r\n                <property name=\"minimumSize\">\r\n                 <size>\r\n                  <width>120</width>\r\n                  <height>0</height>\r\n                 </size>\r\n                </property>\r\n                <property name=\"font\">\r\n                 <font>\r\n                  <family>微软雅黑</family>\r\n                  <pointsize>14</pointsize>\r\n                 </font>\r\n                </property>\r\n                <property name=\"cursor\">\r\n                 <cursorShape>PointingHandCursor</cursorShape>\r\n                </property>\r\n                <property name=\"focusPolicy\">\r\n                 <enum>Qt::NoFocus</enum>\r\n                </property>\r\n                <property name=\"styleSheet\">\r\n                 <string notr=\"true\">    QPushButton {\r\n        background-color: #0078D4;\r\n\r\n        color: white;\r\n        border-radius: 20px;\r\n\t\tpadding: 10;\r\n    }</string>\r\n                </property>\r\n                <property name=\"text\">\r\n                 <string>✖️1.0倍</string>\r\n                </property>\r\n               </widget>\r\n              </item>\r\n              <item>\r\n               <spacer name=\"horizontalSpacer_2\">\r\n                <property name=\"orientation\">\r\n                 <enum>Qt::Horizontal</enum>\r\n                </property>\r\n                <property name=\"sizeType\">\r\n                 <enum>QSizePolicy::Expanding</enum>\r\n                </property>\r\n                <property name=\"sizeHint\" stdset=\"0\">\r\n                 <size>\r\n                  <width>70</width>\r\n                  <height>20</height>\r\n                 </size>\r\n                </property>\r\n               </spacer>\r\n              </item>\r\n             </layout>\r\n            </item>\r\n           </layout>\r\n          </widget>\r\n         </item>\r\n         <item>\r\n          <layout class=\"QHBoxLayout\" name=\"hotkeyLayout\">\r\n           <item>\r\n            <widget class=\"QLabel\" name=\"increaseSpeedLabel\">\r\n             <property name=\"font\">\r\n              <font>\r\n               <family>Segoe UI Emoji</family>\r\n              </font>\r\n             </property>\r\n             <property name=\"text\">\r\n              <string>Ctrl + Alt + ⬆️ 增加速度</string>\r\n             </property>\r\n            </widget>\r\n           </item>\r\n           <item>\r\n            <widget class=\"QLabel\" name=\"decreaseSpeedLabel\">\r\n             <property name=\"font\">\r\n              <font>\r\n               <family>Segoe UI Emoji</family>\r\n              </font>\r\n             </property>\r\n             <property name=\"text\">\r\n              <string>Ctrl + Alt + ⬇️ 减少速度</string>\r\n             </property>\r\n            </widget>\r\n           </item>\r\n           <item>\r\n            <widget class=\"QLabel\" name=\"resetSpeedLabel\">\r\n             <property name=\"font\">\r\n              <font>\r\n               <family>Segoe UI Emoji</family>\r\n              </font>\r\n             </property>\r\n             <property name=\"text\">\r\n              <string>Ctrl + Alt + 0 重置速度</string>\r\n             </property>\r\n            </widget>\r\n           </item>\r\n          </layout>\r\n         </item>\r\n        </layout>\r\n       </widget>\r\n      </item>\r\n      <item>\r\n       <widget class=\"Line\" name=\"seperator\">\r\n        <property name=\"orientation\">\r\n         <enum>Qt::Horizontal</enum>\r\n        </property>\r\n       </widget>\r\n      </item>\r\n      <item>\r\n       <widget class=\"QGroupBox\" name=\"processGroupBox\">\r\n        <property name=\"font\">\r\n         <font>\r\n          <family>Segoe UI Emoji</family>\r\n          <pointsize>10</pointsize>\r\n          <italic>false</italic>\r\n          <stylestrategy>PreferAntialias</stylestrategy>\r\n         </font>\r\n        </property>\r\n        <property name=\"styleSheet\">\r\n         <string notr=\"true\"/>\r\n        </property>\r\n        <property name=\"title\">\r\n         <string>💻进程</string>\r\n        </property>\r\n        <layout class=\"QVBoxLayout\" name=\"verticalLayout_4\">\r\n         <item>\r\n          <layout class=\"QHBoxLayout\" name=\"filterLayout\">\r\n           <item>\r\n            <widget class=\"QLineEdit\" name=\"processNameFilter\">\r\n             <property name=\"minimumSize\">\r\n              <size>\r\n               <width>0</width>\r\n               <height>24</height>\r\n              </size>\r\n             </property>\r\n             <property name=\"font\">\r\n              <font>\r\n               <family>Microsoft YaHei UI</family>\r\n              </font>\r\n             </property>\r\n             <property name=\"styleSheet\">\r\n              <string notr=\"true\">height: 30px;\r\nborder-radius: 15px;\r\npadding: 0px 8px;</string>\r\n             </property>\r\n             <property name=\"placeholderText\">\r\n              <string>🔍输入进程名搜索...</string>\r\n             </property>\r\n             <property name=\"clearButtonEnabled\">\r\n              <bool>true</bool>\r\n             </property>\r\n            </widget>\r\n           </item>\r\n           <item>\r\n            <spacer name=\"filterSpacer1\">\r\n             <property name=\"orientation\">\r\n              <enum>Qt::Horizontal</enum>\r\n             </property>\r\n             <property name=\"sizeType\">\r\n              <enum>QSizePolicy::Minimum</enum>\r\n             </property>\r\n             <property name=\"sizeHint\" stdset=\"0\">\r\n              <size>\r\n               <width>20</width>\r\n               <height>20</height>\r\n              </size>\r\n             </property>\r\n            </spacer>\r\n           </item>\r\n           <item>\r\n            <spacer name=\"filterSpacer2\">\r\n             <property name=\"orientation\">\r\n              <enum>Qt::Horizontal</enum>\r\n             </property>\r\n             <property name=\"sizeType\">\r\n              <enum>QSizePolicy::Minimum</enum>\r\n             </property>\r\n             <property name=\"sizeHint\" stdset=\"0\">\r\n              <size>\r\n               <width>10</width>\r\n               <height>20</height>\r\n              </size>\r\n             </property>\r\n            </spacer>\r\n           </item>\r\n           <item>\r\n            <spacer name=\"filterSpacer3\">\r\n             <property name=\"orientation\">\r\n              <enum>Qt::Horizontal</enum>\r\n             </property>\r\n             <property name=\"sizeHint\" stdset=\"0\">\r\n              <size>\r\n               <width>40</width>\r\n               <height>20</height>\r\n              </size>\r\n             </property>\r\n            </spacer>\r\n           </item>\r\n          </layout>\r\n         </item>\r\n         <item>\r\n          <widget class=\"QTreeWidget\" name=\"processMonitorWidget\">\r\n           <property name=\"font\">\r\n            <font>\r\n             <family>微软雅黑</family>\r\n             <pointsize>9</pointsize>\r\n            </font>\r\n           </property>\r\n           <property name=\"focusPolicy\">\r\n            <enum>Qt::NoFocus</enum>\r\n           </property>\r\n           <property name=\"styleSheet\">\r\n            <string notr=\"true\">QTreeWidget::item { \r\n\theight: 30px; \r\n}\r\n\r\nQTreeWidget {\r\n\tborder:none\r\n}</string>\r\n           </property>\r\n           <property name=\"sortingEnabled\">\r\n            <bool>true</bool>\r\n           </property>\r\n           <property name=\"animated\">\r\n            <bool>false</bool>\r\n           </property>\r\n           <property name=\"expandsOnDoubleClick\">\r\n            <bool>true</bool>\r\n           </property>\r\n           <attribute name=\"headerCascadingSectionResizes\">\r\n            <bool>true</bool>\r\n           </attribute>\r\n           <attribute name=\"headerDefaultSectionSize\">\r\n            <number>80</number>\r\n           </attribute>\r\n           <attribute name=\"headerShowSortIndicator\" stdset=\"0\">\r\n            <bool>true</bool>\r\n           </attribute>\r\n           <attribute name=\"headerStretchLastSection\">\r\n            <bool>true</bool>\r\n           </attribute>\r\n           <column>\r\n            <property name=\"text\">\r\n             <string>进程名称</string>\r\n            </property>\r\n            <property name=\"font\">\r\n             <font>\r\n              <family>微软雅黑</family>\r\n              <bold>true</bold>\r\n             </font>\r\n            </property>\r\n           </column>\r\n           <column>\r\n            <property name=\"text\">\r\n             <string>PID</string>\r\n            </property>\r\n            <property name=\"font\">\r\n             <font>\r\n              <family>微软雅黑</family>\r\n              <bold>true</bold>\r\n             </font>\r\n            </property>\r\n           </column>\r\n           <column>\r\n            <property name=\"text\">\r\n             <string>内存使用</string>\r\n            </property>\r\n            <property name=\"font\">\r\n             <font>\r\n              <family>微软雅黑</family>\r\n              <bold>true</bold>\r\n             </font>\r\n            </property>\r\n           </column>\r\n           <column>\r\n            <property name=\"text\">\r\n             <string>架构</string>\r\n            </property>\r\n            <property name=\"font\">\r\n             <font>\r\n              <family>微软雅黑</family>\r\n              <bold>true</bold>\r\n             </font>\r\n            </property>\r\n           </column>\r\n           <column>\r\n            <property name=\"text\">\r\n             <string>优先级</string>\r\n            </property>\r\n            <property name=\"font\">\r\n             <font>\r\n              <family>微软雅黑</family>\r\n              <bold>true</bold>\r\n             </font>\r\n            </property>\r\n           </column>\r\n           <column>\r\n            <property name=\"text\">\r\n             <string>是否加速</string>\r\n            </property>\r\n            <property name=\"font\">\r\n             <font>\r\n              <family>微软雅黑</family>\r\n              <bold>true</bold>\r\n             </font>\r\n            </property>\r\n           </column>\r\n          </widget>\r\n         </item>\r\n        </layout>\r\n       </widget>\r\n      </item>\r\n     </layout>\r\n    </item>\r\n    <item>\r\n     <widget class=\"QLabel\" name=\"processMonitorLabel\">\r\n      <property name=\"font\">\r\n       <font>\r\n        <family>微软雅黑</family>\r\n       </font>\r\n      </property>\r\n      <property name=\"text\">\r\n       <string>搜索到1200个进程, 已过滤展示20个</string>\r\n      </property>\r\n     </widget>\r\n    </item>\r\n   </layout>\r\n  </widget>\r\n  <widget class=\"QMenuBar\" name=\"menubar\">\r\n   <property name=\"geometry\">\r\n    <rect>\r\n     <x>0</x>\r\n     <y>0</y>\r\n     <width>1024</width>\r\n     <height>18</height>\r\n    </rect>\r\n   </property>\r\n   <property name=\"mouseTracking\">\r\n    <bool>false</bool>\r\n   </property>\r\n   <widget class=\"QMenu\" name=\"menuAbout\">\r\n    <property name=\"tearOffEnabled\">\r\n     <bool>false</bool>\r\n    </property>\r\n    <property name=\"title\">\r\n     <string>📖关于</string>\r\n    </property>\r\n    <property name=\"separatorsCollapsible\">\r\n     <bool>false</bool>\r\n    </property>\r\n   </widget>\r\n   <widget class=\"QMenu\" name=\"menuPreference\">\r\n    <property name=\"title\">\r\n     <string>⌨️快捷键</string>\r\n    </property>\r\n   </widget>\r\n   <widget class=\"QMenu\" name=\"menuLanguage\">\r\n    <property name=\"title\">\r\n     <string>🌐语言</string>\r\n    </property>\r\n    <addaction name=\"actionCN\"/>\r\n    <addaction name=\"actionTW\"/>\r\n    <addaction name=\"actionEN\"/>\r\n   </widget>\r\n   <widget class=\"QMenu\" name=\"menuTheme\">\r\n    <property name=\"title\">\r\n     <string>🎨主题</string>\r\n    </property>\r\n    <addaction name=\"actionLightTheme\"/>\r\n    <addaction name=\"actionDarkTheme\"/>\r\n   </widget>\r\n   <addaction name=\"menuPreference\"/>\r\n   <addaction name=\"menuLanguage\"/>\r\n   <addaction name=\"menuTheme\"/>\r\n   <addaction name=\"menuAbout\"/>\r\n  </widget>\r\n  <action name=\"actionCN\">\r\n   <property name=\"checkable\">\r\n    <bool>true</bool>\r\n   </property>\r\n   <property name=\"text\">\r\n    <string>中文(简体)</string>\r\n   </property>\r\n   <property name=\"menuRole\">\r\n    <enum>QAction::ApplicationSpecificRole</enum>\r\n   </property>\r\n  </action>\r\n  <action name=\"actionEN\">\r\n   <property name=\"checkable\">\r\n    <bool>true</bool>\r\n   </property>\r\n   <property name=\"text\">\r\n    <string>English</string>\r\n   </property>\r\n   <property name=\"menuRole\">\r\n    <enum>QAction::ApplicationSpecificRole</enum>\r\n   </property>\r\n  </action>\r\n  <action name=\"actionTW\">\r\n   <property name=\"checkable\">\r\n    <bool>true</bool>\r\n   </property>\r\n   <property name=\"text\">\r\n    <string>中文(繁體)</string>\r\n   </property>\r\n   <property name=\"menuRole\">\r\n    <enum>QAction::ApplicationSpecificRole</enum>\r\n   </property>\r\n  </action>\r\n  <action name=\"actionLightTheme\">\r\n   <property name=\"checkable\">\r\n    <bool>true</bool>\r\n   </property>\r\n   <property name=\"text\">\r\n    <string>浅色</string>\r\n   </property>\r\n  </action>\r\n  <action name=\"actionDarkTheme\">\r\n   <property name=\"checkable\">\r\n    <bool>true</bool>\r\n   </property>\r\n   <property name=\"text\">\r\n    <string>深色</string>\r\n   </property>\r\n  </action>\r\n </widget>\r\n <tabstops>\r\n  <tabstop>processNameFilter</tabstop>\r\n  <tabstop>processMonitorWidget</tabstop>\r\n </tabstops>\r\n <resources/>\r\n <connections/>\r\n</ui>\r\n"
  },
  {
    "path": "memutils.cpp",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#include \"memutils.h\"\n\nMemUtils::MemUtils()\n{\n}\n\nbool MemUtils::init()\n{\n    if (PdhOpenQuery(NULL, NULL, &hQuery) != ERROR_SUCCESS) return false;\n\n    if (PdhAddEnglishCounter(hQuery,\n                             L\"\\\\Memory\\\\Available Bytes\",\n                             NULL,\n                             &hCounter) != ERROR_SUCCESS)\n    {\n        PdhCloseQuery(hQuery);\n        return false;\n    }\n\n    PdhCollectQueryData(hQuery);\n    initialized = true;\n    return true;\n}\n\ndouble MemUtils::getTotal()\n{\n    MEMORYSTATUSEX memInfo;\n    memInfo.dwLength = sizeof(MEMORYSTATUSEX);\n    GlobalMemoryStatusEx(&memInfo);\n    return memInfo.ullTotalPhys / (1024.0 * 1024.0 * 1024.0);\n}\n\ndouble MemUtils::getUsage()\n{\n    if (!initialized) return -1;\n\n    if (PdhCollectQueryData(hQuery) != ERROR_SUCCESS) return -1;\n\n    PDH_FMT_COUNTERVALUE available;\n    if (PdhGetFormattedCounterValue(hCounter,\n                                    PDH_FMT_DOUBLE,\n                                    NULL,\n                                    &available) != ERROR_SUCCESS)\n        return -1;\n\n    double totalMemory = getTotal() * 1024 * 1024 * 1024;\n    double usageMemory = totalMemory - available.doubleValue;\n\n    return usageMemory / (1024.0 * 1024.0 * 1024.0);\n}\n"
  },
  {
    "path": "memutils.h",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n * \n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * \n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * \n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#ifndef MEMUTILS_H\n#define MEMUTILS_H\n#include <windows.h>\n#include <pdh.h>\n\nclass MemUtils\n{\n   private:\n    PDH_HQUERY hQuery = NULL;\n    PDH_HCOUNTER hCounter = NULL;\n    bool initialized = false;\n\n   public:\n    MemUtils();\n\n    bool init();\n\n    double getTotal();\n\n    double getUsage();\n};\n\n#endif  // MEMUTILS_H\n"
  },
  {
    "path": "preferencedialog.cpp",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#include \"preferencedialog.h\"\n#include \"ui_preferencedialog.h\"\n#include <QDebug>\n#include <QPushButton>\n#include <QScreen>\nPreferenceDialog::PreferenceDialog(HWND hMainWindow,\n                                   QSettings* settings,\n                                   QLabel* increaseSpeedLabel,\n                                   QLabel* decreaseSpeedLabel,\n                                   QLabel* resetSpeedLabel,\n                                   QWidget* parent)\n  : QDialog(parent)\n  , ui(new Ui::PreferenceDialog)\n  , m_settings(settings)\n  , m_increaseSpeedLabel(increaseSpeedLabel)\n  , m_decreaseSpeedLabel(decreaseSpeedLabel)\n  , m_resetSpeedLabel(resetSpeedLabel)\n  , m_mainwindow(hMainWindow)\n{\n    ui->setupUi(this);\n    setWindowFlags(Qt::Dialog | Qt::WindowTitleHint | Qt::CustomizeWindowHint);\n\n    ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr(\"确认\"));\n    ui->buttonBox->button(QDialogButtonBox::Cancel)->setText(tr(\"取消\"));\n\n    loadShortcut(\n      HOTKEY_INCREASE_SPEED, CONFIG_HOTKEY_SPEEDUP, DEFAULT_HOTKEY_SPEEDUP);\n    loadShortcut(\n      HOTKEY_DECREASE_SPEED, CONFIG_HOTKEY_SPEEDDOWN, DEFAULT_HOTKEY_SPEEDDOWN);\n    loadShortcut(\n      HOTKEY_RESET_SPEED, CONFIG_HOTKEY_RESETSPEED, DEFAULT_HOTKEY_RERSETSPEED);\n    loadShortcut(HOTKEY_SHIFT1, CONFIG_HOTKEY_SHIFT1, DEFAULT_HOTKEY_SHIFT1);\n    loadShortcut(HOTKEY_SHIFT2, CONFIG_HOTKEY_SHIFT2, DEFAULT_HOTKEY_SHIFT2);\n    loadShortcut(HOTKEY_SHIFT3, CONFIG_HOTKEY_SHIFT3, DEFAULT_HOTKEY_SHIFT3);\n    loadShortcut(HOTKEY_SHIFT4, CONFIG_HOTKEY_SHIFT4, DEFAULT_HOTKEY_SHIFT4);\n    loadShortcut(HOTKEY_SHIFT5, CONFIG_HOTKEY_SHIFT5, DEFAULT_HOTKEY_SHIFT5);\n\n    m_shift1Value =\n      m_settings->value(CONFIG_SHIFT1_VALUE, DEFAULT_SHIFT1_VALUE).toDouble();\n    m_shift2Value =\n      m_settings->value(CONFIG_SHIFT2_VALUE, DEFAULT_SHIFT2_VALUE).toDouble();\n    m_shift3Value =\n      m_settings->value(CONFIG_SHIFT3_VALUE, DEFAULT_SHIFT3_VALUE).toDouble();\n    m_shift4Value =\n      m_settings->value(CONFIG_SHIFT4_VALUE, DEFAULT_SHIFT4_VALUE).toDouble();\n    m_shift5Value =\n      m_settings->value(CONFIG_SHIFT5_VALUE, DEFAULT_SHIFT5_VALUE).toDouble();\n\n    m_increaseStep =\n      m_settings->value(CONFIG_INCREASE_STEP, DEFAULT_INCREASE_STEP).toInt();\n    m_decreaseStep =\n      m_settings->value(CONFIG_DECREASE_STEP, DEFAULT_DECREASE_STEP).toInt();\n\n    connect(QGuiApplication::primaryScreen(),\n            &QScreen::logicalDotsPerInchChanged,\n            this,\n            &PreferenceDialog::recreate);\n    redraw();\n    adjustSize();\n    setupGlobalHotkeys();\n}\n\nPreferenceDialog::~PreferenceDialog()\n{\n    unregisterGlobalHotkeys();\n    delete ui;\n}\n\nint\nPreferenceDialog::getIncreaseStep()\n{\n    return m_increaseStep;\n}\n\nint\nPreferenceDialog::getDecreaseStep()\n{\n    return m_decreaseStep;\n}\n\ndouble\nPreferenceDialog::getShift1()\n{\n    return m_shift1Value;\n}\n\ndouble\nPreferenceDialog::getShift2()\n{\n    return m_shift2Value;\n}\n\ndouble\nPreferenceDialog::getShift3()\n{\n    return m_shift3Value;\n}\n\ndouble\nPreferenceDialog::getShift4()\n{\n    return m_shift4Value;\n}\n\ndouble\nPreferenceDialog::getShift5()\n{\n    return m_shift5Value;\n}\n\nvoid\nPreferenceDialog::show()\n{\n    unregisterGlobalHotkeys();\n    QDialog::show();\n}\n\nvoid\nPreferenceDialog::setupGlobalHotkeys()\n{\n    for (auto it = m_shortcuts.begin(); it != m_shortcuts.end(); it++)\n    {\n        int id = it.key();\n        QtCombinedKey combined = it.value();\n\n        UINT vk = QSingleKeySequenceEdit::toVK(combined.key, combined.modifier);\n        UINT modifier = QSingleKeySequenceEdit::toModifier(combined.modifier);\n        RegisterHotKey(m_mainwindow, id, modifier, vk);\n    }\n\n    qDebug() << \"全局快捷键已注册:\";\n}\n\nvoid\nPreferenceDialog::unregisterGlobalHotkeys()\n{\n    for (auto it = m_shortcuts.begin(); it != m_shortcuts.end(); it++)\n    {\n        int id = it.key();\n        UnregisterHotKey(m_mainwindow, id);\n    }\n    qDebug() << \"全局快捷键已注销\";\n}\n\nvoid\nPreferenceDialog::loadShortcut(int id,\n                               const QString& config,\n                               const QString& defaultValue)\n{\n    m_shortcuts.insert(id,\n                       QSingleKeySequenceEdit::toQtCombinedKey(\n                         m_settings->value(config, defaultValue).toString()));\n}\n\nvoid\nPreferenceDialog::dump()\n{\n    dumpShortcut(CONFIG_HOTKEY_SPEEDUP,\n                 ui->speedUpKeySequenceEdit->getKeyText());\n    dumpShortcut(CONFIG_HOTKEY_SPEEDDOWN,\n                 ui->speedDownKeySequenceEdit->getKeyText());\n    dumpShortcut(CONFIG_HOTKEY_RESETSPEED,\n                 ui->resetSpeedKeySequenceEdit->getKeyText());\n\n    dumpShortcut(CONFIG_HOTKEY_SHIFT1, ui->shift1KeySequenceEdit->getKeyText());\n    dumpShortcut(CONFIG_HOTKEY_SHIFT2, ui->shift2KeySequenceEdit->getKeyText());\n    dumpShortcut(CONFIG_HOTKEY_SHIFT3, ui->shift3KeySequenceEdit->getKeyText());\n    dumpShortcut(CONFIG_HOTKEY_SHIFT4, ui->shift4KeySequenceEdit->getKeyText());\n    dumpShortcut(CONFIG_HOTKEY_SHIFT5, ui->shift5KeySequenceEdit->getKeyText());\n    m_settings->setValue(CONFIG_INCREASE_STEP,\n                         ui->increaseStepSpinBox->value());\n    m_settings->setValue(CONFIG_DECREASE_STEP,\n                         ui->decreaseStepSpinBox->value());\n    m_settings->setValue(CONFIG_SHIFT1_VALUE, ui->shift1DoubleSpinBox->value());\n    m_settings->setValue(CONFIG_SHIFT2_VALUE, ui->shift2DoubleSpinBox->value());\n    m_settings->setValue(CONFIG_SHIFT3_VALUE, ui->shift3DoubleSpinBox->value());\n    m_settings->setValue(CONFIG_SHIFT4_VALUE, ui->shift4DoubleSpinBox->value());\n    m_settings->setValue(CONFIG_SHIFT5_VALUE, ui->shift5DoubleSpinBox->value());\n    m_settings->sync();\n}\n\nvoid\nPreferenceDialog::dumpShortcut(const QString& config, const QString& keyText)\n{\n    m_settings->setValue(config, keyText);\n}\n\nvoid\nPreferenceDialog::updateShortcut(int id, QSingleKeySequenceEdit* keyEdit)\n{\n    m_shortcuts[id] = keyEdit->getQtCombinedKey();\n}\n\nvoid\nPreferenceDialog::update()\n{\n    updateShortcut(HOTKEY_INCREASE_SPEED, ui->speedUpKeySequenceEdit);\n    updateShortcut(HOTKEY_DECREASE_SPEED, ui->speedDownKeySequenceEdit);\n    updateShortcut(HOTKEY_RESET_SPEED, ui->resetSpeedKeySequenceEdit);\n    updateShortcut(HOTKEY_SHIFT1, ui->shift1KeySequenceEdit);\n    updateShortcut(HOTKEY_SHIFT2, ui->shift2KeySequenceEdit);\n    updateShortcut(HOTKEY_SHIFT3, ui->shift3KeySequenceEdit);\n    updateShortcut(HOTKEY_SHIFT4, ui->shift4KeySequenceEdit);\n    updateShortcut(HOTKEY_SHIFT5, ui->shift5KeySequenceEdit);\n\n    m_increaseStep = ui->increaseStepSpinBox->value();\n    m_decreaseStep = ui->decreaseStepSpinBox->value();\n    m_shift1Value = ui->shift1DoubleSpinBox->value();\n    m_shift2Value = ui->shift2DoubleSpinBox->value();\n    m_shift3Value = ui->shift3DoubleSpinBox->value();\n    m_shift4Value = ui->shift4DoubleSpinBox->value();\n    m_shift5Value = ui->shift5DoubleSpinBox->value();\n}\n\nvoid\nPreferenceDialog::redrawSpinBox(QSpinBox* spinbox, int value)\n{\n    spinbox->setValue(value);\n}\n\nvoid\nPreferenceDialog::redrawSpinBox(QDoubleSpinBox* spinbox, double value)\n{\n    spinbox->setValue(value);\n}\n\nvoid\nPreferenceDialog::redrawKeyEdit(QSingleKeySequenceEdit* keyEdit, int id)\n{\n    QtCombinedKey combinedKey = m_shortcuts[id];\n    keyEdit->setKeySequence(combinedKey.key | combinedKey.modifier);\n}\n\nvoid\nPreferenceDialog::redraw()\n{\n    redrawKeyEdit(ui->speedUpKeySequenceEdit, HOTKEY_INCREASE_SPEED);\n    redrawKeyEdit(ui->speedDownKeySequenceEdit, HOTKEY_DECREASE_SPEED);\n    redrawKeyEdit(ui->resetSpeedKeySequenceEdit, HOTKEY_RESET_SPEED);\n    redrawKeyEdit(ui->shift1KeySequenceEdit, HOTKEY_SHIFT1);\n    redrawKeyEdit(ui->shift2KeySequenceEdit, HOTKEY_SHIFT2);\n    redrawKeyEdit(ui->shift3KeySequenceEdit, HOTKEY_SHIFT3);\n    redrawKeyEdit(ui->shift4KeySequenceEdit, HOTKEY_SHIFT4);\n    redrawKeyEdit(ui->shift5KeySequenceEdit, HOTKEY_SHIFT5);\n\n    redrawSpinBox(ui->increaseStepSpinBox, m_increaseStep);\n    redrawSpinBox(ui->decreaseStepSpinBox, m_decreaseStep);\n    redrawSpinBox(ui->shift1DoubleSpinBox, m_shift1Value);\n    redrawSpinBox(ui->shift2DoubleSpinBox, m_shift2Value);\n    redrawSpinBox(ui->shift3DoubleSpinBox, m_shift3Value);\n    redrawSpinBox(ui->shift4DoubleSpinBox, m_shift4Value);\n    redrawSpinBox(ui->shift5DoubleSpinBox, m_shift5Value);\n\n    m_increaseSpeedLabel->setText(\n      QString(tr(\"%1 增加速度\"))\n        .arg(QSingleKeySequenceEdit::wrapText(\n          ui->speedUpKeySequenceEdit->getKeyText())));\n\n    m_decreaseSpeedLabel->setText(\n      QString(tr(\"%1 减少速度\"))\n        .arg(QSingleKeySequenceEdit::wrapText(\n          ui->speedDownKeySequenceEdit->getKeyText())));\n\n    m_resetSpeedLabel->setText(\n      QString(tr(\"%1 重置速度\"))\n        .arg(QSingleKeySequenceEdit::wrapText(\n          ui->resetSpeedKeySequenceEdit->getKeyText())));\n\n    adjustSize();\n}\n\nvoid\nPreferenceDialog::on_buttonBox_accepted()\n{\n    update();\n    setupGlobalHotkeys();\n    redraw();\n    dump();\n}\n\nvoid\nPreferenceDialog::on_buttonBox_rejected()\n{\n    redraw();\n    setupGlobalHotkeys();\n}\n\nvoid\nPreferenceDialog::recreate()\n{\n    layout()->invalidate();\n    layout()->activate();\n    adjustSize();\n}\n"
  },
  {
    "path": "preferencedialog.h",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#ifndef PREFERENCEDIALOG_H\n#define PREFERENCEDIALOG_H\n\n#include <windows.h>\n#include \"config.h\"\n#include \"qsinglekeysequenceedit.h\"\n#include <QDialog>\n#include <QDoubleSpinBox>\n#include <QLabel>\n#include <QMap>\n#include <QSettings>\n#include <QSpinBox>\n\nnamespace Ui\n{\nclass PreferenceDialog;\n}\n\n#define CONFIG_HOTKEY_SPEEDUP \"Hotkey/SpeedUp\"\n#define CONFIG_HOTKEY_SPEEDDOWN \"Hotkey/SpeedDown\"\n#define CONFIG_HOTKEY_RESETSPEED \"Hotkey/ResetSpeed\"\n#define CONFIG_HOTKEY_SHIFT1 \"Hotkey/Shift1\"\n#define CONFIG_HOTKEY_SHIFT2 \"Hotkey/Shift2\"\n#define CONFIG_HOTKEY_SHIFT3 \"Hotkey/Shift3\"\n#define CONFIG_HOTKEY_SHIFT4 \"Hotkey/Shift4\"\n#define CONFIG_HOTKEY_SHIFT5 \"Hotkey/Shift5\"\n\n#define CONFIG_SHIFT1_VALUE \"Shift/Shift1Value\"\n#define CONFIG_SHIFT2_VALUE \"Shift/Shift2Value\"\n#define CONFIG_SHIFT3_VALUE \"Shift/Shift3Value\"\n#define CONFIG_SHIFT4_VALUE \"Shift/Shift4Value\"\n#define CONFIG_SHIFT5_VALUE \"Shift/Shift5Value\"\n#define CONFIG_INCREASE_STEP \"Shift/IncreaseStep\"\n#define CONFIG_DECREASE_STEP \"Shift/DecreaseStep\"\n\n#define DEFAULT_SHIFT1_VALUE 10.0\n#define DEFAULT_SHIFT2_VALUE 20.0\n#define DEFAULT_SHIFT3_VALUE 30.0\n#define DEFAULT_SHIFT4_VALUE 40.0\n#define DEFAULT_SHIFT5_VALUE 50.0\n#define DEFAULT_INCREASE_STEP 1\n#define DEFAULT_DECREASE_STEP 1\n\n#define DEFAULT_HOTKEY_SPEEDUP \"Ctrl+Alt+Up\"\n#define DEFAULT_HOTKEY_SPEEDDOWN \"Ctrl+Alt+Down\"\n#define DEFAULT_HOTKEY_RERSETSPEED \"Ctrl+Alt+0\"\n#define DEFAULT_HOTKEY_SHIFT1 \"Ctrl+Alt+1\"\n#define DEFAULT_HOTKEY_SHIFT2 \"Ctrl+Alt+2\"\n#define DEFAULT_HOTKEY_SHIFT3 \"Ctrl+Alt+3\"\n#define DEFAULT_HOTKEY_SHIFT4 \"Ctrl+Alt+4\"\n#define DEFAULT_HOTKEY_SHIFT5 \"Ctrl+Alt+5\"\n\nclass PreferenceDialog : public QDialog\n{\n    Q_OBJECT\n\n  public:\n    explicit PreferenceDialog(HWND hMainWindow,\n                              QSettings* settings,\n                              QLabel* increaseSpeedLabel,\n                              QLabel* decreaseSpeedLabel,\n                              QLabel* resetSpeedLabel,\n                              QWidget* parent = nullptr);\n    ~PreferenceDialog();\n\n    int getIncreaseStep();\n\n    int getDecreaseStep();\n\n    double getShift1();\n\n    double getShift2();\n\n    double getShift3();\n\n    double getShift4();\n\n    double getShift5();\n\n  public slots:\n    void show();\n\n  private slots:\n    void on_buttonBox_accepted();\n\n    void on_buttonBox_rejected();\n\n    void recreate();\n\n  private:\n    void setupGlobalHotkeys();\n\n    void unregisterGlobalHotkeys();\n\n    void loadShortcut(int id,\n                      const QString& config,\n                      const QString& defaultValue);\n\n    void dumpShortcut(const QString& config, const QString& keyText);\n    void dump();\n\n    void updateShortcut(int id, QSingleKeySequenceEdit* keyEdit);\n    void update();\n\n    void redrawSpinBox(QSpinBox* spinbox, int value);\n    void redrawSpinBox(QDoubleSpinBox* spinbox, double value);\n    void redrawKeyEdit(QSingleKeySequenceEdit* keyEdit, int id);\n    void redraw();\n\n    Ui::PreferenceDialog* ui;\n\n    QSettings* m_settings;\n\n    QLabel* m_increaseSpeedLabel;\n    QLabel* m_decreaseSpeedLabel;\n    QLabel* m_resetSpeedLabel;\n\n    QMap<int, QtCombinedKey> m_shortcuts;\n\n    double m_shift1Value;\n    double m_shift2Value;\n    double m_shift3Value;\n    double m_shift4Value;\n    double m_shift5Value;\n\n    int m_increaseStep;\n    int m_decreaseStep;\n\n    HWND m_mainwindow;\n};\n\n#endif // PREFERENCEDIALOG_H\n"
  },
  {
    "path": "preferencedialog.ui",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ui version=\"4.0\">\n <class>PreferenceDialog</class>\n <widget class=\"QDialog\" name=\"PreferenceDialog\">\n  <property name=\"geometry\">\n   <rect>\n    <x>0</x>\n    <y>0</y>\n    <width>355</width>\n    <height>375</height>\n   </rect>\n  </property>\n  <property name=\"sizePolicy\">\n   <sizepolicy hsizetype=\"Fixed\" vsizetype=\"Fixed\">\n    <horstretch>0</horstretch>\n    <verstretch>0</verstretch>\n   </sizepolicy>\n  </property>\n  <property name=\"windowTitle\">\n   <string>快捷键</string>\n  </property>\n  <property name=\"sizeGripEnabled\">\n   <bool>false</bool>\n  </property>\n  <property name=\"modal\">\n   <bool>true</bool>\n  </property>\n  <layout class=\"QGridLayout\" name=\"gridLayout\">\n   <property name=\"sizeConstraint\">\n    <enum>QLayout::SetFixedSize</enum>\n   </property>\n   <item row=\"8\" column=\"0\">\n    <widget class=\"QLabel\" name=\"shift3Label\">\n     <property name=\"font\">\n      <font>\n       <family>微软雅黑</family>\n      </font>\n     </property>\n     <property name=\"text\">\n      <string>档位3</string>\n     </property>\n    </widget>\n   </item>\n   <item row=\"5\" column=\"2\">\n    <widget class=\"QLabel\" name=\"speedLabel\">\n     <property name=\"font\">\n      <font>\n       <family>微软雅黑</family>\n      </font>\n     </property>\n     <property name=\"text\">\n      <string>速度</string>\n     </property>\n     <property name=\"alignment\">\n      <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>\n     </property>\n    </widget>\n   </item>\n   <item row=\"6\" column=\"1\">\n    <widget class=\"QSingleKeySequenceEdit\" name=\"shift1KeySequenceEdit\">\n     <property name=\"keySequence\">\n      <string>Ctrl+Alt+1</string>\n     </property>\n    </widget>\n   </item>\n   <item row=\"2\" column=\"0\">\n    <widget class=\"QLabel\" name=\"speedDownLabel\">\n     <property name=\"font\">\n      <font>\n       <family>微软雅黑</family>\n      </font>\n     </property>\n     <property name=\"text\">\n      <string>减少速度</string>\n     </property>\n     <property name=\"alignment\">\n      <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>\n     </property>\n    </widget>\n   </item>\n   <item row=\"5\" column=\"1\">\n    <widget class=\"QLabel\" name=\"pressLabel_2\">\n     <property name=\"font\">\n      <font>\n       <family>微软雅黑</family>\n      </font>\n     </property>\n     <property name=\"text\">\n      <string>按键</string>\n     </property>\n     <property name=\"alignment\">\n      <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>\n     </property>\n    </widget>\n   </item>\n   <item row=\"4\" column=\"0\" colspan=\"3\">\n    <widget class=\"Line\" name=\"line\">\n     <property name=\"orientation\">\n      <enum>Qt::Horizontal</enum>\n     </property>\n    </widget>\n   </item>\n   <item row=\"10\" column=\"2\">\n    <widget class=\"QDoubleSpinBox\" name=\"shift5DoubleSpinBox\">\n     <property name=\"minimum\">\n      <double>0.010000000000000</double>\n     </property>\n     <property name=\"maximum\">\n      <double>1000.000000000000000</double>\n     </property>\n     <property name=\"value\">\n      <double>50.000000000000000</double>\n     </property>\n    </widget>\n   </item>\n   <item row=\"10\" column=\"1\">\n    <widget class=\"QSingleKeySequenceEdit\" name=\"shift5KeySequenceEdit\">\n     <property name=\"keySequence\">\n      <string>Ctrl+Alt+5</string>\n     </property>\n    </widget>\n   </item>\n   <item row=\"10\" column=\"0\">\n    <widget class=\"QLabel\" name=\"shift5Label\">\n     <property name=\"font\">\n      <font>\n       <family>微软雅黑</family>\n      </font>\n     </property>\n     <property name=\"text\">\n      <string>档位5</string>\n     </property>\n    </widget>\n   </item>\n   <item row=\"8\" column=\"1\">\n    <widget class=\"QSingleKeySequenceEdit\" name=\"shift3KeySequenceEdit\">\n     <property name=\"keySequence\">\n      <string>Ctrl+Alt+3</string>\n     </property>\n    </widget>\n   </item>\n   <item row=\"11\" column=\"1\" colspan=\"2\">\n    <widget class=\"QDialogButtonBox\" name=\"buttonBox\">\n     <property name=\"font\">\n      <font>\n       <family>微软雅黑</family>\n      </font>\n     </property>\n     <property name=\"layoutDirection\">\n      <enum>Qt::LeftToRight</enum>\n     </property>\n     <property name=\"orientation\">\n      <enum>Qt::Horizontal</enum>\n     </property>\n     <property name=\"standardButtons\">\n      <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>\n     </property>\n    </widget>\n   </item>\n   <item row=\"6\" column=\"0\">\n    <widget class=\"QLabel\" name=\"shift1Label\">\n     <property name=\"font\">\n      <font>\n       <family>微软雅黑</family>\n      </font>\n     </property>\n     <property name=\"text\">\n      <string>档位1</string>\n     </property>\n    </widget>\n   </item>\n   <item row=\"3\" column=\"1\">\n    <widget class=\"QSingleKeySequenceEdit\" name=\"resetSpeedKeySequenceEdit\">\n     <property name=\"keySequence\">\n      <string>Ctrl+Alt+0</string>\n     </property>\n    </widget>\n   </item>\n   <item row=\"3\" column=\"0\">\n    <widget class=\"QLabel\" name=\"resetSpeedLabel\">\n     <property name=\"font\">\n      <font>\n       <family>微软雅黑</family>\n      </font>\n     </property>\n     <property name=\"text\">\n      <string>重置速度</string>\n     </property>\n     <property name=\"alignment\">\n      <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>\n     </property>\n    </widget>\n   </item>\n   <item row=\"1\" column=\"1\">\n    <widget class=\"QSingleKeySequenceEdit\" name=\"speedUpKeySequenceEdit\">\n     <property name=\"keySequence\">\n      <string>Ctrl+Alt+Up</string>\n     </property>\n    </widget>\n   </item>\n   <item row=\"9\" column=\"1\">\n    <widget class=\"QSingleKeySequenceEdit\" name=\"shift4KeySequenceEdit\">\n     <property name=\"keySequence\">\n      <string>Ctrl+Alt+4</string>\n     </property>\n    </widget>\n   </item>\n   <item row=\"8\" column=\"2\">\n    <widget class=\"QDoubleSpinBox\" name=\"shift3DoubleSpinBox\">\n     <property name=\"minimum\">\n      <double>0.010000000000000</double>\n     </property>\n     <property name=\"maximum\">\n      <double>1000.000000000000000</double>\n     </property>\n     <property name=\"value\">\n      <double>30.000000000000000</double>\n     </property>\n    </widget>\n   </item>\n   <item row=\"7\" column=\"0\">\n    <widget class=\"QLabel\" name=\"shift2Label\">\n     <property name=\"font\">\n      <font>\n       <family>微软雅黑</family>\n      </font>\n     </property>\n     <property name=\"text\">\n      <string>档位2</string>\n     </property>\n    </widget>\n   </item>\n   <item row=\"7\" column=\"1\">\n    <widget class=\"QSingleKeySequenceEdit\" name=\"shift2KeySequenceEdit\">\n     <property name=\"keySequence\">\n      <string>Ctrl+Alt+2</string>\n     </property>\n    </widget>\n   </item>\n   <item row=\"2\" column=\"1\">\n    <widget class=\"QSingleKeySequenceEdit\" name=\"speedDownKeySequenceEdit\">\n     <property name=\"keySequence\">\n      <string>Ctrl+Alt+Down</string>\n     </property>\n    </widget>\n   </item>\n   <item row=\"7\" column=\"2\">\n    <widget class=\"QDoubleSpinBox\" name=\"shift2DoubleSpinBox\">\n     <property name=\"minimum\">\n      <double>0.010000000000000</double>\n     </property>\n     <property name=\"maximum\">\n      <double>1000.000000000000000</double>\n     </property>\n     <property name=\"value\">\n      <double>20.000000000000000</double>\n     </property>\n    </widget>\n   </item>\n   <item row=\"1\" column=\"0\">\n    <widget class=\"QLabel\" name=\"speedUpLabel\">\n     <property name=\"font\">\n      <font>\n       <family>微软雅黑</family>\n      </font>\n     </property>\n     <property name=\"text\">\n      <string>增加速度</string>\n     </property>\n     <property name=\"alignment\">\n      <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>\n     </property>\n    </widget>\n   </item>\n   <item row=\"6\" column=\"2\">\n    <widget class=\"QDoubleSpinBox\" name=\"shift1DoubleSpinBox\">\n     <property name=\"minimum\">\n      <double>0.010000000000000</double>\n     </property>\n     <property name=\"maximum\">\n      <double>1000.000000000000000</double>\n     </property>\n     <property name=\"stepType\">\n      <enum>QAbstractSpinBox::DefaultStepType</enum>\n     </property>\n     <property name=\"value\">\n      <double>10.000000000000000</double>\n     </property>\n    </widget>\n   </item>\n   <item row=\"9\" column=\"0\">\n    <widget class=\"QLabel\" name=\"shift4Label\">\n     <property name=\"font\">\n      <font>\n       <family>微软雅黑</family>\n      </font>\n     </property>\n     <property name=\"text\">\n      <string>档位4</string>\n     </property>\n    </widget>\n   </item>\n   <item row=\"9\" column=\"2\">\n    <widget class=\"QDoubleSpinBox\" name=\"shift4DoubleSpinBox\">\n     <property name=\"minimum\">\n      <double>0.010000000000000</double>\n     </property>\n     <property name=\"maximum\">\n      <double>1000.000000000000000</double>\n     </property>\n     <property name=\"value\">\n      <double>40.000000000000000</double>\n     </property>\n    </widget>\n   </item>\n   <item row=\"0\" column=\"1\">\n    <widget class=\"QLabel\" name=\"pressLabel_1\">\n     <property name=\"font\">\n      <font>\n       <family>微软雅黑</family>\n      </font>\n     </property>\n     <property name=\"text\">\n      <string>按键</string>\n     </property>\n     <property name=\"alignment\">\n      <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>\n     </property>\n    </widget>\n   </item>\n   <item row=\"1\" column=\"2\">\n    <widget class=\"QSpinBox\" name=\"increaseStepSpinBox\">\n     <property name=\"minimum\">\n      <number>1</number>\n     </property>\n     <property name=\"maximum\">\n      <number>1000</number>\n     </property>\n    </widget>\n   </item>\n   <item row=\"2\" column=\"2\">\n    <widget class=\"QSpinBox\" name=\"decreaseStepSpinBox\">\n     <property name=\"minimum\">\n      <number>1</number>\n     </property>\n     <property name=\"maximum\">\n      <number>1000</number>\n     </property>\n    </widget>\n   </item>\n   <item row=\"0\" column=\"2\">\n    <widget class=\"QLabel\" name=\"stepLabel\">\n     <property name=\"text\">\n      <string>步幅</string>\n     </property>\n    </widget>\n   </item>\n  </layout>\n </widget>\n <customwidgets>\n  <customwidget>\n   <class>QSingleKeySequenceEdit</class>\n   <extends>QKeySequenceEdit</extends>\n   <header>qsinglekeysequenceedit.h</header>\n  </customwidget>\n </customwidgets>\n <tabstops>\n  <tabstop>speedUpKeySequenceEdit</tabstop>\n  <tabstop>increaseStepSpinBox</tabstop>\n  <tabstop>speedDownKeySequenceEdit</tabstop>\n  <tabstop>decreaseStepSpinBox</tabstop>\n  <tabstop>resetSpeedKeySequenceEdit</tabstop>\n  <tabstop>shift1KeySequenceEdit</tabstop>\n  <tabstop>shift1DoubleSpinBox</tabstop>\n  <tabstop>shift2KeySequenceEdit</tabstop>\n  <tabstop>shift2DoubleSpinBox</tabstop>\n  <tabstop>shift3KeySequenceEdit</tabstop>\n  <tabstop>shift3DoubleSpinBox</tabstop>\n  <tabstop>shift4KeySequenceEdit</tabstop>\n  <tabstop>shift4DoubleSpinBox</tabstop>\n  <tabstop>shift5KeySequenceEdit</tabstop>\n  <tabstop>shift5DoubleSpinBox</tabstop>\n </tabstops>\n <resources/>\n <connections>\n  <connection>\n   <sender>buttonBox</sender>\n   <signal>accepted()</signal>\n   <receiver>PreferenceDialog</receiver>\n   <slot>accept()</slot>\n   <hints>\n    <hint type=\"sourcelabel\">\n     <x>248</x>\n     <y>254</y>\n    </hint>\n    <hint type=\"destinationlabel\">\n     <x>157</x>\n     <y>274</y>\n    </hint>\n   </hints>\n  </connection>\n  <connection>\n   <sender>buttonBox</sender>\n   <signal>rejected()</signal>\n   <receiver>PreferenceDialog</receiver>\n   <slot>reject()</slot>\n   <hints>\n    <hint type=\"sourcelabel\">\n     <x>316</x>\n     <y>260</y>\n    </hint>\n    <hint type=\"destinationlabel\">\n     <x>286</x>\n     <y>274</y>\n    </hint>\n   </hints>\n  </connection>\n </connections>\n</ui>\n"
  },
  {
    "path": "processmonitor.cpp",
    "content": "/*\r\n * OpenSpeedy - Open Source Game Speed Controller\r\n * Copyright (C) 2025 Game1024\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\r\n */\r\n#include \"config.h\"\r\n#include \"processmonitor.h\"\r\n#include <QApplication>\r\n#include <QDebug>\r\n#include <QDir>\r\n#include <QFileIconProvider>\r\n#include <QHeaderView>\r\n#include <QList>\r\n#include <QStyle>\r\n#include <QtConcurrent/QtConcurrent>\r\n#include <QtWinExtras/QtWin>\r\n#include <QMessageBox>\r\n#include <psapi.h>\r\nProcessMonitor::ProcessMonitor(QSettings*   settings,\r\n                               QTreeWidget* treeWidget,\r\n                               QLabel*      treeStatusLabel,\r\n                               QLabel*      injector32StatusLabel,\r\n                               QLabel*      injector64StatusLabel,\r\n                               QObject*     parent)\r\n    : m_treeWidget(treeWidget)\r\n    , m_treeStatusLabel(treeStatusLabel)\r\n    , m_injector32StatusLabel(injector32StatusLabel)\r\n    , m_injector64StatusLabel(injector64StatusLabel)\r\n    , m_settings(settings)\r\n{\r\n    m_treeWidget->header()->setMinimumHeight(40);\r\n    m_treeWidget->setColumnWidth(0, 300);\r\n    m_treeWidget->setColumnWidth(5, 50);\r\n    m_treeWidget->setUniformRowHeights(true);\r\n    m_treeWidget->sortByColumn(0, Qt::AscendingOrder);\r\n    m_treeWidget->resizeColumnToContents(2);\r\n    m_treeWidget->resizeColumnToContents(3);\r\n\r\n    connect(m_treeWidget,\r\n            &QTreeWidget::itemChanged,\r\n            this,\r\n            &ProcessMonitor::onItemChanged);\r\n\r\n    this->startBridge32();\r\n    this->startBridge64();\r\n\r\n    init();\r\n    refresh();\r\n}\r\n\r\nProcessMonitor::~ProcessMonitor()\r\n{\r\n    this->terminalBridge();\r\n    delete m_bridge32;\r\n    delete m_bridge64;\r\n}\r\n\r\nvoid\r\nProcessMonitor::setFilter(QString processName)\r\n{\r\n    m_filter = processName.toLower();\r\n}\r\n\r\nvoid\r\nProcessMonitor::refresh()\r\n{\r\n    healthcheckBridge();\r\n    QList<ProcessInfo> processList = winutils::getProcessList();\r\n    if (m_filter == \"\")\r\n    {\r\n        update(processList);\r\n        m_treeStatusLabel->setText(QString(tr(\"搜索到%1个进程, 已过滤展示%2个\"))\r\n                                   .arg(processList.size())\r\n                                   .arg(processList.size()));\r\n    }\r\n    else\r\n    {\r\n        QList<ProcessInfo> filtered;\r\n        for (ProcessInfo info : processList)\r\n        {\r\n            if (info.name.toLower().contains(m_filter))\r\n                filtered.append(info);\r\n        }\r\n        update(filtered);\r\n        m_treeStatusLabel->setText(QString(tr(\"搜索到%1个进程, 已过滤展示%2个\"))\r\n                                   .arg(processList.size())\r\n                                   .arg(filtered.size()));\r\n    }\r\n}\r\n\r\nvoid\r\nProcessMonitor::start()\r\n{\r\n    m_timer = new QTimer(this);\r\n    connect(m_timer, &QTimer::timeout, this, &ProcessMonitor::refresh);\r\n    m_timer->start(1000);\r\n}\r\n\r\nvoid\r\nProcessMonitor::onItemChanged(QTreeWidgetItem* item, int column)\r\n{\r\n    if (column == 5 && (item->flags() & Qt::ItemIsUserCheckable))\r\n    {\r\n        bool state = m_treeWidget->blockSignals(true);\r\n\r\n        Qt::CheckState checkState = item->checkState(column);\r\n        QString processName = item->text(0);\r\n        DWORD pid = item->text(1).toLong();\r\n        bool is64Bit = item->text(3) == \"x64\" ? true : false;\r\n        if (checkState == Qt::Checked)\r\n        {\r\n            m_targetNames.insert(processName);\r\n            this->injectDll(pid, is64Bit);\r\n            item->setText(5, tr(\"加速中\"));\r\n            for (int col = 0; col < item->columnCount(); ++col)\r\n            {\r\n                item->setBackground(col, QBrush(QColor(\"#f3e5f5\")));\r\n                item->setForeground(col, QBrush(QColor(\"#7b1fa2\")));\r\n            }\r\n            qDebug() << processName << \"勾选\";\r\n            dump();\r\n        }\r\n        else\r\n        {\r\n            m_targetNames.remove(processName);\r\n            this->unhookDll(pid, is64Bit);\r\n            item->setText(5, \"\");\r\n            for (int col = 0; col < item->columnCount(); ++col)\r\n            {\r\n                item->setBackground(col, QBrush());\r\n                item->setForeground(col, QBrush());\r\n            }\r\n            qDebug() << processName << \"取消勾选\";\r\n            dump();\r\n        }\r\n\r\n        m_treeWidget->blockSignals(state);\r\n    }\r\n}\r\n\r\nvoid\r\nProcessMonitor::init()\r\n{\r\n    QStringList targetNames =\r\n        m_settings->value(CONFIG_TARGETNAMES_KEY).toStringList();\r\n    m_targetNames = QSet<QString>(targetNames.begin(), targetNames.end());\r\n}\r\n\r\nvoid\r\nProcessMonitor::dump()\r\n{\r\n    m_settings->setValue(CONFIG_TARGETNAMES_KEY,\r\n                         QStringList(m_targetNames.values()));\r\n}\r\n\r\nvoid\r\nProcessMonitor::update(const QList<ProcessInfo>& processList)\r\n{\r\n    // 跟踪现有进程，用于确定哪些已终止\r\n    QSet<DWORD> currentPids;\r\n    for (const ProcessInfo& info : processList)\r\n    {\r\n        currentPids.insert(info.pid);\r\n    }\r\n\r\n    // 移除已终止的进程\r\n    QMutableMapIterator<DWORD, QTreeWidgetItem*> i(m_processItems);\r\n    while (i.hasNext())\r\n    {\r\n        i.next();\r\n        if (!currentPids.contains(i.key()))\r\n        {\r\n            QTreeWidgetItem* item = i.value();\r\n            QTreeWidgetItem* parent = item->parent();\r\n\r\n            if (parent)\r\n            {\r\n                parent->removeChild(item);\r\n            }\r\n            else\r\n            {\r\n                auto index = m_treeWidget->indexOfTopLevelItem(item);\r\n                m_treeWidget->takeTopLevelItem(index);\r\n            }\r\n\r\n            while (item->childCount() > 0)\r\n            {\r\n                QTreeWidgetItem* child = item->takeChild(0);\r\n                if (parent)\r\n                {\r\n                    parent->addChild(child);\r\n                }\r\n                else\r\n                {\r\n                    m_treeWidget->addTopLevelItem(child);\r\n                }\r\n            }\r\n\r\n            // 删除节点\r\n            delete item;\r\n\r\n            // 从映射中移除\r\n            i.remove();\r\n        }\r\n    }\r\n\r\n    // 添加或更新进程信息\r\n    for (const ProcessInfo& info : processList)\r\n    {\r\n        if (m_processItems.contains(info.pid))\r\n        {\r\n            // 更新已存在的进程信息\r\n            QTreeWidgetItem* item = m_processItems[info.pid];\r\n            item->setText(1, QString::number(info.pid));\r\n            item->setData(1, Qt::UserRole, (long long)info.pid);\r\n            item->setText(2,\r\n                          QString(\"%1 MB\").arg(info.memoryUsage / 1024 / 1024));\r\n            item->setData(2, Qt::UserRole, (uint)info.memoryUsage);\r\n\r\n            QString arch = info.is64Bit ? \"x64\" : \"x86\";\r\n            item->setText(3, arch);\r\n            QString priority;\r\n            switch (info.priorityClass)\r\n            {\r\n            case HIGH_PRIORITY_CLASS:\r\n                priority = tr(\"高\");\r\n                break;\r\n            case NORMAL_PRIORITY_CLASS:\r\n                priority = tr(\"中\");\r\n                break;\r\n            case IDLE_PRIORITY_CLASS:\r\n                priority = tr(\"低\");\r\n                break;\r\n            case REALTIME_PRIORITY_CLASS:\r\n                priority = tr(\"实时\");\r\n                break;\r\n            default:\r\n                priority = tr(\"未知\");\r\n                break;\r\n            }\r\n            item->setText(4, priority);\r\n            if (m_targetNames.contains(info.name))\r\n            {\r\n                if (item->checkState(5) == Qt::Unchecked)\r\n                {\r\n                    item->setCheckState(5, Qt::Checked);\r\n                }\r\n            }\r\n            else\r\n            {\r\n                if (item->checkState(5) == Qt::Checked)\r\n                {\r\n                    item->setCheckState(5, Qt::Unchecked);\r\n                }\r\n            }\r\n        }\r\n        else\r\n        {\r\n            // 添加新进程\r\n            QTreeWidgetItem* item = new SortTreeWidgetItem();\r\n\r\n            item->setText(0, info.name);\r\n            item->setData(0, Qt::UserRole, info.name.toLower());\r\n            item->setText(1, QString::number(info.pid));\r\n            item->setData(1, Qt::UserRole, (long long)info.pid);\r\n            item->setText(2,\r\n                          QString(\"%1 MB\").arg(info.memoryUsage / 1024 / 1024));\r\n            item->setData(2, Qt::UserRole, (uint)info.memoryUsage);\r\n\r\n            QString arch = info.is64Bit ? \"x64\" : \"x86\";\r\n            item->setText(3, arch);\r\n\r\n            // 加载进程图标\r\n            item->setIcon(0, getProcessIconCached(info.pid));\r\n\r\n            QString priority;\r\n            switch (info.priorityClass)\r\n            {\r\n            case HIGH_PRIORITY_CLASS:\r\n                priority = tr(\"高\");\r\n                break;\r\n            case NORMAL_PRIORITY_CLASS:\r\n                priority = tr(\"中\");\r\n                break;\r\n            case IDLE_PRIORITY_CLASS:\r\n                priority = tr(\"低\");\r\n                break;\r\n            case REALTIME_PRIORITY_CLASS:\r\n                priority = tr(\"实时\");\r\n                break;\r\n            default:\r\n                priority = tr(\"未知\");\r\n                break;\r\n            }\r\n            item->setText(4, priority);\r\n            item->setCheckState(5, Qt::Unchecked);\r\n            m_treeWidget->addTopLevelItem(item);\r\n            m_processItems[info.pid] = item;\r\n        }\r\n    }\r\n}\r\n\r\nvoid\r\nProcessMonitor::injectDll(DWORD processId, bool is64Bit)\r\n{\r\n    QString cmd = QString(\"inject %1\\n\").arg(processId);\r\n    if (!is64Bit)\r\n    {\r\n        m_bridge32->write(cmd.toUtf8(), cmd.size());\r\n        m_bridge32->waitForBytesWritten();\r\n    }\r\n    else\r\n    {\r\n        m_bridge64->write(cmd.toUtf8(), cmd.size());\r\n        m_bridge64->waitForBytesWritten();\r\n    }\r\n}\r\n\r\nvoid\r\nProcessMonitor::unhookDll(DWORD processId, bool is64Bit)\r\n{\r\n    QString cmd = QString(\"unhook %1\\n\").arg(processId);\r\n    if (!is64Bit)\r\n    {\r\n        m_bridge32->write(cmd.toUtf8(), cmd.size());\r\n        m_bridge32->waitForBytesWritten();\r\n    }\r\n    else\r\n    {\r\n        m_bridge64->write(cmd.toUtf8(), cmd.size());\r\n        m_bridge64->waitForBytesWritten();\r\n    }\r\n}\r\n\r\nvoid\r\nProcessMonitor::startBridge32()\r\n{\r\n    m_bridge32 = new QProcess();\r\n    QStringList params32;\r\n    m_bridge32->start(BRIDGE32_EXE, params32);\r\n    if (!m_bridge32->waitForStarted())\r\n    {\r\n        QMessageBox::critical(nullptr,\r\n                              tr(\"启动失败\"),\r\n                              tr(\"32位桥接子进程启动失败，请确保Speedy.exe和bridge32.exe在同一目录下\"),\r\n                              QMessageBox::Ok);\r\n        qDebug() << \"32位桥接子进程启动失败\";\r\n\r\n    }\r\n    else\r\n    {\r\n        qDebug() << \"32位桥接子进程已启动\";\r\n    }\r\n    m_bridge32->setProcessChannelMode(QProcess::MergedChannels);\r\n    connect(m_bridge32,\r\n            &QProcess::readyReadStandardOutput,\r\n            [&]()\r\n    {\r\n        QByteArray data = m_bridge32->readAllStandardOutput();\r\n        qDebug() << \"收到输出:\" << QString(data).trimmed();\r\n    });\r\n}\r\n\r\nvoid\r\nProcessMonitor::startBridge64()\r\n{\r\n    m_bridge64 = new QProcess();\r\n    QStringList params64;\r\n    m_bridge64->start(BRIDGE64_EXE, params64);\r\n    if (!m_bridge64->waitForStarted())\r\n    {\r\n        QMessageBox::critical(nullptr,\r\n                              tr(\"启动失败\"),\r\n                              tr(\"64位桥接子进程启动失败，请确保Speedy.exe和bridge64.exe在同一目录下\"),\r\n                              QMessageBox::Ok);\r\n        qDebug() << \"64位桥接子进程启动失败\";\r\n    }\r\n    else\r\n    {\r\n        qDebug() << \"64位桥接子进程已启动\";\r\n    }\r\n    m_bridge64->setProcessChannelMode(QProcess::MergedChannels);\r\n    connect(m_bridge64,\r\n            &QProcess::readyReadStandardOutput,\r\n            [&]()\r\n    {\r\n        QByteArray data = m_bridge64->readAllStandardOutput();\r\n        qDebug() << \"收到输出:\" << QString(data).trimmed();\r\n    });\r\n}\r\n\r\nvoid\r\nProcessMonitor::healthcheckBridge()\r\n{\r\n    // 获取当前主题下的高亮文本颜色\r\n    QColor highlightColor = QApplication::palette().color(QPalette::Highlight);\r\n    // 如果是深色模式，使用亮绿色；如果是浅色模式，使用深绿色\r\n    QString greenColorStr = (QApplication::palette().color(QPalette::Window).value() < 128) ? \"lightgreen\" : \"green\";\r\n\r\n    if (this->m_bridge32->state() == QProcess::Running)\r\n    {\r\n        m_injector32StatusLabel->setStyleSheet(QString(\"color: %1\").arg(greenColorStr));\r\n        m_injector32StatusLabel->setText(tr(\"正常\"));\r\n    }\r\n    else\r\n    {\r\n        m_injector32StatusLabel->setStyleSheet(\"color: red\");\r\n        m_injector32StatusLabel->setText(tr(\"异常退出\"));\r\n    }\r\n\r\n    if (this->m_bridge64->state() == QProcess::Running)\r\n    {\r\n        m_injector64StatusLabel->setStyleSheet(QString(\"color: %1\").arg(greenColorStr));\r\n        m_injector64StatusLabel->setText(tr(\"正常\"));\r\n    }\r\n    else\r\n    {\r\n        m_injector64StatusLabel->setStyleSheet(\"color:red\");\r\n        m_injector64StatusLabel->setText(tr(\"异常退出\"));\r\n    }\r\n}\r\n\r\nvoid\r\nProcessMonitor::terminalBridge()\r\n{\r\n    QString cmd = QString(\"exit\\n\");\r\n    m_bridge32->write(cmd.toUtf8(), cmd.size());\r\n    m_bridge32->waitForBytesWritten();\r\n    m_bridge64->write(cmd.toUtf8(), cmd.size());\r\n    m_bridge64->waitForBytesWritten();\r\n}\r\n\r\nvoid\r\nProcessMonitor::changeSpeed(double factor)\r\n{\r\n    QString cmd = QString(\"change %1\\n\").arg(factor);\r\n    m_bridge32->write(cmd.toUtf8(), cmd.size());\r\n    m_bridge32->waitForBytesWritten();\r\n    m_bridge64->write(cmd.toUtf8(), cmd.size());\r\n    m_bridge64->waitForBytesWritten();\r\n}\r\n\r\nQIcon\r\nProcessMonitor::getProcessIconCached(DWORD processId)\r\n{\r\n    QString processPath = winutils::getProcessPath(processId);\r\n    if (m_iconCache.contains(processPath))\r\n    {\r\n        return m_iconCache[processPath];\r\n    }\r\n\r\n    QIcon icon = getProcessIcon(processPath);\r\n    m_iconCache.insert(processPath, icon);\r\n    return icon;\r\n}\r\n\r\nQIcon\r\nProcessMonitor::getDefaultIcon(const QString& processName)\r\n{\r\n    // 根据进程名称或类型提供更有针对性的默认图标\r\n    if (processName != \"\")\r\n    {\r\n        // 使用SHGetFileInfo获取.exe文件的图标\r\n        SHFILEINFO sfi = {};\r\n        QIcon icon;\r\n        if (SHGetFileInfo(reinterpret_cast<LPCWSTR>(processName.utf16()),\r\n                          FILE_ATTRIBUTE_NORMAL,\r\n                          &sfi,\r\n                          sizeof(SHFILEINFO),\r\n                          SHGFI_USEFILEATTRIBUTES | SHGFI_ICON |\r\n                          SHGFI_SMALLICON))\r\n        {\r\n            // 将HICON转换为QIcon\r\n            icon = QtWin::fromHICON(sfi.hIcon);\r\n\r\n            // 释放图标资源\r\n            DestroyIcon(sfi.hIcon);\r\n        }\r\n        return icon;\r\n    }\r\n    else\r\n    {\r\n        // 使用SHGetFileInfo获取.exe文件的图标\r\n        SHFILEINFO sfi = {};\r\n        QIcon icon;\r\n        if (SHGetFileInfo(reinterpret_cast<LPCWSTR>(L\".exe\"),\r\n                          FILE_ATTRIBUTE_NORMAL,\r\n                          &sfi,\r\n                          sizeof(SHFILEINFO),\r\n                          SHGFI_USEFILEATTRIBUTES | SHGFI_ICON |\r\n                          SHGFI_SMALLICON))\r\n        {\r\n            // 将HICON转换为QIcon\r\n            icon = QtWin::fromHICON(sfi.hIcon);\r\n\r\n            // 释放图标资源\r\n            DestroyIcon(sfi.hIcon);\r\n        }\r\n        return icon;\r\n    }\r\n}\r\n\r\nQIcon\r\nProcessMonitor::getProcessIcon(QString processPath)\r\n{\r\n    int lastSlashPos =\r\n        std::max(processPath.lastIndexOf('/'), processPath.lastIndexOf('\\\\'));\r\n    QString processName;\r\n    if (lastSlashPos == -1)\r\n    {\r\n        processName = processPath;\r\n    }\r\n    processName = processPath.mid(lastSlashPos + 1);\r\n\r\n    if (processPath.isEmpty())\r\n    {\r\n        qDebug() << processPath << \"无法获取进程完整路径\";\r\n        return getDefaultIcon(processName);\r\n    }\r\n\r\n    SHFILEINFO sfi = {};\r\n    if (SHGetFileInfo(reinterpret_cast<LPCWSTR>(processPath.utf16()),\r\n                      FILE_ATTRIBUTE_NORMAL,\r\n                      &sfi,\r\n                      sizeof(SHFILEINFO),\r\n                      SHGFI_ICON | SHGFI_LARGEICON | SHGFI_USEFILEATTRIBUTES))\r\n    {\r\n        if (sfi.hIcon)\r\n        {\r\n            QIcon icon = QtWin::fromHICON(sfi.hIcon);\r\n            DestroyIcon(sfi.hIcon);\r\n            if (!icon.isNull())\r\n            {\r\n                qDebug() << processPath << \"通过SHGetFileInfo获取图标成功\";\r\n                return icon;\r\n            }\r\n        }\r\n    }\r\n\r\n    HICON hIcon =\r\n        ExtractIconW(nullptr, reinterpret_cast<LPCWSTR>(processPath.utf16()), 0);\r\n    if (hIcon)\r\n    {\r\n        QIcon icon = QtWin::fromHICON(hIcon);\r\n        DestroyIcon(hIcon);\r\n        if (!icon.isNull())\r\n            return icon;\r\n    }\r\n\r\n    QFileInfo fileInfo(processPath);\r\n    if (fileInfo.exists())\r\n    {\r\n        // 使用Qt的QFileIconProvider获取文件图标\r\n        QFileIconProvider iconProvider;\r\n        return iconProvider.icon(fileInfo);\r\n    }\r\n    qDebug() << processPath << \"无法获取进程图标使用默认图标\";\r\n\r\n    return getDefaultIcon(processName);\r\n}\r\n"
  },
  {
    "path": "processmonitor.h",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#ifndef PROCESSMONITOR_H\n#define PROCESSMONITOR_H\n#include <windows.h>\n#include \"winutils.h\"\n#include <QLabel>\n#include <QMap>\n#include <QObject>\n#include <QProcess>\n#include <QSettings>\n#include <QThread>\n#include <QTimer>\n#include <QTreeWidget>\n#include <tlhelp32.h>\n\n#define CONFIG_TARGETNAMES_KEY \"ProcessMonitor/TargetNames\"\n\nclass ProcessMonitor : public QObject\n{\nQ_OBJECT\npublic:\nexplicit ProcessMonitor(QSettings*   settings,\n                        QTreeWidget* treeWidget,\n                        QLabel*      treeStatusLabel,\n                        QLabel*      injector32StatusLabel,\n                        QLabel*      injector64StatusLabel,\n\n                        QObject*     parent = nullptr);\n~ProcessMonitor();\n\n// 设置刷新间隔（毫秒）\nvoid setInterval(int msec);\n// 设置过滤\nvoid setFilter(QString processName);\n\nvoid changeSpeed(double factor);\n\npublic slots:\n// 定时刷新槽函数\nvoid refresh();\n\nvoid start();\n\nprivate slots:\nvoid onItemChanged(QTreeWidgetItem* item, int column);\n\nprivate:\nQTreeWidget* m_treeWidget;\nQLabel* m_treeStatusLabel;\nQLabel* m_injector32StatusLabel;\nQLabel* m_injector64StatusLabel;\nQString m_filter;\nQTimer* m_timer = nullptr;\nQString m_dllPath;\n\nQProcess* m_bridge32;\nQProcess* m_bridge64;\n\nQSettings* m_settings;\n\n// 图标缓存\nQHash<QString, QIcon> m_iconCache;\n\n// 存储进程ID到TreeWidgetItem的映射\nQMap<DWORD, QTreeWidgetItem*> m_processItems;\n\n// 存储需要加速的进程\nQSet<QString> m_targetNames;\n\nvoid init();\n\nvoid dump();\n\nvoid update(const QList<ProcessInfo>& processList);\n\nvoid injectDll(DWORD processId, bool is64Bit);\n\nvoid unhookDll(DWORD processId, bool is64Bit);\n\nvoid startBridge32();\n\nvoid startBridge64();\n\nvoid healthcheckBridge();\n\nvoid terminalBridge();\n\n// 获取进程图标\nstatic QIcon getProcessIcon(QString processPath);\n\nstatic QIcon getDefaultIcon(const QString& processName);\n\nQIcon getProcessIconCached(DWORD proccessId);\n};\n\nclass SortTreeWidgetItem : public QTreeWidgetItem\n{\npublic:\nSortTreeWidgetItem(QTreeWidget* parent = nullptr)\n    : QTreeWidgetItem(parent)\n{\n}\n\nbool operator<(const QTreeWidgetItem& other) const override\n{\n    int column = treeWidget()->sortColumn();\n\n    QVariant ldata = this->data(column, Qt::UserRole);\n    QVariant rdata = other.data(column, Qt::UserRole);\n    if (ldata.isValid() && rdata.isValid())\n    {\n        if (ldata.type() == QVariant::UInt && rdata.type() == QVariant::UInt)\n        {\n            return ldata.toUInt() < rdata.toUInt();\n        }\n        else\n        {\n            return ldata.toString() < rdata.toString();\n        }\n    }\n    else\n    {\n        QString ltext = this->text(column);\n        QString rtext = other.text(column);\n        return ltext < rtext;\n    }\n}\n\nbool operator>(const QTreeWidgetItem& other) const\n{\n    int column = treeWidget()->sortColumn();\n\n    QVariant ldata = this->data(column, Qt::UserRole);\n    QVariant rdata = other.data(column, Qt::UserRole);\n    if (ldata.isValid() && rdata.isValid())\n    {\n        if (ldata.type() == QVariant::UInt && rdata.type() == QVariant::UInt)\n        {\n            return ldata.toUInt() > rdata.toUInt();\n        }\n        else\n        {\n            return ldata.toString() > rdata.toString();\n        }\n    }\n    else\n    {\n        QString ltext = this->text(column);\n        QString rtext = other.text(column);\n        return ltext > rtext;\n    }\n}\n};\n\n#endif // PROCESSMONITOR_H\n"
  },
  {
    "path": "qsinglekeysequenceedit.cpp",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n * \n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * \n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * \n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#include \"qsinglekeysequenceedit.h\"\n#include <QDebug>\n\nQSingleKeySequenceEdit::QSingleKeySequenceEdit(QWidget* parent)\n  : QKeySequenceEdit(parent)\n{\n    setStyleSheet(\":focus {\"\n                  \"    border: 2px solid #3498db;\"\n                  \"    background-color: #ebf3fd;\"\n                  \"    font-weight: bold;\"\n                  \"    outline: none;\"\n                  \"}\");\n\n    connect(this,\n            &QKeySequenceEdit::keySequenceChanged,\n            this,\n            &QSingleKeySequenceEdit::update);\n}\n\nUINT\nQSingleKeySequenceEdit::getVK()\n{\n    return toVK(m_key, m_modifier);\n}\n\nUINT\nQSingleKeySequenceEdit::getModifier()\n{\n    return toModifier(m_modifier);\n}\n\nQtCombinedKey\nQSingleKeySequenceEdit::getQtCombinedKey()\n{\n    return QtCombinedKey{ m_key, m_modifier };\n}\n\nQString\nQSingleKeySequenceEdit::getKeyText()\n{\n    return keySequence().toString(QKeySequence::NativeText);\n}\n\nvoid\nQSingleKeySequenceEdit::keyPressEvent(QKeyEvent* event)\n{\n    int key = event->key();\n    Qt::KeyboardModifiers modifiers = event->modifiers();\n\n    // 忽略单独的修饰键\n    if (isModifierKey(key))\n    {\n        return;\n    }\n\n    m_key = key;\n    m_modifier = modifiers;\n\n    // 创建单个按键序列\n    QKeySequence singleKey(key | modifiers);\n    setKeySequence(singleKey);\n\n    // 🔚 结束编辑\n    emit editingFinished();\n    clearFocus();\n}\n\nvoid\nQSingleKeySequenceEdit::update()\n{\n    QKeySequence sequence = keySequence();\n\n    if (sequence.isEmpty())\n    {\n        m_key = 0;\n        m_modifier = Qt::NoModifier;\n    }\n    else\n    {\n        int combinedKey = sequence[0];\n        m_modifier =\n          Qt::KeyboardModifiers(combinedKey & Qt::KeyboardModifierMask);\n        m_key = combinedKey & ~Qt::KeyboardModifierMask;\n    }\n}\n\nbool\nQSingleKeySequenceEdit::isModifierKey(int key) const\n{\n    return (key == Qt::Key_Control || key == Qt::Key_Alt ||\n            key == Qt::Key_Shift || key == Qt::Key_Meta);\n}\n\nUINT\nQSingleKeySequenceEdit::toVK(int qtKey, Qt::KeyboardModifiers qtMod)\n{\n    // 🔤 字母键 A-Z\n    if (qtKey >= Qt::Key_A && qtKey <= Qt::Key_Z)\n    {\n        return qtKey; // Qt 和 Windows 的 A-Z 键码相同\n    }\n\n    // 🔢 小键盘 0-9\n    if (qtMod & Qt::KeypadModifier)\n    {\n        switch (qtKey)\n        {\n                // 数字键盘\n            case Qt::Key_0:\n                return VK_NUMPAD0;\n            case Qt::Key_1:\n                return VK_NUMPAD1;\n            case Qt::Key_2:\n                return VK_NUMPAD2;\n            case Qt::Key_3:\n                return VK_NUMPAD3;\n            case Qt::Key_4:\n                return VK_NUMPAD4;\n            case Qt::Key_5:\n                return VK_NUMPAD5;\n            case Qt::Key_6:\n                return VK_NUMPAD6;\n            case Qt::Key_7:\n                return VK_NUMPAD7;\n            case Qt::Key_8:\n                return VK_NUMPAD8;\n            case Qt::Key_9:\n                return VK_NUMPAD9;\n        }\n    }\n\n    // 🔢 数字键 0-9\n    if (qtKey >= Qt::Key_0 && qtKey <= Qt::Key_9)\n    {\n        return qtKey; // Qt 和 Windows 的 0-9 键码相同\n    }\n\n    // 🎯 功能键映射\n    switch (qtKey)\n    {\n        // F1-F12\n        case Qt::Key_F1:\n            return VK_F1;\n        case Qt::Key_F2:\n            return VK_F2;\n        case Qt::Key_F3:\n            return VK_F3;\n        case Qt::Key_F4:\n            return VK_F4;\n        case Qt::Key_F5:\n            return VK_F5;\n        case Qt::Key_F6:\n            return VK_F6;\n        case Qt::Key_F7:\n            return VK_F7;\n        case Qt::Key_F8:\n            return VK_F8;\n        case Qt::Key_F9:\n            return VK_F9;\n        case Qt::Key_F10:\n            return VK_F10;\n        case Qt::Key_F11:\n            return VK_F11;\n        case Qt::Key_F12:\n            return VK_F12;\n\n        // 方向键\n        case Qt::Key_Left:\n            return VK_LEFT;\n        case Qt::Key_Right:\n            return VK_RIGHT;\n        case Qt::Key_Up:\n            return VK_UP;\n        case Qt::Key_Down:\n            return VK_DOWN;\n\n        // 特殊键\n        case Qt::Key_Enter:\n        case Qt::Key_Return:\n            return VK_RETURN;\n        case Qt::Key_Escape:\n            return VK_ESCAPE;\n        case Qt::Key_Tab:\n            return VK_TAB;\n        case Qt::Key_Backspace:\n            return VK_BACK;\n        case Qt::Key_Delete:\n            return VK_DELETE;\n        case Qt::Key_Insert:\n            return VK_INSERT;\n        case Qt::Key_Home:\n            return VK_HOME;\n        case Qt::Key_End:\n            return VK_END;\n        case Qt::Key_PageUp:\n            return VK_PRIOR;\n        case Qt::Key_PageDown:\n            return VK_NEXT;\n        case Qt::Key_Space:\n            return VK_SPACE;\n\n        // 符号键\n        case Qt::Key_Semicolon:\n            return VK_OEM_1; // ;\n        case Qt::Key_Equal:\n            return VK_OEM_PLUS; // =\n        case Qt::Key_Comma:\n            return VK_OEM_COMMA; // ,\n        case Qt::Key_Minus:\n            return VK_OEM_MINUS; // -\n        case Qt::Key_Period:\n            return VK_OEM_PERIOD; // .\n        case Qt::Key_Slash:\n            return VK_OEM_2; // /\n        case Qt::Key_QuoteLeft:\n            return VK_OEM_3; // `\n        case Qt::Key_BracketLeft:\n            return VK_OEM_4; // [\n        case Qt::Key_Backslash:\n            return VK_OEM_5; //\n        case Qt::Key_BracketRight:\n            return VK_OEM_6; // ]\n        case Qt::Key_Apostrophe:\n            return VK_OEM_7; // '\n\n        // 其他常用键\n        case Qt::Key_CapsLock:\n            return VK_CAPITAL;\n        case Qt::Key_NumLock:\n            return VK_NUMLOCK;\n        case Qt::Key_ScrollLock:\n            return VK_SCROLL;\n        case Qt::Key_Pause:\n            return VK_PAUSE;\n        case Qt::Key_Print:\n            return VK_PRINT;\n\n        default:\n            qDebug() << \"Unknown Qt key:\" << qtKey;\n            return 0; // 未知按键\n    }\n}\n\nUINT\nQSingleKeySequenceEdit::toModifier(Qt::KeyboardModifiers qtMod)\n{\n    UINT winMod = 0;\n\n    if (qtMod & Qt::ControlModifier)\n    {\n        winMod |= MOD_CONTROL;\n    }\n    if (qtMod & Qt::AltModifier)\n    {\n        winMod |= MOD_ALT;\n    }\n    if (qtMod & Qt::ShiftModifier)\n    {\n        winMod |= MOD_SHIFT;\n    }\n    if (qtMod & Qt::MetaModifier)\n    {\n        winMod |= MOD_WIN; // Windows 键\n    }\n\n    return winMod;\n}\n\nQString\nQSingleKeySequenceEdit::wrapText(QString keyText)\n{\n    return keyText.replace(\"Up\", \"⬆️\")\n      .replace(\"Down\", \"⬇️\")\n      .replace(\"Left\", \"⬅️\")\n      .replace(\"Right\", \"➡️\");\n}\n\nQtCombinedKey\nQSingleKeySequenceEdit::toQtCombinedKey(const QString& keyText)\n{\n    QKeySequence sequence = QKeySequence(keyText);\n\n    if (!sequence.isEmpty())\n    {\n        int combinedKey = sequence[0];\n        Qt::KeyboardModifiers modifier =\n          Qt::KeyboardModifiers(combinedKey & Qt::KeyboardModifierMask);\n        int key = combinedKey & ~Qt::KeyboardModifierMask;\n        return QtCombinedKey{ key, modifier };\n    }\n    else\n    {\n        return QtCombinedKey{ 0, Qt::NoModifier };\n    }\n}\n"
  },
  {
    "path": "qsinglekeysequenceedit.h",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n * \n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * \n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * \n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#ifndef QSINGLEKEYSEQUENCEEDIT_H\n#define QSINGLEKEYSEQUENCEEDIT_H\n\n#include <windows.h>\n#include <QKeyEvent>\n#include <QKeySequenceEdit>\n#include <QObject>\n#define QKEYSEQUENCEEDIT_DEFAULT_PLACEHOLDER \"点击设置热键\"\n\nstruct QtCombinedKey\n{\n    int key;\n    Qt::KeyboardModifiers modifier;\n};\n\nclass QSingleKeySequenceEdit : public QKeySequenceEdit\n{\n    Q_OBJECT\n\n  public:\n    explicit QSingleKeySequenceEdit(QWidget* parent = nullptr);\n\n    static UINT toVK(int qtKey, Qt::KeyboardModifiers qtMod);\n\n    static UINT toModifier(Qt::KeyboardModifiers qtMod);\n\n    static QtCombinedKey toQtCombinedKey(const QString& keyText);\n\n    static QString wrapText(QString keyText);\n\n    UINT getVK();\n\n    UINT getModifier();\n\n    QtCombinedKey getQtCombinedKey();\n\n    QString getKeyText();\n\n  protected:\n    void keyPressEvent(QKeyEvent* event) override;\n\n  private slots:\n    void update();\n\n  private:\n    bool isModifierKey(int key) const;\n\n    int m_key;\n    Qt::KeyboardModifiers m_modifier;\n};\n\n#endif // QSINGLEKEYSEQUENCEEDIT_H\n"
  },
  {
    "path": "resources.qrc",
    "content": "<RCC>\n    <qresource prefix=\"/icons\">\n        <file>images/icon.ico</file>\n        <file>images/logo.png</file>\n        <file>images/icon_16.ico</file>\n        <file>images/icon_32.ico</file>\n        <file>images/icon_64.ico</file>\n    </qresource>\n    <qresource prefix=\"/i18n\">\n        <file>translations/OpenSpeedy_en_US.qm</file>\n        <file>translations/OpenSpeedy_zh_CN.qm</file>\n        <file>translations/OpenSpeedy_zh_TW.qm</file>\n    </qresource>\n</RCC>\n"
  },
  {
    "path": "script/build32.bat",
    "content": "﻿@echo off\r\necho =================================\r\necho Build 32 bit Qt5.15 static library\r\necho =================================\r\n\r\nif \"%VCINSTALLDIR%\"==\"\" (\r\n    echo Initializing Visual Studio 2022 32-bit environment...\r\n    call %VC_TOOLS_32BIT%\r\n) else (\r\n    echo Visual Studio environment already initialized\r\n    echo VCINSTALLDIR: %VCINSTALLDIR%\r\n)\r\n\r\nset SCRIPT_DIR=%~dp0\r\nset SOURCE_DIR=%SCRIPT_DIR%..\\\r\nset BUILD_DIR=%BUILD_DIR_32BIT%\r\nset QT_QMAKE_EXECUTABLE=%QT_QMAKE_EXECUTABLE_32BIT%\r\n\r\nREM 将命令执行结果存储在变量中\r\nfor /f \"delims=\" %%i in ('\"%QT_QMAKE_EXECUTABLE%\" -query QT_INSTALL_PREFIX') do set QT_INSTALL_PREFIX=%%i\r\necho \"%QT_QMAKE_EXECUTABLE%\"\r\necho \"%QT_INSTALL_PREFIX%\"\r\n\r\ncmake ^\r\n-G \"Ninja\" ^\r\n-DCMAKE_BUILD_TYPE=Release ^\r\n-DQT_QMAKE_EXECUTABLE:FILEPATH=\"%QT_QMAKE_EXECUTABLE%\" ^\r\n-DCMAKE_PREFIX_PATH:PATH=\"%QT_INSTALL_PREFIX%\" ^\r\n-DCMAKE_BUILD_TYPE=Release ^\r\n-S %SOURCE_DIR% ^\r\n-B %BUILD_DIR%\r\n\r\ncmake --build \"%BUILD_DIR%\" --config Release\r\n"
  },
  {
    "path": "script/build64.bat",
    "content": "﻿@echo off\r\necho =================================\r\necho Build 64 bit Qt5.15 static library\r\necho =================================\r\n\r\nif \"%VCINSTALLDIR%\"==\"\" (\r\n    echo Initializing Visual Studio 2022 64-bit environment...\r\n    call %VC_TOOLS_64BIT%\r\n) else (\r\n    echo Visual Studio environment already initialized\r\n    echo VCINSTALLDIR: %VCINSTALLDIR%\r\n)\r\n\r\nset SCRIPT_DIR=%~dp0\r\nset SOURCE_DIR=%SCRIPT_DIR%..\\\r\nset BUILD_DIR=%BUILD_DIR_64BIT%\r\nset QT_QMAKE_EXECUTABLE=%QT_QMAKE_EXECUTABLE_64BIT%\r\n\r\nREM 将命令执行结果存储在变量中\r\nfor /f \"delims=\" %%i in ('\"%QT_QMAKE_EXECUTABLE%\" -query QT_INSTALL_PREFIX') do set QT_INSTALL_PREFIX=%%i\r\necho \"%QT_QMAKE_EXECUTABLE%\"\r\necho \"%QT_INSTALL_PREFIX%\"\r\n\r\ncmake ^\r\n-G \"Ninja\" ^\r\n-DQT_QMAKE_EXECUTABLE:FILEPATH=\"%QT_QMAKE_EXECUTABLE%\" ^\r\n-DCMAKE_PREFIX_PATH:PATH=\"%QT_INSTALL_PREFIX%\" ^\r\n-DCMAKE_BUILD_TYPE=Release ^\r\n-S %SOURCE_DIR% ^\r\n-B %BUILD_DIR%\r\n\r\ncmake --build \"%BUILD_DIR%\" --config Release\r\n"
  },
  {
    "path": "script/initenv.bat",
    "content": "﻿set VC_TOOLS_32BIT=\"D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\Build\\vcvars32.bat\"\r\nset VC_TOOLS_64BIT=\"D:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\"\r\nset BUILD_DIR_32BIT=\"%~dp0..\\build\\CMAKE_x86_static-Release\"\r\nset BUILD_DIR_64BIT=\"%~dp0..\\build\\CMAKE_x64_static-Release\"\r\nset QT_QMAKE_EXECUTABLE_32BIT=\"E:\\vcpkg-master\\installed\\x86-windows-static\\tools\\qt5\\bin\\qmake.exe\"\r\nset QT_QMAKE_EXECUTABLE_64BIT=\"E:\\vcpkg-master\\installed\\x64-windows-static\\tools\\qt5\\bin\\qmake.exe\"\r\n"
  },
  {
    "path": "speedpatch/CMakeLists.txt",
    "content": "cmake_minimum_required(VERSION 3.16)\n\nproject(speedpatch LANGUAGES CXX)\n\nset(CMAKE_AUTOUIC ON)\nset(CMAKE_AUTOMOC ON)\nset(CMAKE_AUTORCC ON)\nset(CMAKE_CXX_STANDARD 17)\nset(CMAKE_CXX_STANDARD_REQUIRED ON)\n\nset(CMAKE_RUNTIME_OUTPUT_DIRECTORY ..)\n\n# 判断是32位还是64位\nif(CMAKE_SIZEOF_VOID_P EQUAL 8)\n    set(SUFFIX \"64\")\nelseif(CMAKE_SIZEOF_VOID_P EQUAL 4)\n    set(SUFFIX \"32\")\nelse()\n    set(SUFFIX \"\")\nendif()\n\n# 设置目标名带后缀\nset(TARGET_NAME \"speedpatch${SUFFIX}\")\n\nadd_library(${TARGET_NAME} SHARED\n  speedpatch.cpp\n  speedpatch.h\n  vcpkg.json\n\n)\n\ntarget_link_libraries(${TARGET_NAME} PRIVATE\n  minhook\n)\ntarget_compile_definitions(${TARGET_NAME} PRIVATE SPEEDPATCH_LIBRARY)\n"
  },
  {
    "path": "speedpatch/SpeedPatch_global.h",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n * \n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * \n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * \n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#ifndef SPEEDPATCH_GLOBAL_H\n#define SPEEDPATCH_GLOBAL_H\n\n\n#endif // SPEEDPATCH_GLOBAL_H\n"
  },
  {
    "path": "speedpatch/speedpatch.cpp",
    "content": "﻿/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it\n * and/or modify it under the terms of the GNU General\n * Public License as published by the Free Software\n * Foundation, either version 3 of the License, or (at your\n * option) any later version.\n *\n * This program is distributed in the hope that it will be\n * useful, but WITHOUT ANY WARRANTY; without even the\n * implied warranty of MERCHANTABILITY or FITNESS FOR A\n * PARTICULAR PURPOSE.  See the GNU General Public License\n * for more details.\n *\n * You should have received a copy of the GNU General Public\n * License along with this program.  If not, see\n * <https://www.gnu.org/licenses/>.\n */\n#include <windows.h>\n#include <winternl.h>\n#include \"Minhook.h\"\n#include \"speedpatch.h\"\n#include <atomic>\n#include <mmsystem.h>\n#include <shared_mutex>\n#include <sstream>\n#pragma comment(lib, \"winmm.lib\")\n#pragma data_seg(\"shared\")\nstatic std::atomic<double> factor = 1.0;\n#pragma data_seg()\n#pragma comment(linker, \"/section:shared,RWS\")\n\nstatic std::shared_mutex mutex;\nstatic std::atomic<double> pre_factor = 1.0;\nstatic HANDLE hShare;\nstatic bool* pEnable;\n\ntypedef VOID (WINAPI* SLEEP) (DWORD);\ntypedef DWORD (WINAPI* SLEEPEX) (DWORD, BOOL);\n\ntypedef UINT_PTR (WINAPI* SETTIMER) (\n    HWND,\n    UINT_PTR,\n    UINT,\n    TIMERPROC\n    );\ntypedef DWORD (WINAPI* TIMEGETTIME) (VOID);\ntypedef MMRESULT (WINAPI* TIMESETEVENT) (\n    UINT,\n    UINT,\n    LPTIMECALLBACK,\n    DWORD_PTR,\n    UINT\n    );\n\ntypedef LONG (WINAPI* GETMESSAGETIME) (VOID);\ntypedef DWORD (WINAPI* GETTICKCOUNT) (VOID);\ntypedef ULONGLONG (WINAPI* GETTICKCOUNT64) (VOID);\n\ntypedef BOOL (WINAPI* QUERYPERFORMANCECOUNTER) (LARGE_INTEGER*);\ntypedef BOOL (WINAPI* QUERYPERFORMANCEFREQUENCY) (LARGE_INTEGER*);\n\ntypedef VOID (WINAPI* GETSYSTEMTIMEASFILETIME) (LPFILETIME);\ntypedef VOID (WINAPI* GETSYSTEMTIMEPRECISEASFILETIME) (LPFILETIME);\n\ntypedef BOOL (WINAPI* SETWAITABLETIMEREX) (\n    HANDLE,\n    const LARGE_INTEGER*,\n    LONG,\n    PTIMERAPCROUTINE,\n    LPVOID,\n    PREASON_CONTEXT,\n    ULONG);\n\ninline VOID shouldUpdateAll();\n\nstatic SLEEP pfnKernelSleep = NULL;\nstatic SLEEP pfnDetourSleep = NULL;\n\nstatic SLEEPEX pfnKernelSleepEx = NULL;\nstatic SLEEPEX pfnDetourSleepEx = NULL;\n\nstatic SETTIMER pfnKernelSetTimer = NULL;\nstatic SETTIMER pfnDetourSetTimer = NULL;\n\nstatic TIMEGETTIME pfnKernelTimeGetTime = NULL;\nstatic TIMEGETTIME pfnDetourTimeGetTime = NULL;\n\nstatic TIMESETEVENT pfnKernelTimeSetEvent = NULL;\nstatic TIMESETEVENT pfnDetourTimeSetEvent = NULL;\n\nstatic GETMESSAGETIME pfnKernelGetMessageTime = NULL;\nstatic GETMESSAGETIME pfnDetourGetMessageTime = NULL;\n\nstatic GETTICKCOUNT pfnKernelGetTickCount = NULL;\nstatic GETTICKCOUNT pfnDetourGetTickCount = NULL;\n\nstatic GETTICKCOUNT64 pfnKernelGetTickCount64 = NULL;\nstatic GETTICKCOUNT64 pfnDetourGetTickCount64 = NULL;\n\nstatic QUERYPERFORMANCECOUNTER pfnKernelQueryPerformanceCounter = NULL;\nstatic QUERYPERFORMANCECOUNTER pfnDetourQueryPerformanceCounter = NULL;\n\nstatic QUERYPERFORMANCEFREQUENCY pfnKernelQueryPerformanceFrequency = NULL;\nstatic QUERYPERFORMANCEFREQUENCY pfnDetourQueryPerformanceFrequency = NULL;\n\nstatic GETSYSTEMTIMEASFILETIME pfnKernelGetSystemTimeAsFileTime = NULL;\nstatic GETSYSTEMTIMEASFILETIME pfnDetourGetSystemTimeAsFileTime = NULL;\n\nstatic GETSYSTEMTIMEPRECISEASFILETIME pfnKernelGetSystemTimePreciseAsFileTime = NULL;\nstatic GETSYSTEMTIMEPRECISEASFILETIME pfnDetourGetSystemTimePreciseAsFileTime = NULL;\n\nstatic SETWAITABLETIMEREX pfnKernelSetWaitableTimerEx = NULL;\nstatic SETWAITABLETIMEREX pfnDetourSetWaitableTimerEx = NULL;\n\nSPEEDPATCH_API void ChangeSpeed(double factor_)\n{\n    factor.store(factor_);\n}\n\nvoid Init()\n{\n    DWORD processId = GetCurrentProcessId();\n    std::wstring filemapName = GetProcessFileMapName(processId);\n    hShare = CreateFileMapping(\n        INVALID_HANDLE_VALUE,\n        NULL,\n        PAGE_READWRITE,\n        0,\n        sizeof (bool),\n        filemapName.c_str()\n        );\n    if (hShare == NULL)\n    {\n        return;\n    }\n    pEnable = (bool*) MapViewOfFile(\n        hShare,\n        FILE_MAP_ALL_ACCESS,\n        0,\n        0,\n        sizeof (bool)\n        );\n    *pEnable = true;\n}\n\nvoid Clean()\n{\n    if (hShare != NULL)\n    {\n        UnmapViewOfFile(pEnable);\n        CloseHandle(hShare);\n    }\n}\n\nBOOL GetStatus()\n{\n    return *pEnable;\n}\n\nvoid SetProcessStatus(DWORD processId, BOOL status)\n{\n    std::wstring filemapName = GetProcessFileMapName(processId);\n    HANDLE hShare_ = OpenFileMapping(FILE_MAP_ALL_ACCESS,\n                                     FALSE,\n                                     filemapName.c_str()\n                                     );\n    if (hShare_ == NULL)\n    {\n        return;\n    }\n    bool* pStatus = (bool*) MapViewOfFile(hShare_,\n                                          FILE_MAP_ALL_ACCESS,\n                                          0,\n                                          0,\n                                          sizeof (bool));\n    *pStatus = status;\n    UnmapViewOfFile(pStatus);\n    CloseHandle(hShare_);\n}\n\nstd::wstring GetCurrentProcessName()\n{\n    wchar_t processPath[MAX_PATH];\n    GetModuleFileName(NULL, processPath, MAX_PATH);\n    std::wstring fullPath(processPath);\n    size_t lastSlash = fullPath.find_last_of(L\"\\\\\");\n    if (lastSlash != std::wstring::npos)\n    {\n        fullPath = fullPath.substr(lastSlash + 1);\n    }\n    return fullPath;\n}\n\nstd::wstring GetProcessFileMapName(DWORD processId)\n{\n    std::wstringstream wss;\n    wss << L\"OpenSpeedy.\" << processId;\n    return wss.str();\n}\n\ndouble SpeedFactor()\n{\n    if (GetStatus())\n    {\n        return factor.load();\n    }\n    else\n    {\n        return 1.0;\n    }\n}\n\nVOID WINAPI DetourSleep(DWORD dwMilliseconds)\n{\n    std::shared_lock<std::shared_mutex> lock(mutex);\n    pfnKernelSleep(dwMilliseconds / SpeedFactor());\n}\n\nDWORD WINAPI DetourSleepEx(DWORD dwMilliseconds, BOOL bAlertable)\n{\n    std::shared_lock<std::shared_mutex> lock(mutex);\n    return pfnKernelSleepEx(dwMilliseconds / SpeedFactor(), bAlertable);\n}\n\nUINT_PTR WINAPI DetourSetTimer(HWND      hWnd,\n                               UINT_PTR  nIDEvent,\n                               UINT      uElapse,\n                               TIMERPROC lpTimerFunc)\n{\n    std::shared_lock<std::shared_mutex> lock(mutex);\n    return pfnKernelSetTimer(\n        hWnd,\n        nIDEvent,\n        uElapse / SpeedFactor(),\n        lpTimerFunc\n        );\n}\n\nstatic DWORD baselineKernelTimeGetTime = 0;\nstatic DWORD baselineDetourTimeGetTime = 0;\nstatic DWORD prevcallKernelTimeGetTime = 0;\nstatic DWORD prevcallDetourTimeGetTime = 0;\nstatic std::atomic<bool> shouldUpdateTimeGetTime = false;\n\nDWORD WINAPI DetourTimeGetTime(VOID)\n{\n    std::shared_lock<std::shared_mutex> lock(mutex);\n    if (pre_factor != SpeedFactor())\n    {\n        pre_factor = SpeedFactor();\n        shouldUpdateAll();\n    }\n    bool expected = true;\n    if (shouldUpdateTimeGetTime.compare_exchange_weak(expected, false))\n    {\n        baselineKernelTimeGetTime = prevcallKernelTimeGetTime;\n        baselineDetourTimeGetTime = prevcallDetourTimeGetTime;\n    }\n    DWORD now = pfnKernelTimeGetTime();\n    prevcallKernelTimeGetTime = now;\n    DWORD delta = SpeedFactor() * (now - baselineKernelTimeGetTime);\n    prevcallDetourTimeGetTime = baselineDetourTimeGetTime + delta;\n    return baselineDetourTimeGetTime + delta;\n}\n\nMMRESULT WINAPI DetourTimeSetEvent(UINT           uDelay,\n                                   UINT           uResolution,\n                                   LPTIMECALLBACK lpTimeProc,\n                                   DWORD_PTR      dwUser,\n                                   UINT           fuEvent)\n{\n    return pfnKernelTimeSetEvent(\n        uDelay / SpeedFactor(),\n        uResolution,\n        lpTimeProc,\n        dwUser,\n        fuEvent);\n}\n\nstatic LONG baselineKernelGetMessageTime = 0;\nstatic LONG baselineDetourGetMessageTime = 0;\nstatic LONG prevcallKernelGetMessageTime = 0;\nstatic LONG prevcallDetourGetMessageTime = 0;\nstatic std::atomic<bool> shouldUpdateGetMessageTime = false;\nLONG WINAPI DetourGetMessageTime(VOID)\n{\n    std::shared_lock<std::shared_mutex> lock(mutex);\n    if (pre_factor == SpeedFactor())\n    {\n        pre_factor = SpeedFactor();\n        shouldUpdateAll();\n    }\n    bool expected = true;\n    if (shouldUpdateGetMessageTime.compare_exchange_weak(expected, false))\n    {\n        baselineKernelGetMessageTime = prevcallKernelGetMessageTime;\n        baselineDetourGetMessageTime = prevcallDetourGetMessageTime;\n    }\n    DWORD now = pfnKernelGetMessageTime();\n    prevcallKernelGetMessageTime = now;\n    DWORD delta = SpeedFactor() * (now - baselineKernelGetMessageTime);\n    prevcallDetourGetMessageTime = baselineDetourGetMessageTime + delta;\n    return baselineDetourGetMessageTime + delta;\n}\n\nstatic DWORD baselineKernelGetTickCount = 0;\nstatic DWORD baselineDetourGetTickCount = 0;\nstatic DWORD prevcallKernelGetTickCount = 0;\nstatic DWORD prevcallDetourGetTickCount = 0;\nstatic std::atomic<bool> shouldUpdateGetTickCount = false;\nDWORD WINAPI DetourGetTickCount(VOID)\n{\n    std::shared_lock<std::shared_mutex> lock(mutex);\n    if (pre_factor != SpeedFactor())\n    {\n        pre_factor = SpeedFactor();\n        shouldUpdateAll();\n    }\n    bool expected = true;\n    if (shouldUpdateGetTickCount.compare_exchange_weak(expected, false))\n    {\n        baselineKernelGetTickCount = prevcallKernelGetTickCount;\n        baselineDetourGetTickCount = prevcallDetourGetTickCount;\n    }\n    DWORD now = pfnKernelGetTickCount();\n    prevcallKernelGetTickCount = now;\n    DWORD delta = SpeedFactor() * (now - baselineKernelGetTickCount);\n    prevcallDetourGetTickCount = baselineDetourGetTickCount + delta;\n    return baselineDetourGetTickCount + delta;\n}\n\nstatic ULONGLONG baselineKernelGetTickCount64 = 0;\nstatic ULONGLONG baselineDetourGetTickCount64 = 0;\nstatic ULONGLONG prevcallKernelGetTickCount64 = 0;\nstatic ULONGLONG prevcallDetourGetTickCount64 = 0;\nstd::atomic<bool> shouldUpdateGetTickCount64 = false;\nULONGLONG WINAPI DetourGetTickCount64(VOID)\n{\n    std::shared_lock<std::shared_mutex> lock(mutex);\n    if (pre_factor != SpeedFactor())\n    {\n        pre_factor = SpeedFactor();\n        shouldUpdateAll();\n    }\n    bool expected = true;\n    if (shouldUpdateGetTickCount64.compare_exchange_weak(expected, false))\n    {\n        baselineKernelGetTickCount64 = prevcallKernelGetTickCount64;\n        baselineDetourGetTickCount64 = prevcallDetourGetTickCount64;\n    }\n    ULONGLONG now = pfnKernelGetTickCount64();\n    prevcallKernelGetTickCount64 = now;\n    ULONGLONG delta = SpeedFactor() * (now - baselineKernelGetTickCount64);\n    prevcallDetourGetTickCount64 = baselineDetourGetTickCount64 + delta;\n    return baselineDetourGetTickCount64 + delta;\n}\n\nstatic LARGE_INTEGER baselineKernelQueryPerformanceCounter = { 0 };\nstatic LARGE_INTEGER baselineDetourQueryPerformanceCounter = { 0 };\nstatic LARGE_INTEGER prevcallKernelQueryPerformanceCounter = { 0 };\nstatic LARGE_INTEGER prevcallDetourQueryPerformanceCounter = { 0 };\nstatic std::atomic<bool> shouldUpdateQueryPerformanceCounter = false;\nBOOL WINAPI DetourQueryPerformanceCounter(LARGE_INTEGER* lpPerformanceCount)\n{\n    std::shared_lock<std::shared_mutex> lock(mutex);\n    if (lpPerformanceCount == NULL)\n    {\n        return FALSE;\n    }\n    if (pre_factor != SpeedFactor())\n    {\n        pre_factor = SpeedFactor();\n        shouldUpdateAll();\n    }\n    // 更新基准时间点\n    bool expected = true;\n    if (shouldUpdateQueryPerformanceCounter.compare_exchange_weak(expected,\n                                                                  false))\n    {\n        baselineKernelQueryPerformanceCounter = prevcallKernelQueryPerformanceCounter;\n        baselineDetourQueryPerformanceCounter = prevcallDetourQueryPerformanceCounter;\n    }\n    BOOL rtncode = pfnKernelQueryPerformanceCounter(\n        &prevcallKernelQueryPerformanceCounter);\n    if (rtncode == TRUE)\n    {\n        *lpPerformanceCount = prevcallKernelQueryPerformanceCounter;\n    }\n    LONGLONG delta =\n        SpeedFactor() * (lpPerformanceCount->QuadPart -\n                         baselineKernelQueryPerformanceCounter.QuadPart)\n    ;\n    lpPerformanceCount->QuadPart = baselineDetourQueryPerformanceCounter.QuadPart + delta;\n    prevcallDetourQueryPerformanceCounter = *lpPerformanceCount;\n    return rtncode;\n}\n\nstatic LARGE_INTEGER baselineKernelQueryPerformanceFrequency = { 0 };\nBOOL WINAPI DetourQueryPerformanceFrequency(LARGE_INTEGER* lpFrequency)\n{\n    std::shared_lock<std::shared_mutex> lock(mutex);\n    if (lpFrequency == NULL)\n    {\n        return FALSE;\n    }\n    else\n    {\n        BOOL rtncode = pfnKernelQueryPerformanceFrequency(lpFrequency);\n        lpFrequency->QuadPart = SpeedFactor() * lpFrequency->QuadPart;\n        return rtncode;\n    }\n}\n\nstatic std::atomic<FILETIME> baselineKernelGetSystemTimeAsFileTime({ 0 });\nstatic std::atomic<FILETIME> baselineDetourGetSystemTimeAsFileTime({ 0 });\nstatic std::atomic<FILETIME> prevcallKernelGetSystemTimeAsFileTime({ 0 });\nstatic std::atomic<FILETIME> prevcallDetourGetSystemTimeAsFileTime({ 0 });\nstatic std::atomic<bool> shouldUpdateGetSystemTimeAsFileTime = false;\nVOID WINAPI DetourGetSystemTimeAsFileTime(LPFILETIME lpSystemTimeAsFileTime)\n{\n    std::shared_lock<std::shared_mutex> lock(mutex);\n    if (lpSystemTimeAsFileTime == NULL)\n    {\n        return;\n    }\n    if (pre_factor != SpeedFactor())\n    {\n        pre_factor = SpeedFactor();\n        shouldUpdateAll();\n    }\n    bool expected = true;\n    if (shouldUpdateGetSystemTimeAsFileTime.compare_exchange_weak(expected,\n                                                                  false))\n    {\n        baselineKernelGetSystemTimeAsFileTime.store(\n            prevcallKernelGetSystemTimeAsFileTime.load());\n        baselineDetourGetSystemTimeAsFileTime.store(\n            prevcallDetourGetSystemTimeAsFileTime.load());\n    }\n    // 从全局变量读取基准点快照到线程栈\n    FILETIME baselineKernelSnapshot = baselineKernelGetSystemTimeAsFileTime.load();\n    ULARGE_INTEGER baselineKernel = { baselineKernelSnapshot.dwLowDateTime,\n                                      baselineKernelSnapshot.dwHighDateTime\n    };\n    FILETIME baselineDetourSnapshot = baselineDetourGetSystemTimeAsFileTime.load();\n    ULARGE_INTEGER baselineDetour = { baselineDetourSnapshot.dwLowDateTime,\n                                      baselineDetourSnapshot.dwHighDateTime\n    };\n    FILETIME ftNow = { 0 };\n    pfnKernelGetSystemTimeAsFileTime(&ftNow);\n    prevcallKernelGetSystemTimeAsFileTime.store(ftNow);\n    ULARGE_INTEGER ulNow = { ftNow.dwLowDateTime, ftNow.dwHighDateTime };\n    ULONGLONG delta = SpeedFactor() * (ulNow.QuadPart - baselineKernel.QuadPart);\n    ULARGE_INTEGER ulRtn = { 0 };\n    ulRtn.QuadPart = baselineDetour.QuadPart + delta;\n    prevcallDetourGetSystemTimeAsFileTime.store(\n        { ulRtn.LowPart, ulRtn.HighPart });\n    (*lpSystemTimeAsFileTime) = { ulRtn.LowPart, ulRtn.HighPart };\n}\n\nstatic std::atomic<FILETIME> baselineKernelGetSystemTimePreciseAsFileTime({ 0 });\nstatic std::atomic<FILETIME> baselineDetourGetSystemTimePreciseAsFileTime({ 0 });\nstatic std::atomic<FILETIME> prevcallKernelGetSystemTimePreciseAsFileTime({ 0 });\nstatic std::atomic<FILETIME> prevcallDetourGetSystemTimePreciseAsFileTime({ 0 });\nstatic std::atomic<bool> shouldUpdateGetSystemTimePreciseAsFileTime = false;\nVOID WINAPI\nDetourGetSystemTimePreciseAsFileTime(LPFILETIME lpSystemTimeAsFileTime)\n{\n    std::shared_lock<std::shared_mutex> lock(mutex);\n    if (lpSystemTimeAsFileTime == NULL)\n    {\n        return;\n    }\n    if (pre_factor != SpeedFactor())\n    {\n        pre_factor = SpeedFactor();\n        shouldUpdateAll();\n    }\n    bool expected = true;\n    if (shouldUpdateGetSystemTimePreciseAsFileTime.compare_exchange_weak(\n            expected, false))\n    {\n        baselineKernelGetSystemTimePreciseAsFileTime.store(\n            prevcallKernelGetSystemTimePreciseAsFileTime.load());\n        baselineDetourGetSystemTimePreciseAsFileTime.store(\n            prevcallDetourGetSystemTimePreciseAsFileTime.load());\n    }\n    // 从全局变量读取基准点快照到线程栈\n    FILETIME baselineKernelSnapshot = baselineKernelGetSystemTimePreciseAsFileTime.load();\n    ULARGE_INTEGER baselineKernel = { baselineKernelSnapshot.dwLowDateTime,\n                                      baselineKernelSnapshot.dwHighDateTime\n    };\n    FILETIME baselineDetourSnapshot = baselineDetourGetSystemTimePreciseAsFileTime.load();\n    ULARGE_INTEGER baselineDetour = { baselineDetourSnapshot.dwLowDateTime,\n                                      baselineDetourSnapshot.dwHighDateTime\n    };\n    FILETIME ftNow = { 0 };\n    pfnKernelGetSystemTimePreciseAsFileTime(&ftNow);\n    prevcallKernelGetSystemTimePreciseAsFileTime.store(ftNow);\n    ULARGE_INTEGER ulNow = { ftNow.dwLowDateTime,\n                             ftNow.dwHighDateTime\n    };\n    ULONGLONG delta = SpeedFactor() * (ulNow.QuadPart - baselineKernel.QuadPart);\n    ULARGE_INTEGER ulRtn = { 0 };\n    ulRtn.QuadPart = baselineDetour.QuadPart + delta;\n    prevcallDetourGetSystemTimePreciseAsFileTime.store({ ulRtn.LowPart, ulRtn.HighPart });\n    (*lpSystemTimeAsFileTime) = { ulRtn.LowPart, ulRtn.HighPart };\n}\n\nBOOL WINAPI DetourSetWaitableTimerEx(\n    HANDLE               hTimer,\n    const LARGE_INTEGER* lpDueTime,\n    LONG                 lPeriod,\n    PTIMERAPCROUTINE     pfnCompletionRoutine,\n    LPVOID               lpArgToCompletionRoutine,\n    PREASON_CONTEXT      WakeContext,\n    ULONG                TolerableDelay\n    )\n{\n    LARGE_INTEGER dueTime = {0};\n    dueTime.QuadPart = lpDueTime->QuadPart / SpeedFactor();\n    return pfnKernelSetWaitableTimerEx(hTimer,\n                                       &dueTime,\n                                       lPeriod,\n                                       pfnCompletionRoutine,\n                                       lpArgToCompletionRoutine,\n                                       WakeContext,\n                                       TolerableDelay);\n}\n\ninline VOID shouldUpdateAll()\n{\n    shouldUpdateTimeGetTime = true;\n    shouldUpdateGetMessageTime = true;\n    shouldUpdateGetTickCount = true;\n    shouldUpdateGetTickCount64 = true;\n    shouldUpdateQueryPerformanceCounter = true;\n    shouldUpdateGetSystemTimeAsFileTime = true;\n    shouldUpdateGetSystemTimePreciseAsFileTime = true;\n}\n\ntemplate <typename S, typename T>\ninline VOID MH_HOOK(S* pTarget, S* pDetour, T** ppOriginal)\n{\n\n    if (MH_CreateHook(reinterpret_cast<LPVOID> (pTarget),\n                      reinterpret_cast<LPVOID> (pDetour),\n                      reinterpret_cast<LPVOID*> (ppOriginal)) != MH_OK)\n    {\n        MessageBoxW(NULL, L\"MH装载失败\", L\"DLL\", MB_OK);\n    }\n\n    if (MH_EnableHook(reinterpret_cast<LPVOID> (pTarget)) != MH_OK)\n    {\n        MessageBoxW(NULL, L\"MH装载失败\", L\"DLL\", MB_OK);\n    }\n}\n\ntemplate <typename T>\nVOID MH_UNHOOK(T* pTarget)\n{\n    MH_RemoveHook(reinterpret_cast<LPVOID> (pTarget));\n}\n\nLRESULT CALLBACK HookProc(int    nCode,\n                          WPARAM wParam,\n                          LPARAM lParam)\n{\n    if (nCode >= 0)\n    {\n        // Hook被触发，DLL已经注入到目标进程\n        // 在这里执行需要的操作\n        // 只执行一次，然后移除Hook\n        static bool executed = false;\n        if (!executed)\n        {\n            executed = true;\n        }\n    }\n    return CallNextHookEx(NULL, nCode, wParam, lParam);\n}\n\nBOOL APIENTRY DllMain(HMODULE hModule,\n                      DWORD   ul_reason_for_call,\n                      LPVOID  lpReserved)\n{\n    FILETIME now = { 0 };\n    HMODULE hKernel32;\n    SETWAITABLETIMEREX pSetWaitableTimerEx;\n    switch (ul_reason_for_call)\n    {\n    case DLL_PROCESS_ATTACH:\n        hKernel32 = GetModuleHandleW(L\"kernel32.dll\");\n\n        if (MH_Initialize() != MH_OK)\n        {\n            MessageBoxW(NULL, L\"MH装载失败\", L\"DLL\", MB_OK);\n            return FALSE;\n        }\n        Init();\n        /* Initial timeGetTime */\n        baselineKernelTimeGetTime = timeGetTime();\n        prevcallKernelTimeGetTime = baselineKernelTimeGetTime;\n        baselineDetourTimeGetTime = baselineKernelTimeGetTime;\n        prevcallDetourTimeGetTime = baselineKernelTimeGetTime;\n\n        baselineKernelGetMessageTime = GetMessageTime();\n        prevcallKernelGetMessageTime = baselineKernelGetMessageTime;\n        baselineDetourGetMessageTime = baselineKernelGetMessageTime;\n        prevcallDetourGetMessageTime = baselineKernelGetMessageTime;\n\n        /* Initial GetTickCount */\n        baselineKernelGetTickCount = GetTickCount();\n        prevcallKernelGetTickCount = baselineKernelGetTickCount;\n        baselineDetourGetTickCount = baselineKernelGetTickCount;\n        prevcallDetourGetTickCount = baselineKernelGetTickCount;\n\n        baselineKernelGetTickCount64 = GetTickCount64();\n        prevcallKernelGetTickCount64 = baselineKernelGetTickCount64;\n        baselineDetourGetTickCount64 = baselineKernelGetTickCount64;\n        prevcallDetourGetTickCount64 = baselineKernelGetTickCount64;\n\n        /* Initial QueryPerformanceCounter */\n        QueryPerformanceCounter(&baselineKernelQueryPerformanceCounter);\n        prevcallKernelQueryPerformanceCounter = baselineKernelQueryPerformanceCounter;\n        baselineDetourQueryPerformanceCounter = baselineKernelQueryPerformanceCounter;\n        prevcallDetourQueryPerformanceCounter = baselineKernelQueryPerformanceCounter;\n\n        /* Initial QueryPerformanceFrequency */\n        QueryPerformanceFrequency(&baselineKernelQueryPerformanceFrequency);\n\n        /* Initial GetSystemTimeAsFileTime */\n        GetSystemTimeAsFileTime(&now);\n        baselineKernelGetSystemTimeAsFileTime.store(now);\n        prevcallKernelGetSystemTimeAsFileTime.store(now);\n        baselineDetourGetSystemTimeAsFileTime.store(now);\n        prevcallDetourGetSystemTimeAsFileTime.store(now);\n\n        /* Initial GetSystemTimePreciseAsFileTime */\n        GetSystemTimePreciseAsFileTime(&now);\n        baselineKernelGetSystemTimePreciseAsFileTime.store(now);\n        prevcallKernelGetSystemTimePreciseAsFileTime.store(now);\n        baselineDetourGetSystemTimePreciseAsFileTime.store(now);\n        prevcallDetourGetSystemTimePreciseAsFileTime.store(now);\n\n        MH_HOOK(&Sleep,\n                &DetourSleep,\n                reinterpret_cast<LPVOID*> (&pfnKernelSleep));\n        MH_HOOK(&SleepEx,\n                &DetourSleepEx,\n                reinterpret_cast<LPVOID*>(&pfnKernelSleepEx));\n\n        pSetWaitableTimerEx = (SETWAITABLETIMEREX)GetProcAddress(hKernel32, \"SetWaitableTimerEx\");\n        MH_HOOK(pSetWaitableTimerEx,\n                &DetourSetWaitableTimerEx,\n                reinterpret_cast<LPVOID*>(&pfnKernelSetWaitableTimerEx));\n        MH_HOOK(&SetTimer,\n                &DetourSetTimer,\n                reinterpret_cast<LPVOID*> (&pfnKernelSetTimer));\n        MH_HOOK(&timeGetTime,\n                &DetourTimeGetTime,\n                reinterpret_cast<LPVOID*> (&pfnKernelTimeGetTime));\n        MH_HOOK(&timeSetEvent,\n                &DetourTimeSetEvent,\n                reinterpret_cast<LPVOID*>(&pfnKernelTimeSetEvent));\n        MH_HOOK(&GetMessageTime,\n                &DetourGetMessageTime,\n                reinterpret_cast<LPVOID*>(&pfnKernelGetMessageTime));\n        MH_HOOK(&GetTickCount,\n                &DetourGetTickCount,\n                reinterpret_cast<LPVOID*> (&pfnKernelGetTickCount));\n        MH_HOOK(&GetTickCount64,\n                &DetourGetTickCount64,\n                reinterpret_cast<LPVOID*> (&pfnKernelGetTickCount64));\n        MH_HOOK(&QueryPerformanceCounter,\n                &DetourQueryPerformanceCounter,\n                reinterpret_cast<LPVOID*> (&pfnKernelQueryPerformanceCounter));\n        MH_HOOK(&GetSystemTimeAsFileTime,\n                &DetourGetSystemTimeAsFileTime,\n                reinterpret_cast<LPVOID*> (&pfnKernelGetSystemTimeAsFileTime));\n        MH_HOOK(&GetSystemTimePreciseAsFileTime,\n                &DetourGetSystemTimePreciseAsFileTime,\n                reinterpret_cast<LPVOID*> (\n                    &pfnKernelGetSystemTimePreciseAsFileTime));\n\n\n        break;\n    case DLL_THREAD_ATTACH:\n        break;\n    case DLL_THREAD_DETACH:\n        break;\n    case DLL_PROCESS_DETACH:\n    {\n        {\n            std::unique_lock<std::shared_mutex> lock(mutex);\n            MH_DisableHook(MH_ALL_HOOKS);\n        }\n        {\n            std::unique_lock<std::shared_mutex> lock(mutex);\n            MH_UNHOOK(pfnKernelSleep);\n            MH_UNHOOK(pfnKernelSetTimer);\n            MH_UNHOOK(pfnKernelTimeGetTime);\n            MH_UNHOOK(pfnKernelTimeSetEvent);\n            MH_UNHOOK(pfnKernelGetTickCount);\n            MH_UNHOOK(pfnKernelGetTickCount64);\n            MH_UNHOOK(pfnKernelQueryPerformanceCounter);\n            MH_UNHOOK(pfnKernelGetSystemTimeAsFileTime);\n            MH_UNHOOK(pfnKernelGetSystemTimePreciseAsFileTime);\n        }\n        // Wait for All threads to finish detour api\n        Sleep(1000);\n        {\n            std::unique_lock<std::shared_mutex> lock(mutex);\n            if (MH_Uninitialize() != MH_OK)\n            {\n                MessageBoxW(NULL, L\"DLL卸载失败\", L\"DLL\", MB_OK);\n                return FALSE;\n            }\n        }\n        Clean();\n        break;\n    }\n    }\n    return TRUE;\n}\n"
  },
  {
    "path": "speedpatch/speedpatch.h",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#ifndef SPEEDPATCH_H\n#define SPEEDPATCH_H\n#include <windows.h>\n#include <string>\n\n#if defined(SPEEDPATCH_LIBRARY)\n#define SPEEDPATCH_API __declspec(dllexport)\n#else\n#define SPEEDPATCH_API __declspec(dllimport)\n#endif\n\nstd::wstring\nGetCurrentProcessName();\n\nstd::wstring\nGetProcessFileMapName(DWORD processId);\n\nextern \"C\"\n{\nSPEEDPATCH_API void Init();\nSPEEDPATCH_API void Clean();\nSPEEDPATCH_API BOOL GetStatus();\nSPEEDPATCH_API void SetProcessStatus(DWORD processId,BOOL status);\nSPEEDPATCH_API void ChangeSpeed(double factor_);\nSPEEDPATCH_API LRESULT CALLBACK HookProc(int    nCode,\n                                         WPARAM wParam,\n                                         LPARAM lParam\n                                         );\n}\n\n#endif // SPEEDPATCH_H\n"
  },
  {
    "path": "speedpatch/vcpkg.json",
    "content": "{\n  \"$schema\": \"https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json\",\n  \"name\": \"mypackage\",\n  \"version-string\": \"0.0.1\",\n  \"dependencies\": [\n    \"minhook\"\n  ]\n}\n"
  },
  {
    "path": "taskscheduler.cpp",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#include \"taskscheduler.h\"\n#include <QDebug>\n#include <QDir>\n#include <QProcess>\nTaskScheduler::TaskScheduler(QObject *parent) : QObject{parent}\n{\n}\n\nTaskScheduler::~TaskScheduler()\n{\n}\n\nbool TaskScheduler::createStartupTask(const QString &taskName,\n                                      const QString &executablePath)\n{\n    if (taskName.isEmpty() || executablePath.isEmpty())\n    {\n        qWarning() << \"任务名称或可执行文件路径不能为空\";\n        return false;\n    }\n\n    if (!QFile::exists(executablePath))\n    {\n        qWarning() << \"可执行文件不存在\" << executablePath;\n        return false;\n    }\n\n    QStringList arguments;\n    arguments << \"/create\"\n              << \"/f\"\n              << \"/tn\" << taskName << \"/tr\"\n              << QString(\"\\\"%1\\\" --minimize-to-tray\").arg(executablePath)\n              << \"/sc\" << \"onlogon\"\n              << \"/delay\" << \"0000:10\"\n              << \"/rl\" << \"highest\";\n\n    return execute(arguments);\n}\n\nbool TaskScheduler::deleteTask(const QString &taskName)\n{\n    if (taskName.isEmpty())\n    {\n        qWarning() << \"任务名称不能为空\";\n        return false;\n    }\n\n    if (!isTaskExists(taskName))\n    {\n        qWarning() << \"任务不存在, 无需删除\" << taskName;\n        return true;\n    }\n\n    QStringList arguments;\n    arguments << \"/delete\"\n              << \"/f\"\n              << \"/tn\" << taskName;\n\n    return execute(arguments);\n}\n\nbool TaskScheduler::enableTask(const QString &taskName, bool enable)\n{\n    if (!isTaskExists(taskName))\n    {\n        qWarning() << \"任务不存在:\" << taskName;\n        return false;\n    }\n\n    QStringList arguments;\n    arguments << \"/change\"\n              << \"/tn\" << taskName << (enable ? \"/enable\" : \"/disable\");\n    return execute(arguments);\n}\n\nbool TaskScheduler::isTaskExists(const QString &taskName)\n{\n    QStringList arguments;\n    arguments << \"/query\" << \"/tn\" << taskName;\n\n    return execute(arguments);\n}\n\nbool TaskScheduler::execute(const QStringList &arguments)\n{\n    QProcess process;\n    process.setProgram(\"schtasks\");\n    process.setArguments(arguments);\n\n    const int timeout = 10000;\n    process.start();\n    if (!process.waitForStarted(timeout))\n    {\n        qWarning() << \"无法运行:\" << process.errorString();\n        return false;\n    }\n\n    if (!process.waitForFinished(timeout))\n    {\n        qWarning() << \"执行超时\";\n        process.kill();\n        return false;\n    }\n\n    int exitcode = process.exitCode();\n    QString stdout_ = QString::fromLocal8Bit(process.readAllStandardOutput());\n    QString stderr_ = QString::fromLocal8Bit(process.readAllStandardError());\n\n    if (exitcode == 0)\n    {\n        qDebug() << \"执行成功:\" << arguments;\n        qDebug() << \"输出:\" << stdout_;\n        return true;\n    }\n    else\n    {\n        qDebug() << \"执行失败:\" << arguments;\n        qDebug() << \"错误输出:\" << stderr_;\n        qDebug() << \"标准输出:\" << stdout_;\n        return false;\n    }\n}\n\nbool TaskScheduler::createStartupShortcut(const QString &taskName,\n                                          const QString &executablePath)\n{\n    QString home = QDir::homePath();\n    QString startupDir =\n        home +\n        \"\\\\AppData\\\\Roaming\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Startup\";\n    QString shortcutPath = QDir(startupDir).absoluteFilePath(taskName + \".lnk\");\n    QString arguments = \"--minimize-to-tray\";\n\n    QString psScript =\n        QString(\"$WScriptShell = New-Object -ComObject WScript.Shell; \"\n                \"$Shortcut = $WScriptShell.CreateShortcut('%1'); \"\n                \"$Shortcut.TargetPath = '%2'; \"\n                \"$Shortcut.Arguments = '%3'; \"\n                \"$Shortcut.Description = '%4'; \"\n                \"$Shortcut.Save()\")\n        .arg(shortcutPath, executablePath, arguments,\n             QString(\"启动 %1\").arg(QFileInfo(executablePath).baseName()));\n\n    return executePs(psScript);\n}\n\nbool TaskScheduler::deleteStartupShortcut(const QString &taskName)\n{\n    QString home = QDir::homePath();\n    QString startupDir =\n        home + \"\\\\AppData\\\\Roaming\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Startup\";\n    QString shortcutPath = QDir(startupDir).absoluteFilePath(taskName + \".lnk\");\n\n    QString psScript = QString(\"Remove-Item '%1' -Force\").arg(shortcutPath);\n\n    return executePs(psScript);\n}\n\nbool TaskScheduler::isStartupShortcutExists(const QString &taskName)\n{\n    QString home = QDir::homePath();\n    QString startupDir =\n        home +\n        \"\\\\AppData\\\\Roaming\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Startup\";\n    QString shortcutPath = QDir(startupDir).absoluteFilePath(taskName + \".lnk\");\n\n    return QFile::exists(shortcutPath);\n}\n\nbool TaskScheduler::executePs(const QString &psScript)\n{\n    QProcess process;\n    process.setProgram(\"powershell\");\n    process.setArguments({\"-ExecutionPolicy\", \"Bypass\", \"-Command\", psScript});\n\n    process.start();\n    if (!process.waitForStarted(5000))\n    {\n        qDebug() << \"PowerShell 启动失败:\" << process.errorString();\n        return false;\n    }\n\n    if (process.waitForFinished(5000) && process.exitCode() == 0)\n    {\n        qDebug() << \"PowerShell 执行成功\";\n        return true;\n    }\n    else\n    {\n        QString error = QString::fromLocal8Bit(process.readAllStandardError());\n        qDebug() << \"PowerShell 执行失败:\" << error;\n    }\n\n    return false;\n}\n"
  },
  {
    "path": "taskscheduler.h",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#ifndef TASKSCHEDULER_H\n#define TASKSCHEDULER_H\n\n#include <windows.h>\n#include <QObject>\n#include <QString>\nclass TaskScheduler : public QObject\n{\n    Q_OBJECT\n  public:\n    explicit TaskScheduler(QObject *parent = nullptr);\n    ~TaskScheduler();\n\n    bool createStartupTask(const QString &taskName,\n                           const QString &executablePath);\n    bool deleteTask(const QString &taskName);\n    bool enableTask(const QString &taskName, bool enable);\n    bool isTaskExists(const QString &taskName);\n    bool execute(const QStringList &arguments);\n\n    bool createStartupShortcut(const QString &taskName,\n                               const QString &executablePath);\n    bool deleteStartupShortcut(const QString &taskName);\n    bool isStartupShortcutExists(const QString &taskName);\n    bool executePs(const QString &psScript);\n};\n\n#endif // TASKSCHEDULER_H\n"
  },
  {
    "path": "themeutils.cpp",
    "content": "/*\r\n * OpenSpeedy - Open Source Game Speed Controller\r\n * Copyright (C) 2025 Game1024\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\r\n */\r\n#include \"themeutils.h\"\r\n#include <QStyleFactory>\r\n#include <QPalette>\r\n#include <QColor>\r\n#include <QSettings>\r\n#include <QApplication>\r\n#include <QStyle>\r\n\r\nvoid ThemeUtils::applyTheme(Theme theme)\r\n{\r\n    if (theme == System) {\r\n        if (isSystemDarkMode()) {\r\n            setDarkTheme();\r\n        } else {\r\n            setLightTheme();\r\n        }\r\n    } else if (theme == Dark) {\r\n        setDarkTheme();\r\n    } else {\r\n        setLightTheme();\r\n    }\r\n}\r\n\r\nvoid ThemeUtils::setDarkTheme()\r\n{\r\n    QApplication* app = static_cast<QApplication*>(QApplication::instance());\r\n    if (!app) return;\r\n\r\n    // 深色模式必须使用 Fusion 风格，因为 WindowsVista 风格强制使用浅色控件\r\n    app->setStyle(QStyleFactory::create(\"Fusion\"));\r\n\r\n    QPalette darkPalette;\r\n    QColor darkColor = QColor(45, 45, 45);\r\n    QColor disabledColor = QColor(127, 127, 127);\r\n\r\n    darkPalette.setColor(QPalette::Window, darkColor);\r\n    darkPalette.setColor(QPalette::WindowText, Qt::white);\r\n    darkPalette.setColor(QPalette::Base, QColor(18, 18, 18));\r\n    darkPalette.setColor(QPalette::AlternateBase, darkColor);\r\n    darkPalette.setColor(QPalette::ToolTipBase, Qt::white);\r\n    darkPalette.setColor(QPalette::ToolTipText, Qt::white);\r\n    darkPalette.setColor(QPalette::Text, Qt::white);\r\n    darkPalette.setColor(QPalette::Disabled, QPalette::Text, disabledColor);\r\n    darkPalette.setColor(QPalette::Button, darkColor);\r\n    darkPalette.setColor(QPalette::ButtonText, Qt::white);\r\n    darkPalette.setColor(QPalette::Disabled, QPalette::ButtonText, disabledColor);\r\n    darkPalette.setColor(QPalette::BrightText, Qt::red);\r\n    darkPalette.setColor(QPalette::Link, QColor(42, 130, 218));\r\n\r\n    darkPalette.setColor(QPalette::Highlight, QColor(42, 130, 218));\r\n    darkPalette.setColor(QPalette::HighlightedText, Qt::black);\r\n    darkPalette.setColor(QPalette::Disabled, QPalette::HighlightedText, disabledColor);\r\n\r\n    app->setPalette(darkPalette);\r\n    app->setStyleSheet(\"QToolTip { color: #ffffff; background-color: #2a82da; border: 1px solid white; }\");\r\n}\r\n\r\nvoid ThemeUtils::setLightTheme()\r\n{\r\n    QApplication* app = static_cast<QApplication*>(QApplication::instance());\r\n    if (!app) return;\r\n\r\n    // 浅色模式优先使用 WindowsVista (原生) 风格\r\n    QStyle* style = QStyleFactory::create(\"Fusion\");\r\n    if (!style) {\r\n        style = QStyleFactory::create(\"Windows\");\r\n    }\r\n    app->setStyle(style);\r\n    \r\n    // 恢复默认调色板\r\n    app->setPalette(style->standardPalette());\r\n    \r\n    // 清除全局样式表\r\n    app->setStyleSheet(\"\");\r\n}\r\n\r\nbool ThemeUtils::isSystemDarkMode()\r\n{\r\n#ifdef Q_OS_WIN\r\n    QSettings settings(\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Themes\\\\Personalize\", QSettings::NativeFormat);\r\n    return settings.value(\"AppsUseLightTheme\", 1).toInt() == 0;\r\n#else\r\n    return false; \r\n#endif\r\n}\r\n"
  },
  {
    "path": "themeutils.h",
    "content": "/*\r\n * OpenSpeedy - Open Source Game Speed Controller\r\n * Copyright (C) 2025 Game1024\r\n *\r\n * This program is free software: you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation, either version 3 of the License, or\r\n * (at your option) any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\r\n */\r\n#ifndef THEMEUTILS_H\r\n#define THEMEUTILS_H\r\n\r\n#include <QApplication>\r\n\r\nclass ThemeUtils\r\n{\r\npublic:\r\n    enum Theme {\r\n        Light,\r\n        Dark,\r\n        System\r\n    };\r\n\r\n    static void applyTheme(Theme theme);\r\n    static void setDarkTheme();\r\n    static void setLightTheme();\r\n    static bool isSystemDarkMode();\r\n};\r\n\r\n#endif // THEMEUTILS_H\r\n"
  },
  {
    "path": "third_party/minhook/.editorconfig",
    "content": "# EditorConfig is awesome: http://EditorConfig.org\n\n# top-most EditorConfig file\nroot = true\n\n# Windows-style newlines with a newline ending every file\n[*]\nend_of_line = crlf\ninsert_final_newline = true\n\n# 4 space indentation\n[*.{c,h,def}]\nindent_style = space\nindent_size = 4\n\n# Trim trailing whitespaces\n[*.{c,h,def,txt}]\ntrim_trailing_whitespace = true\n\n# UTF-8 with BOM\n[*.{c,h,def,txt}]\ncharset=utf-8-bom\n\n# C/C++ code formatting\n[*.{c,h}]\ncpp_space_pointer_reference_alignment = right\n"
  },
  {
    "path": "third_party/minhook/.github/workflows/msbuild.yml",
    "content": "name: Build\n\non:\n  workflow_dispatch:\n  push:\n    branches: [ \"master\" ]\n\nenv:\n  # Path to the solution file relative to the root of the project.\n  SOLUTION_FILE_PATH: build/VC17/MinHookVC17.sln\n\n  # Configuration type to build.\n  # You can convert this to a build matrix if you need coverage of multiple configuration types.\n  # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix\n  BUILD_CONFIGURATION: Release\n\njobs:\n  build:\n    runs-on: windows-latest\n\n    steps:\n      - uses: actions/checkout@v4\n\n      - name: Add MSBuild to PATH\n        uses: microsoft/setup-msbuild@v2\n\n      - name: Build Win32\n        # Add additional options to the MSBuild command line here (like platform or verbosity level).\n        # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference\n        run: msbuild /m /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=\"Win32\" ${{ env.SOLUTION_FILE_PATH }}\n\n      - name: Build x64\n        # Add additional options to the MSBuild command line here (like platform or verbosity level).\n        # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference\n        run: msbuild /m /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=\"x64\" ${{ env.SOLUTION_FILE_PATH }}\n\n      - name: Collect artifacts\n        shell: bash\n        run: |\n          mkdir \"${{ runner.temp }}/artifacts\"\n          mv \"build/VC17/bin/${{ env.BUILD_CONFIGURATION }}\" \"${{ runner.temp }}/artifacts/bin\"\n          mv \"build/VC17/lib/${{ env.BUILD_CONFIGURATION }}\" \"${{ runner.temp }}/artifacts/lib\"\n          cp -r include \"${{ runner.temp }}/artifacts/include\"\n\n      - name: Package bin\n        uses: actions/upload-artifact@v4\n        with:\n          name: MinHook_bin\n          path: |\n            ${{ runner.temp }}/artifacts/bin/\n            ${{ runner.temp }}/artifacts/include/\n\n      - name: Package lib\n        uses: actions/upload-artifact@v4\n        with:\n          name: MinHook_lib\n          path: |\n            ${{ runner.temp }}/artifacts/lib/\n            ${{ runner.temp }}/artifacts/include/\n"
  },
  {
    "path": "third_party/minhook/.gitignore",
    "content": "#OS junk files\n[Tt]humbs.db\n*.DS_Store\n\n#Visual Studio files\n*.[Oo]bj\n*.user\n*.aps\n*.pch\n*.vspscc\n*.vssscc\n*_i.c\n*_p.c\n*.ncb\n*.suo\n*.tlb\n*.tlh\n*.bak\n*.[Cc]ache\n*.ilk\n*.log\n*.sbr\n*.sdf\n*.opensdf\n*.unsuccessfulbuild\nipch/\nobj/\n[Ll]ib\n[Bb]in\n[Dd]ebug*/\n[Rr]elease*/\nAnkh.NoLoad\n*.VC.db\n.vs/\n\n#GCC files\n*.o\n*.d\n*.res\n*.dll\n*.a\n\n#Visual Studio Code files\n.vscode/\n"
  },
  {
    "path": "third_party/minhook/AUTHORS.txt",
    "content": "Tsuda Kageyu <tsuda.kageyu@gmail.com>\n Creator, maintainer\n\nMichael Maltsev <leahcimmar@gmail.com>\n Added \"Queue\" functions. A lot of bug fixes.\n\nAndrey Unis <uniskz@gmail.com>\n Rewrote the hook engine in plain C.\n"
  },
  {
    "path": "third_party/minhook/CMakeLists.txt",
    "content": "#  MinHook - The Minimalistic API Hooking Library for x64/x86\n#  Copyright (C) 2009-2017 Tsuda Kageyu.\n#  All rights reserved.\n#\n#  Redistribution and use in source and binary forms, with or without\n#  modification, are permitted provided that the following conditions\n#  are met:\n#\n#   1. Redistributions of source code must retain the above copyright\n#      notice, this list of conditions and the following disclaimer.\n#   2. Redistributions in binary form must reproduce the above copyright\n#      notice, this list of conditions and the following disclaimer in the\n#      documentation and/or other materials provided with the distribution.\n#\n#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n#  \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n#  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\n#  PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER\n#  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n#  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n#  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n#  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n#  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n#  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\ncmake_minimum_required(VERSION 3.0...3.5)\n\nproject(minhook LANGUAGES C)\n\ninclude(CMakePackageConfigHelpers)\n\nset(MINHOOK_MAJOR_VERSION 1)\nset(MINHOOK_MINOR_VERSION 3)\nset(MINHOOK_PATCH_VERSION 3)\nset(MINHOOK_VERSION ${MINHOOK_MAJOR_VERSION}.${MINHOOK_MINOR_VERSION}.${MINHOOK_PATCH_VERSION})\n\n################\n#    BUILD     # \n################\n\noption(BUILD_SHARED_LIBS \"build shared version\" OFF)\n\nset(SOURCES_MINHOOK \n  \"src/buffer.c\"\n  \"src/hook.c\"\n  \"src/trampoline.c\"\n)\n\nif(CMAKE_SIZEOF_VOID_P EQUAL 8)\n  set(SOURCES_HDE \"src/hde/hde64.c\")\nelse()\n  set(SOURCES_HDE \"src/hde/hde32.c\")\nendif()\n\nif(BUILD_SHARED_LIBS)\n  set(RESOURCES \n    \"dll_resources/MinHook.rc\"\n    \"dll_resources/MinHook.def\"\n  )\nendif()\n\nadd_library(minhook ${SOURCES_MINHOOK} ${SOURCES_HDE} ${RESOURCES})\n\ntarget_include_directories(minhook PUBLIC\n  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/>\n  $<INSTALL_INTERFACE:include>\n)\n\ntarget_include_directories(minhook PRIVATE \"src/\")\ntarget_include_directories(minhook PRIVATE \"src/hde/\")\n\nif(WIN32)\n  set_target_properties(minhook PROPERTIES PREFIX \"\")\n  if(CMAKE_SIZEOF_VOID_P EQUAL 8)   \n    set_target_properties(minhook PROPERTIES DEBUG_POSTFIX \".x64d\")\n    set_target_properties(minhook PROPERTIES RELEASE_POSTFIX \".x64\")\n    set_target_properties(minhook PROPERTIES RELWITHDEBINFO_POSTFIX \".x64\")\n    set_target_properties(minhook PROPERTIES MINSIZEREL_POSTFIX \".x64\")\n  else()\n    set_target_properties(minhook PROPERTIES DEBUG_POSTFIX \".x32d\")\n    set_target_properties(minhook PROPERTIES RELEASE_POSTFIX \".x32\")\n    set_target_properties(minhook PROPERTIES RELWITHDEBINFO_POSTFIX \".x32\")\n    set_target_properties(minhook PROPERTIES MINSIZEREL_POSTFIX \".x32\")\n  endif()\nelse()\n  set_target_properties(minhook PROPERTIES PREFIX \"lib\")\n  set_target_properties(minhook PROPERTIES POSTFIX \"\")\n  set_target_properties(minhook PROPERTIES DEBUG_POSTFIX \"d\")\nendif()\n\n################\n# CMAKE CONFIG # \n################\n\nconfigure_package_config_file(\n    \"cmake/minhook-config.cmake.in\"\n    \"minhook-config.cmake\"\n  INSTALL_DESTINATION \n    \"lib/minhook\"\n)\n\nwrite_basic_package_version_file(\n  \"minhook-config-version.cmake\"\nVERSION \n  ${MINHOOK_VERSION}\nCOMPATIBILITY\n  AnyNewerVersion\n)\n\ninstall(\n  FILES \n    \"${CMAKE_CURRENT_BINARY_DIR}/minhook-config.cmake\"\n    \"${CMAKE_CURRENT_BINARY_DIR}/minhook-config-version.cmake\"\n  DESTINATION \n    \"lib/minhook\"\n)\n\n###################\n#     INSTALL     #\n###################\n\ninstall(TARGETS minhook\n        EXPORT minhook-targets\n        RUNTIME DESTINATION \"bin\"\n        ARCHIVE DESTINATION \"lib\"\n        LIBRARY DESTINATION \"lib\"\n)\n\ninstall(\n  EXPORT\n    minhook-targets\n  NAMESPACE \n    minhook::\n  DESTINATION \n    \"lib/minhook\"\n)\n\ninstall(\n  DIRECTORY include DESTINATION .\n)\n"
  },
  {
    "path": "third_party/minhook/LICENSE.txt",
    "content": "﻿MinHook - The Minimalistic API Hooking Library for x64/x86\nCopyright (C) 2009-2017 Tsuda Kageyu.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n 1. Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the\n    documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\nTO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\nPARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER\nOR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\nEXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\nPROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n================================================================================\nPortions of this software are Copyright (c) 2008-2009, Vyacheslav Patkov.\n================================================================================\nHacker Disassembler Engine 32 C\nCopyright (c) 2008-2009, Vyacheslav Patkov.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n 1. Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the\n    documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\nTO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\nPARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\nEXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\nPROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n-------------------------------------------------------------------------------\nHacker Disassembler Engine 64 C\nCopyright (c) 2008-2009, Vyacheslav Patkov.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n 1. Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the\n    documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\nTO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\nPARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\nEXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\nPROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
  },
  {
    "path": "third_party/minhook/README.md",
    "content": "# MinHook\n\n[![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg)](https://opensource.org/licenses/BSD-2-Clause)\n\nThe Minimalistic x86/x64 API Hooking Library for Windows\n\nhttp://www.codeproject.com/KB/winsdk/LibMinHook.aspx\n\n### Version history\n\n- **v1.3.4 - 28 Mar 2025**\n  * Improved error handling for enumerating and suspending threads.\n  * Visual Studio 2022 support.\n  * CMake support.\n  * Fixed compilation with Clang.\n  * Fixed compilation as C++ code.\n\n- **v1.3.3 - 8 Jan 2017**\n  * Added a helper function ```MH_CreateHookApiEx```. (Thanks to asm256)\n  * Support Visual Studio 2017 RC.\n\n- **v1.3.2.1 - 9 Nov 2015**  (Nuget package only)\n  * Fixed an insufficient support for Visual Studio 2015.\n\n- **v1.3.2 - 1 Nov 2015**\n  * Support Visual Studio 2015.\n  * Support MinGW.\n\n- **v1.3.2-beta3 - 21 Jul 2015**  (Nuget package only)\n  * Support MinGW. (Experimental)\n\n- **v1.3.2-beta2 - 18 May 2015**\n  * Fixed some subtle bugs. (Thanks to RaMMicHaeL)\n  * Added a helper function ```MH_StatusToString```. (Thanks to Jan Klass)\n\n- **v1.3.2-beta - 12 May 2015**\n  * Fixed a possible thread deadlock in x64 mode. (Thanks to Aleh Kazakevich)\n  * Reduced the footprint a little more.\n  * Support Visual Studio 2015 RC. (Experimental)\n\n- **v1.3.1.1 - 7 Apr 2015**  (Nuget package only)\n  * Support for WDK8.0 and 8.1.\n\n- **v1.3.1 - 19 Mar 2015**\n  * No major changes from v1.3.1-beta.\n\n- **v1.3.1-beta - 11 Mar 2015**\n  * Added a helper function ```MH_CreateHookApi```. (Thanks to uniskz).\n  * Fixed a false memory leak reported by some tools.\n  * Fixed a degradated compatibility issue.\n\n- **v1.3 - 13 Sep 2014**\n  * No major changes from v1.3-beta3.\n\n- **v1.3-beta3 - 31 Jul 2014**\n  * Fixed some small bugs.\n  * Improved the memory management.\n\n- **v1.3-beta2 - 21 Jul 2014**\n  * Changed the parameters to Windows-friendly types. (void* to LPVOID)\n  * Fixed some small bugs.\n  * Reorganized the source files.\n  * Reduced the footprint a little more.\n\n- **v1.3-beta - 17 Jul 2014**\n  * Rewrote in plain C to reduce the footprint and memory usage. (suggested by Andrey Unis)\n  * Simplified the overall code base to make it more readable and maintainable.\n  * Changed the license from 3-clause to 2-clause BSD License.\n\n- **v1.2 - 28 Sep 2013**\n  * Removed boost dependency ([jarredholman](https://github.com/jarredholman/minhook)).\n  * Fixed a small bug in the GetRelativeBranchDestination function ([pillbug99](http://www.codeproject.com/Messages/4058892/Small-Bug-Found.aspx)).\n  * Added the ```MH_RemoveHook``` function, which removes a hook created with the ```MH_CreateHook``` function.\n  * Added the following functions to enable or disable multiple hooks in one go: ```MH_QueueEnableHook```, ```MH_QueueDisableHook```, ```MH_ApplyQueued```. This is the preferred way of handling multiple hooks as every call to `MH_EnableHook` or `MH_DisableHook` suspends and resumes all threads.\n  * Made the functions ```MH_EnableHook``` and ```MH_DisableHook``` enable/disable all created hooks when the ```MH_ALL_HOOKS``` parameter is passed. This, too, is an efficient way of handling multiple hooks.\n  * If the target function is too small to be patched with a jump, MinHook tries to place the jump above the function. If that fails as well, the ```MH_CreateHook``` function returns ```MH_ERROR_UNSUPPORTED_FUNCTION```. This fixes an issue of hooking the LoadLibraryExW function on Windows 7 x64 ([reported by Obble](http://www.codeproject.com/Messages/4578613/Re-Bug-LoadLibraryExW-hook-fails-on-windows-2008-r.aspx)).\n\n- **v1.1 - 26 Nov 2009**\n  * Changed the interface to create a hook and a trampoline function in one go to prevent the detour function from being called before the trampoline function is created. ([reported by xliqz](http://www.codeproject.com/Messages/3280374/Unsafe.aspx))\n  * Shortened the function names from ```MinHook_*``` to ```MH_*``` to make them handier.\n\n- **v1.0 - 22 Nov 2009**\n  * Initial release.\n\n### Building MinHook - Using vcpkg\n\nYou can download and install MinHook using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:\n\n    git clone https://github.com/microsoft/vcpkg\n    .\\vcpkg\\bootstrap-vcpkg.bat\n    .\\vcpkg\\vcpkg integrate install\n    .\\vcpkg\\vcpkg install minhook\n\nThe MinHook port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.\n"
  },
  {
    "path": "third_party/minhook/build/MinGW/make.bat",
    "content": "windres -i ../../dll_resources/MinHook.rc -o MinHook_rc.o && dllwrap --driver-name g++ -o MinHook.dll -masm=intel --def ../../dll_resources/MinHook.def -Wl,-enable-stdcall-fixup -Wall MinHook_rc.o ../../src/*.c ../../src/HDE/*.c -I../../include -I../../src -Werror -std=c++11 -s -static-libgcc -static-libstdc++|| pause"
  },
  {
    "path": "third_party/minhook/build/MinGW/make.sh",
    "content": "x86_64-w64-mingw32-windres -i ../../dll_resources/MinHook.rc -o MinHook_rc.o &&\nx86_64-w64-mingw32-dllwrap -o MinHook.dll -masm=intel --def ../../dll_resources/MinHook.def -Wl,-enable-stdcall-fixup -Wall MinHook_rc.o ../../src/*.c ../../src/hde/*.c -I../../include -I../../src -Werror -s -static-libgcc -static-libstdc++\n"
  },
  {
    "path": "third_party/minhook/cmake/minhook-config.cmake.in",
    "content": "#  MinHook - The Minimalistic API Hooking Library for x64/x86\n#  Copyright (C) 2009-2017 Tsuda Kageyu.\n#  All rights reserved.\n#\n#  Redistribution and use in source and binary forms, with or without\n#  modification, are permitted provided that the following conditions\n#  are met:\n#\n#   1. Redistributions of source code must retain the above copyright\n#      notice, this list of conditions and the following disclaimer.\n#   2. Redistributions in binary form must reproduce the above copyright\n#      notice, this list of conditions and the following disclaimer in the\n#      documentation and/or other materials provided with the distribution.\n#\n#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n#  \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n#  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\n#  PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER\n#  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n#  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n#  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n#  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n#  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n#  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nset(MINHOOK_MAJOR_VERSION \"@MINHOOK_MAJOR_VERSION@\")\nset(MINHOOK_MINOR_VERSION \"@MINHOOK_MINOR_VERSION@\")\nset(MINHOOK_PATCH_VERSION \"@MINHOOK_PATCH_VERSION@\")\nset(MINHOOK_VERSION \"@MINHOOK_VERSION@\")\n\n@PACKAGE_INIT@\n \nset(MINHOOK_FOUND ON)\n\nset_and_check(MINHOOK_INCLUDE_DIRS  \"${PACKAGE_PREFIX_DIR}/include/\")\nset_and_check(MINHOOK_LIBRARY_DIRS  \"${PACKAGE_PREFIX_DIR}/lib\")\n \ninclude(\"${PACKAGE_PREFIX_DIR}/lib/minhook/minhook-targets.cmake\")\n"
  },
  {
    "path": "third_party/minhook/dll_resources/MinHook.def",
    "content": "EXPORTS\n    MH_Initialize\n    MH_Uninitialize\n\n    MH_CreateHook\n    MH_CreateHookApi\n    MH_CreateHookApiEx\n    MH_RemoveHook\n    MH_EnableHook\n    MH_DisableHook\n    MH_QueueEnableHook\n    MH_QueueDisableHook\n    MH_ApplyQueued\n    MH_StatusToString\n"
  },
  {
    "path": "third_party/minhook/include/MinHook.h",
    "content": "/*\n *  MinHook - The Minimalistic API Hooking Library for x64/x86\n *  Copyright (C) 2009-2017 Tsuda Kageyu.\n *  All rights reserved.\n *\n *  Redistribution and use in source and binary forms, with or without\n *  modification, are permitted provided that the following conditions\n *  are met:\n *\n *   1. Redistributions of source code must retain the above copyright\n *      notice, this list of conditions and the following disclaimer.\n *   2. Redistributions in binary form must reproduce the above copyright\n *      notice, this list of conditions and the following disclaimer in the\n *      documentation and/or other materials provided with the distribution.\n *\n *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n *  \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\n *  PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER\n *  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n *  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#pragma once\n\n#if !(defined _M_IX86) && !(defined _M_X64) && !(defined __i386__) && !(defined __x86_64__)\n    #error MinHook supports only x86 and x64 systems.\n#endif\n\n#include <windows.h>\n\n// MinHook Error Codes.\ntypedef enum MH_STATUS\n{\n    // Unknown error. Should not be returned.\n    MH_UNKNOWN = -1,\n\n    // Successful.\n    MH_OK = 0,\n\n    // MinHook is already initialized.\n    MH_ERROR_ALREADY_INITIALIZED,\n\n    // MinHook is not initialized yet, or already uninitialized.\n    MH_ERROR_NOT_INITIALIZED,\n\n    // The hook for the specified target function is already created.\n    MH_ERROR_ALREADY_CREATED,\n\n    // The hook for the specified target function is not created yet.\n    MH_ERROR_NOT_CREATED,\n\n    // The hook for the specified target function is already enabled.\n    MH_ERROR_ENABLED,\n\n    // The hook for the specified target function is not enabled yet, or already\n    // disabled.\n    MH_ERROR_DISABLED,\n\n    // The specified pointer is invalid. It points the address of non-allocated\n    // and/or non-executable region.\n    MH_ERROR_NOT_EXECUTABLE,\n\n    // The specified target function cannot be hooked.\n    MH_ERROR_UNSUPPORTED_FUNCTION,\n\n    // Failed to allocate memory.\n    MH_ERROR_MEMORY_ALLOC,\n\n    // Failed to change the memory protection.\n    MH_ERROR_MEMORY_PROTECT,\n\n    // The specified module is not loaded.\n    MH_ERROR_MODULE_NOT_FOUND,\n\n    // The specified function is not found.\n    MH_ERROR_FUNCTION_NOT_FOUND\n}\nMH_STATUS;\n\n// Can be passed as a parameter to MH_EnableHook, MH_DisableHook,\n// MH_QueueEnableHook or MH_QueueDisableHook.\n#define MH_ALL_HOOKS NULL\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n    // Initialize the MinHook library. You must call this function EXACTLY ONCE\n    // at the beginning of your program.\n    MH_STATUS WINAPI MH_Initialize(VOID);\n\n    // Uninitialize the MinHook library. You must call this function EXACTLY\n    // ONCE at the end of your program.\n    MH_STATUS WINAPI MH_Uninitialize(VOID);\n\n    // Creates a hook for the specified target function, in disabled state.\n    // Parameters:\n    //   pTarget     [in]  A pointer to the target function, which will be\n    //                     overridden by the detour function.\n    //   pDetour     [in]  A pointer to the detour function, which will override\n    //                     the target function.\n    //   ppOriginal  [out] A pointer to the trampoline function, which will be\n    //                     used to call the original target function.\n    //                     This parameter can be NULL.\n    MH_STATUS WINAPI MH_CreateHook(LPVOID pTarget, LPVOID pDetour, LPVOID *ppOriginal);\n\n    // Creates a hook for the specified API function, in disabled state.\n    // Parameters:\n    //   pszModule   [in]  A pointer to the loaded module name which contains the\n    //                     target function.\n    //   pszProcName [in]  A pointer to the target function name, which will be\n    //                     overridden by the detour function.\n    //   pDetour     [in]  A pointer to the detour function, which will override\n    //                     the target function.\n    //   ppOriginal  [out] A pointer to the trampoline function, which will be\n    //                     used to call the original target function.\n    //                     This parameter can be NULL.\n    MH_STATUS WINAPI MH_CreateHookApi(\n        LPCWSTR pszModule, LPCSTR pszProcName, LPVOID pDetour, LPVOID *ppOriginal);\n\n    // Creates a hook for the specified API function, in disabled state.\n    // Parameters:\n    //   pszModule   [in]  A pointer to the loaded module name which contains the\n    //                     target function.\n    //   pszProcName [in]  A pointer to the target function name, which will be\n    //                     overridden by the detour function.\n    //   pDetour     [in]  A pointer to the detour function, which will override\n    //                     the target function.\n    //   ppOriginal  [out] A pointer to the trampoline function, which will be\n    //                     used to call the original target function.\n    //                     This parameter can be NULL.\n    //   ppTarget    [out] A pointer to the target function, which will be used\n    //                     with other functions.\n    //                     This parameter can be NULL.\n    MH_STATUS WINAPI MH_CreateHookApiEx(\n        LPCWSTR pszModule, LPCSTR pszProcName, LPVOID pDetour, LPVOID *ppOriginal, LPVOID *ppTarget);\n\n    // Removes an already created hook.\n    // Parameters:\n    //   pTarget [in] A pointer to the target function.\n    MH_STATUS WINAPI MH_RemoveHook(LPVOID pTarget);\n\n    // Enables an already created hook.\n    // Parameters:\n    //   pTarget [in] A pointer to the target function.\n    //                If this parameter is MH_ALL_HOOKS, all created hooks are\n    //                enabled in one go.\n    MH_STATUS WINAPI MH_EnableHook(LPVOID pTarget);\n\n    // Disables an already created hook.\n    // Parameters:\n    //   pTarget [in] A pointer to the target function.\n    //                If this parameter is MH_ALL_HOOKS, all created hooks are\n    //                disabled in one go.\n    MH_STATUS WINAPI MH_DisableHook(LPVOID pTarget);\n\n    // Queues to enable an already created hook.\n    // Parameters:\n    //   pTarget [in] A pointer to the target function.\n    //                If this parameter is MH_ALL_HOOKS, all created hooks are\n    //                queued to be enabled.\n    MH_STATUS WINAPI MH_QueueEnableHook(LPVOID pTarget);\n\n    // Queues to disable an already created hook.\n    // Parameters:\n    //   pTarget [in] A pointer to the target function.\n    //                If this parameter is MH_ALL_HOOKS, all created hooks are\n    //                queued to be disabled.\n    MH_STATUS WINAPI MH_QueueDisableHook(LPVOID pTarget);\n\n    // Applies all queued changes in one go.\n    MH_STATUS WINAPI MH_ApplyQueued(VOID);\n\n    // Translates the MH_STATUS to its name as a string.\n    const char *WINAPI MH_StatusToString(MH_STATUS status);\n\n#ifdef __cplusplus\n}\n#endif\n"
  },
  {
    "path": "third_party/minhook/src/buffer.c",
    "content": "﻿/*\n *  MinHook - The Minimalistic API Hooking Library for x64/x86\n *  Copyright (C) 2009-2017 Tsuda Kageyu.\n *  All rights reserved.\n *\n *  Redistribution and use in source and binary forms, with or without\n *  modification, are permitted provided that the following conditions\n *  are met:\n *\n *   1. Redistributions of source code must retain the above copyright\n *      notice, this list of conditions and the following disclaimer.\n *   2. Redistributions in binary form must reproduce the above copyright\n *      notice, this list of conditions and the following disclaimer in the\n *      documentation and/or other materials provided with the distribution.\n *\n *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n *  \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\n *  PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER\n *  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n *  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <windows.h>\n#include \"buffer.h\"\n\n// Size of each memory block. (= page size of VirtualAlloc)\n#define MEMORY_BLOCK_SIZE 0x1000\n\n// Max range for seeking a memory block. (= 1024MB)\n#define MAX_MEMORY_RANGE 0x40000000\n\n// Memory protection flags to check the executable address.\n#define PAGE_EXECUTE_FLAGS \\\n    (PAGE_EXECUTE | PAGE_EXECUTE_READ | PAGE_EXECUTE_READWRITE | PAGE_EXECUTE_WRITECOPY)\n\n// Memory slot.\ntypedef struct _MEMORY_SLOT\n{\n    union\n    {\n        struct _MEMORY_SLOT *pNext;\n        UINT8 buffer[MEMORY_SLOT_SIZE];\n    };\n} MEMORY_SLOT, *PMEMORY_SLOT;\n\n// Memory block info. Placed at the head of each block.\ntypedef struct _MEMORY_BLOCK\n{\n    struct _MEMORY_BLOCK *pNext;\n    PMEMORY_SLOT pFree;         // First element of the free slot list.\n    UINT usedCount;\n} MEMORY_BLOCK, *PMEMORY_BLOCK;\n\n//-------------------------------------------------------------------------\n// Global Variables:\n//-------------------------------------------------------------------------\n\n// First element of the memory block list.\nstatic PMEMORY_BLOCK g_pMemoryBlocks;\n\n//-------------------------------------------------------------------------\nVOID InitializeBuffer(VOID)\n{\n    // Nothing to do for now.\n}\n\n//-------------------------------------------------------------------------\nVOID UninitializeBuffer(VOID)\n{\n    PMEMORY_BLOCK pBlock = g_pMemoryBlocks;\n    g_pMemoryBlocks = NULL;\n\n    while (pBlock)\n    {\n        PMEMORY_BLOCK pNext = pBlock->pNext;\n        VirtualFree(pBlock, 0, MEM_RELEASE);\n        pBlock = pNext;\n    }\n}\n\n//-------------------------------------------------------------------------\n#if defined(_M_X64) || defined(__x86_64__)\nstatic LPVOID FindPrevFreeRegion(LPVOID pAddress, LPVOID pMinAddr, DWORD dwAllocationGranularity)\n{\n    ULONG_PTR tryAddr = (ULONG_PTR)pAddress;\n\n    // Round down to the allocation granularity.\n    tryAddr -= tryAddr % dwAllocationGranularity;\n\n    // Start from the previous allocation granularity multiply.\n    tryAddr -= dwAllocationGranularity;\n\n    while (tryAddr >= (ULONG_PTR)pMinAddr)\n    {\n        MEMORY_BASIC_INFORMATION mbi;\n        if (VirtualQuery((LPVOID)tryAddr, &mbi, sizeof(mbi)) == 0)\n            break;\n\n        if (mbi.State == MEM_FREE)\n            return (LPVOID)tryAddr;\n\n        if ((ULONG_PTR)mbi.AllocationBase < dwAllocationGranularity)\n            break;\n\n        tryAddr = (ULONG_PTR)mbi.AllocationBase - dwAllocationGranularity;\n    }\n\n    return NULL;\n}\n#endif\n\n//-------------------------------------------------------------------------\n#if defined(_M_X64) || defined(__x86_64__)\nstatic LPVOID FindNextFreeRegion(LPVOID pAddress, LPVOID pMaxAddr, DWORD dwAllocationGranularity)\n{\n    ULONG_PTR tryAddr = (ULONG_PTR)pAddress;\n\n    // Round down to the allocation granularity.\n    tryAddr -= tryAddr % dwAllocationGranularity;\n\n    // Start from the next allocation granularity multiply.\n    tryAddr += dwAllocationGranularity;\n\n    while (tryAddr <= (ULONG_PTR)pMaxAddr)\n    {\n        MEMORY_BASIC_INFORMATION mbi;\n        if (VirtualQuery((LPVOID)tryAddr, &mbi, sizeof(mbi)) == 0)\n            break;\n\n        if (mbi.State == MEM_FREE)\n            return (LPVOID)tryAddr;\n\n        tryAddr = (ULONG_PTR)mbi.BaseAddress + mbi.RegionSize;\n\n        // Round up to the next allocation granularity.\n        tryAddr += dwAllocationGranularity - 1;\n        tryAddr -= tryAddr % dwAllocationGranularity;\n    }\n\n    return NULL;\n}\n#endif\n\n//-------------------------------------------------------------------------\nstatic PMEMORY_BLOCK GetMemoryBlock(LPVOID pOrigin)\n{\n    PMEMORY_BLOCK pBlock;\n#if defined(_M_X64) || defined(__x86_64__)\n    ULONG_PTR minAddr;\n    ULONG_PTR maxAddr;\n\n    SYSTEM_INFO si;\n    GetSystemInfo(&si);\n    minAddr = (ULONG_PTR)si.lpMinimumApplicationAddress;\n    maxAddr = (ULONG_PTR)si.lpMaximumApplicationAddress;\n\n    // pOrigin ± 512MB\n    if ((ULONG_PTR)pOrigin > MAX_MEMORY_RANGE && minAddr < (ULONG_PTR)pOrigin - MAX_MEMORY_RANGE)\n        minAddr = (ULONG_PTR)pOrigin - MAX_MEMORY_RANGE;\n\n    if (maxAddr > (ULONG_PTR)pOrigin + MAX_MEMORY_RANGE)\n        maxAddr = (ULONG_PTR)pOrigin + MAX_MEMORY_RANGE;\n\n    // Make room for MEMORY_BLOCK_SIZE bytes.\n    maxAddr -= MEMORY_BLOCK_SIZE - 1;\n#endif\n\n    // Look the registered blocks for a reachable one.\n    for (pBlock = g_pMemoryBlocks; pBlock != NULL; pBlock = pBlock->pNext)\n    {\n#if defined(_M_X64) || defined(__x86_64__)\n        // Ignore the blocks too far.\n        if ((ULONG_PTR)pBlock < minAddr || (ULONG_PTR)pBlock >= maxAddr)\n            continue;\n#endif\n        // The block has at least one unused slot.\n        if (pBlock->pFree != NULL)\n            return pBlock;\n    }\n\n#if defined(_M_X64) || defined(__x86_64__)\n    // Alloc a new block above if not found.\n    {\n        LPVOID pAlloc = pOrigin;\n        while ((ULONG_PTR)pAlloc >= minAddr)\n        {\n            pAlloc = FindPrevFreeRegion(pAlloc, (LPVOID)minAddr, si.dwAllocationGranularity);\n            if (pAlloc == NULL)\n                break;\n\n            pBlock = (PMEMORY_BLOCK)VirtualAlloc(\n                pAlloc, MEMORY_BLOCK_SIZE, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);\n            if (pBlock != NULL)\n                break;\n        }\n    }\n\n    // Alloc a new block below if not found.\n    if (pBlock == NULL)\n    {\n        LPVOID pAlloc = pOrigin;\n        while ((ULONG_PTR)pAlloc <= maxAddr)\n        {\n            pAlloc = FindNextFreeRegion(pAlloc, (LPVOID)maxAddr, si.dwAllocationGranularity);\n            if (pAlloc == NULL)\n                break;\n\n            pBlock = (PMEMORY_BLOCK)VirtualAlloc(\n                pAlloc, MEMORY_BLOCK_SIZE, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);\n            if (pBlock != NULL)\n                break;\n        }\n    }\n#else\n    // In x86 mode, a memory block can be placed anywhere.\n    pBlock = (PMEMORY_BLOCK)VirtualAlloc(\n        NULL, MEMORY_BLOCK_SIZE, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);\n#endif\n\n    if (pBlock != NULL)\n    {\n        // Build a linked list of all the slots.\n        PMEMORY_SLOT pSlot = (PMEMORY_SLOT)pBlock + 1;\n        pBlock->pFree = NULL;\n        pBlock->usedCount = 0;\n        do\n        {\n            pSlot->pNext = pBlock->pFree;\n            pBlock->pFree = pSlot;\n            pSlot++;\n        } while ((ULONG_PTR)pSlot - (ULONG_PTR)pBlock <= MEMORY_BLOCK_SIZE - MEMORY_SLOT_SIZE);\n\n        pBlock->pNext = g_pMemoryBlocks;\n        g_pMemoryBlocks = pBlock;\n    }\n\n    return pBlock;\n}\n\n//-------------------------------------------------------------------------\nLPVOID AllocateBuffer(LPVOID pOrigin)\n{\n    PMEMORY_SLOT  pSlot;\n    PMEMORY_BLOCK pBlock = GetMemoryBlock(pOrigin);\n    if (pBlock == NULL)\n        return NULL;\n\n    // Remove an unused slot from the list.\n    pSlot = pBlock->pFree;\n    pBlock->pFree = pSlot->pNext;\n    pBlock->usedCount++;\n#ifdef _DEBUG\n    // Fill the slot with INT3 for debugging.\n    memset(pSlot, 0xCC, sizeof(MEMORY_SLOT));\n#endif\n    return pSlot;\n}\n\n//-------------------------------------------------------------------------\nVOID FreeBuffer(LPVOID pBuffer)\n{\n    PMEMORY_BLOCK pBlock = g_pMemoryBlocks;\n    PMEMORY_BLOCK pPrev = NULL;\n    ULONG_PTR pTargetBlock = ((ULONG_PTR)pBuffer / MEMORY_BLOCK_SIZE) * MEMORY_BLOCK_SIZE;\n\n    while (pBlock != NULL)\n    {\n        if ((ULONG_PTR)pBlock == pTargetBlock)\n        {\n            PMEMORY_SLOT pSlot = (PMEMORY_SLOT)pBuffer;\n#ifdef _DEBUG\n            // Clear the released slot for debugging.\n            memset(pSlot, 0x00, sizeof(MEMORY_SLOT));\n#endif\n            // Restore the released slot to the list.\n            pSlot->pNext = pBlock->pFree;\n            pBlock->pFree = pSlot;\n            pBlock->usedCount--;\n\n            // Free if unused.\n            if (pBlock->usedCount == 0)\n            {\n                if (pPrev)\n                    pPrev->pNext = pBlock->pNext;\n                else\n                    g_pMemoryBlocks = pBlock->pNext;\n\n                VirtualFree(pBlock, 0, MEM_RELEASE);\n            }\n\n            break;\n        }\n\n        pPrev = pBlock;\n        pBlock = pBlock->pNext;\n    }\n}\n\n//-------------------------------------------------------------------------\nBOOL IsExecutableAddress(LPVOID pAddress)\n{\n    MEMORY_BASIC_INFORMATION mi;\n    VirtualQuery(pAddress, &mi, sizeof(mi));\n\n    return (mi.State == MEM_COMMIT && (mi.Protect & PAGE_EXECUTE_FLAGS));\n}\n"
  },
  {
    "path": "third_party/minhook/src/buffer.h",
    "content": "﻿/*\n *  MinHook - The Minimalistic API Hooking Library for x64/x86\n *  Copyright (C) 2009-2017 Tsuda Kageyu.\n *  All rights reserved.\n *\n *  Redistribution and use in source and binary forms, with or without\n *  modification, are permitted provided that the following conditions\n *  are met:\n *\n *   1. Redistributions of source code must retain the above copyright\n *      notice, this list of conditions and the following disclaimer.\n *   2. Redistributions in binary form must reproduce the above copyright\n *      notice, this list of conditions and the following disclaimer in the\n *      documentation and/or other materials provided with the distribution.\n *\n *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n *  \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\n *  PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER\n *  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n *  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#pragma once\n\n// Size of each memory slot.\n#if defined(_M_X64) || defined(__x86_64__)\n    #define MEMORY_SLOT_SIZE 64\n#else\n    #define MEMORY_SLOT_SIZE 32\n#endif\n\nVOID   InitializeBuffer(VOID);\nVOID   UninitializeBuffer(VOID);\nLPVOID AllocateBuffer(LPVOID pOrigin);\nVOID   FreeBuffer(LPVOID pBuffer);\nBOOL   IsExecutableAddress(LPVOID pAddress);\n"
  },
  {
    "path": "third_party/minhook/src/hde/hde32.c",
    "content": "﻿/*\n * Hacker Disassembler Engine 32 C\n * Copyright (c) 2008-2009, Vyacheslav Patkov.\n * All rights reserved.\n *\n */\n\n#if defined(_M_IX86) || defined(__i386__)\n\n#include <string.h>\n#include \"hde32.h\"\n#include \"table32.h\"\n\nunsigned int hde32_disasm(const void *code, hde32s *hs)\n{\n    uint8_t x, c, *p = (uint8_t *)code, cflags, opcode, pref = 0;\n    uint8_t *ht = hde32_table, m_mod, m_reg, m_rm, disp_size = 0;\n\n    memset(hs, 0, sizeof(hde32s));\n\n    for (x = 16; x; x--)\n        switch (c = *p++) {\n            case 0xf3:\n                hs->p_rep = c;\n                pref |= PRE_F3;\n                break;\n            case 0xf2:\n                hs->p_rep = c;\n                pref |= PRE_F2;\n                break;\n            case 0xf0:\n                hs->p_lock = c;\n                pref |= PRE_LOCK;\n                break;\n            case 0x26: case 0x2e: case 0x36:\n            case 0x3e: case 0x64: case 0x65:\n                hs->p_seg = c;\n                pref |= PRE_SEG;\n                break;\n            case 0x66:\n                hs->p_66 = c;\n                pref |= PRE_66;\n                break;\n            case 0x67:\n                hs->p_67 = c;\n                pref |= PRE_67;\n                break;\n            default:\n                goto pref_done;\n        }\n  pref_done:\n\n    hs->flags = (uint32_t)pref << 23;\n\n    if (!pref)\n        pref |= PRE_NONE;\n\n    if ((hs->opcode = c) == 0x0f) {\n        hs->opcode2 = c = *p++;\n        ht += DELTA_OPCODES;\n    } else if (c >= 0xa0 && c <= 0xa3) {\n        if (pref & PRE_67)\n            pref |= PRE_66;\n        else\n            pref &= ~PRE_66;\n    }\n\n    opcode = c;\n    cflags = ht[ht[opcode / 4] + (opcode % 4)];\n\n    if (cflags == C_ERROR) {\n        hs->flags |= F_ERROR | F_ERROR_OPCODE;\n        cflags = 0;\n        if ((opcode & -3) == 0x24)\n            cflags++;\n    }\n\n    x = 0;\n    if (cflags & C_GROUP) {\n        uint16_t t;\n        t = *(uint16_t *)(ht + (cflags & 0x7f));\n        cflags = (uint8_t)t;\n        x = (uint8_t)(t >> 8);\n    }\n\n    if (hs->opcode2) {\n        ht = hde32_table + DELTA_PREFIXES;\n        if (ht[ht[opcode / 4] + (opcode % 4)] & pref)\n            hs->flags |= F_ERROR | F_ERROR_OPCODE;\n    }\n\n    if (cflags & C_MODRM) {\n        hs->flags |= F_MODRM;\n        hs->modrm = c = *p++;\n        hs->modrm_mod = m_mod = c >> 6;\n        hs->modrm_rm = m_rm = c & 7;\n        hs->modrm_reg = m_reg = (c & 0x3f) >> 3;\n\n        if (x && ((x << m_reg) & 0x80))\n            hs->flags |= F_ERROR | F_ERROR_OPCODE;\n\n        if (!hs->opcode2 && opcode >= 0xd9 && opcode <= 0xdf) {\n            uint8_t t = opcode - 0xd9;\n            if (m_mod == 3) {\n                ht = hde32_table + DELTA_FPU_MODRM + t*8;\n                t = ht[m_reg] << m_rm;\n            } else {\n                ht = hde32_table + DELTA_FPU_REG;\n                t = ht[t] << m_reg;\n            }\n            if (t & 0x80)\n                hs->flags |= F_ERROR | F_ERROR_OPCODE;\n        }\n\n        if (pref & PRE_LOCK) {\n            if (m_mod == 3) {\n                hs->flags |= F_ERROR | F_ERROR_LOCK;\n            } else {\n                uint8_t *table_end, op = opcode;\n                if (hs->opcode2) {\n                    ht = hde32_table + DELTA_OP2_LOCK_OK;\n                    table_end = ht + DELTA_OP_ONLY_MEM - DELTA_OP2_LOCK_OK;\n                } else {\n                    ht = hde32_table + DELTA_OP_LOCK_OK;\n                    table_end = ht + DELTA_OP2_LOCK_OK - DELTA_OP_LOCK_OK;\n                    op &= -2;\n                }\n                for (; ht != table_end; ht++)\n                    if (*ht++ == op) {\n                        if (!((*ht << m_reg) & 0x80))\n                            goto no_lock_error;\n                        else\n                            break;\n                    }\n                hs->flags |= F_ERROR | F_ERROR_LOCK;\n              no_lock_error:\n                ;\n            }\n        }\n\n        if (hs->opcode2) {\n            switch (opcode) {\n                case 0x20: case 0x22:\n                    m_mod = 3;\n                    if (m_reg > 4 || m_reg == 1)\n                        goto error_operand;\n                    else\n                        goto no_error_operand;\n                case 0x21: case 0x23:\n                    m_mod = 3;\n                    if (m_reg == 4 || m_reg == 5)\n                        goto error_operand;\n                    else\n                        goto no_error_operand;\n            }\n        } else {\n            switch (opcode) {\n                case 0x8c:\n                    if (m_reg > 5)\n                        goto error_operand;\n                    else\n                        goto no_error_operand;\n                case 0x8e:\n                    if (m_reg == 1 || m_reg > 5)\n                        goto error_operand;\n                    else\n                        goto no_error_operand;\n            }\n        }\n\n        if (m_mod == 3) {\n            uint8_t *table_end;\n            if (hs->opcode2) {\n                ht = hde32_table + DELTA_OP2_ONLY_MEM;\n                table_end = ht + sizeof(hde32_table) - DELTA_OP2_ONLY_MEM;\n            } else {\n                ht = hde32_table + DELTA_OP_ONLY_MEM;\n                table_end = ht + DELTA_OP2_ONLY_MEM - DELTA_OP_ONLY_MEM;\n            }\n            for (; ht != table_end; ht += 2)\n                if (*ht++ == opcode) {\n                    if ((*ht++ & pref) && !((*ht << m_reg) & 0x80))\n                        goto error_operand;\n                    else\n                        break;\n                }\n            goto no_error_operand;\n        } else if (hs->opcode2) {\n            switch (opcode) {\n                case 0x50: case 0xd7: case 0xf7:\n                    if (pref & (PRE_NONE | PRE_66))\n                        goto error_operand;\n                    break;\n                case 0xd6:\n                    if (pref & (PRE_F2 | PRE_F3))\n                        goto error_operand;\n                    break;\n                case 0xc5:\n                    goto error_operand;\n            }\n            goto no_error_operand;\n        } else\n            goto no_error_operand;\n\n      error_operand:\n        hs->flags |= F_ERROR | F_ERROR_OPERAND;\n      no_error_operand:\n\n        c = *p++;\n        if (m_reg <= 1) {\n            if (opcode == 0xf6)\n                cflags |= C_IMM8;\n            else if (opcode == 0xf7)\n                cflags |= C_IMM_P66;\n        }\n\n        switch (m_mod) {\n            case 0:\n                if (pref & PRE_67) {\n                    if (m_rm == 6)\n                        disp_size = 2;\n                } else\n                    if (m_rm == 5)\n                        disp_size = 4;\n                break;\n            case 1:\n                disp_size = 1;\n                break;\n            case 2:\n                disp_size = 2;\n                if (!(pref & PRE_67))\n                    disp_size <<= 1;\n                break;\n        }\n\n        if (m_mod != 3 && m_rm == 4 && !(pref & PRE_67)) {\n            hs->flags |= F_SIB;\n            p++;\n            hs->sib = c;\n            hs->sib_scale = c >> 6;\n            hs->sib_index = (c & 0x3f) >> 3;\n            if ((hs->sib_base = c & 7) == 5 && !(m_mod & 1))\n                disp_size = 4;\n        }\n\n        p--;\n        switch (disp_size) {\n            case 1:\n                hs->flags |= F_DISP8;\n                hs->disp.disp8 = *p;\n                break;\n            case 2:\n                hs->flags |= F_DISP16;\n                hs->disp.disp16 = *(uint16_t *)p;\n                break;\n            case 4:\n                hs->flags |= F_DISP32;\n                hs->disp.disp32 = *(uint32_t *)p;\n                break;\n        }\n        p += disp_size;\n    } else if (pref & PRE_LOCK)\n        hs->flags |= F_ERROR | F_ERROR_LOCK;\n\n    if (cflags & C_IMM_P66) {\n        if (cflags & C_REL32) {\n            if (pref & PRE_66) {\n                hs->flags |= F_IMM16 | F_RELATIVE;\n                hs->imm.imm16 = *(uint16_t *)p;\n                p += 2;\n                goto disasm_done;\n            }\n            goto rel32_ok;\n        }\n        if (pref & PRE_66) {\n            hs->flags |= F_IMM16;\n            hs->imm.imm16 = *(uint16_t *)p;\n            p += 2;\n        } else {\n            hs->flags |= F_IMM32;\n            hs->imm.imm32 = *(uint32_t *)p;\n            p += 4;\n        }\n    }\n\n    if (cflags & C_IMM16) {\n        if (hs->flags & F_IMM32) {\n            hs->flags |= F_IMM16;\n            hs->disp.disp16 = *(uint16_t *)p;\n        } else if (hs->flags & F_IMM16) {\n            hs->flags |= F_2IMM16;\n            hs->disp.disp16 = *(uint16_t *)p;\n        } else {\n            hs->flags |= F_IMM16;\n            hs->imm.imm16 = *(uint16_t *)p;\n        }\n        p += 2;\n    }\n    if (cflags & C_IMM8) {\n        hs->flags |= F_IMM8;\n        hs->imm.imm8 = *p++;\n    }\n\n    if (cflags & C_REL32) {\n      rel32_ok:\n        hs->flags |= F_IMM32 | F_RELATIVE;\n        hs->imm.imm32 = *(uint32_t *)p;\n        p += 4;\n    } else if (cflags & C_REL8) {\n        hs->flags |= F_IMM8 | F_RELATIVE;\n        hs->imm.imm8 = *p++;\n    }\n\n  disasm_done:\n\n    if ((hs->len = (uint8_t)(p-(uint8_t *)code)) > 15) {\n        hs->flags |= F_ERROR | F_ERROR_LENGTH;\n        hs->len = 15;\n    }\n\n    return (unsigned int)hs->len;\n}\n\n#endif // defined(_M_IX86) || defined(__i386__)\n"
  },
  {
    "path": "third_party/minhook/src/hde/hde32.h",
    "content": "﻿/*\n * Hacker Disassembler Engine 32\n * Copyright (c) 2006-2009, Vyacheslav Patkov.\n * All rights reserved.\n *\n * hde32.h: C/C++ header file\n *\n */\n\n#ifndef _HDE32_H_\n#define _HDE32_H_\n\n/* stdint.h - C99 standard header\n * http://en.wikipedia.org/wiki/stdint.h\n *\n * if your compiler doesn't contain \"stdint.h\" header (for\n * example, Microsoft Visual C++), you can download file:\n *   http://www.azillionmonkeys.com/qed/pstdint.h\n * and change next line to:\n *   #include \"pstdint.h\"\n */\n#include \"pstdint.h\"\n\n#define F_MODRM         0x00000001\n#define F_SIB           0x00000002\n#define F_IMM8          0x00000004\n#define F_IMM16         0x00000008\n#define F_IMM32         0x00000010\n#define F_DISP8         0x00000020\n#define F_DISP16        0x00000040\n#define F_DISP32        0x00000080\n#define F_RELATIVE      0x00000100\n#define F_2IMM16        0x00000800\n#define F_ERROR         0x00001000\n#define F_ERROR_OPCODE  0x00002000\n#define F_ERROR_LENGTH  0x00004000\n#define F_ERROR_LOCK    0x00008000\n#define F_ERROR_OPERAND 0x00010000\n#define F_PREFIX_REPNZ  0x01000000\n#define F_PREFIX_REPX   0x02000000\n#define F_PREFIX_REP    0x03000000\n#define F_PREFIX_66     0x04000000\n#define F_PREFIX_67     0x08000000\n#define F_PREFIX_LOCK   0x10000000\n#define F_PREFIX_SEG    0x20000000\n#define F_PREFIX_ANY    0x3f000000\n\n#define PREFIX_SEGMENT_CS   0x2e\n#define PREFIX_SEGMENT_SS   0x36\n#define PREFIX_SEGMENT_DS   0x3e\n#define PREFIX_SEGMENT_ES   0x26\n#define PREFIX_SEGMENT_FS   0x64\n#define PREFIX_SEGMENT_GS   0x65\n#define PREFIX_LOCK         0xf0\n#define PREFIX_REPNZ        0xf2\n#define PREFIX_REPX         0xf3\n#define PREFIX_OPERAND_SIZE 0x66\n#define PREFIX_ADDRESS_SIZE 0x67\n\n#pragma pack(push,1)\n\ntypedef struct {\n    uint8_t len;\n    uint8_t p_rep;\n    uint8_t p_lock;\n    uint8_t p_seg;\n    uint8_t p_66;\n    uint8_t p_67;\n    uint8_t opcode;\n    uint8_t opcode2;\n    uint8_t modrm;\n    uint8_t modrm_mod;\n    uint8_t modrm_reg;\n    uint8_t modrm_rm;\n    uint8_t sib;\n    uint8_t sib_scale;\n    uint8_t sib_index;\n    uint8_t sib_base;\n    union {\n        uint8_t imm8;\n        uint16_t imm16;\n        uint32_t imm32;\n    } imm;\n    union {\n        uint8_t disp8;\n        uint16_t disp16;\n        uint32_t disp32;\n    } disp;\n    uint32_t flags;\n} hde32s;\n\n#pragma pack(pop)\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* __cdecl */\nunsigned int hde32_disasm(const void *code, hde32s *hs);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif /* _HDE32_H_ */\n"
  },
  {
    "path": "third_party/minhook/src/hde/hde64.c",
    "content": "﻿/*\n * Hacker Disassembler Engine 64 C\n * Copyright (c) 2008-2009, Vyacheslav Patkov.\n * All rights reserved.\n *\n */\n\n#if defined(_M_X64) || defined(__x86_64__)\n\n#include <string.h>\n#include \"hde64.h\"\n#include \"table64.h\"\n\nunsigned int hde64_disasm(const void *code, hde64s *hs)\n{\n    uint8_t x, c, *p = (uint8_t *)code, cflags, opcode, pref = 0;\n    uint8_t *ht = hde64_table, m_mod, m_reg, m_rm, disp_size = 0;\n    uint8_t op64 = 0;\n\n    memset(hs, 0, sizeof(hde64s));\n\n    for (x = 16; x; x--)\n        switch (c = *p++) {\n            case 0xf3:\n                hs->p_rep = c;\n                pref |= PRE_F3;\n                break;\n            case 0xf2:\n                hs->p_rep = c;\n                pref |= PRE_F2;\n                break;\n            case 0xf0:\n                hs->p_lock = c;\n                pref |= PRE_LOCK;\n                break;\n            case 0x26: case 0x2e: case 0x36:\n            case 0x3e: case 0x64: case 0x65:\n                hs->p_seg = c;\n                pref |= PRE_SEG;\n                break;\n            case 0x66:\n                hs->p_66 = c;\n                pref |= PRE_66;\n                break;\n            case 0x67:\n                hs->p_67 = c;\n                pref |= PRE_67;\n                break;\n            default:\n                goto pref_done;\n        }\n  pref_done:\n\n    hs->flags = (uint32_t)pref << 23;\n\n    if (!pref)\n        pref |= PRE_NONE;\n\n    if ((c & 0xf0) == 0x40) {\n        hs->flags |= F_PREFIX_REX;\n        if ((hs->rex_w = (c & 0xf) >> 3) && (*p & 0xf8) == 0xb8)\n            op64++;\n        hs->rex_r = (c & 7) >> 2;\n        hs->rex_x = (c & 3) >> 1;\n        hs->rex_b = c & 1;\n        if (((c = *p++) & 0xf0) == 0x40) {\n            opcode = c;\n            goto error_opcode;\n        }\n    }\n\n    if ((hs->opcode = c) == 0x0f) {\n        hs->opcode2 = c = *p++;\n        ht += DELTA_OPCODES;\n    } else if (c >= 0xa0 && c <= 0xa3) {\n        op64++;\n        if (pref & PRE_67)\n            pref |= PRE_66;\n        else\n            pref &= ~PRE_66;\n    }\n\n    opcode = c;\n    cflags = ht[ht[opcode / 4] + (opcode % 4)];\n\n    if (cflags == C_ERROR) {\n      error_opcode:\n        hs->flags |= F_ERROR | F_ERROR_OPCODE;\n        cflags = 0;\n        if ((opcode & -3) == 0x24)\n            cflags++;\n    }\n\n    x = 0;\n    if (cflags & C_GROUP) {\n        uint16_t t;\n        t = *(uint16_t *)(ht + (cflags & 0x7f));\n        cflags = (uint8_t)t;\n        x = (uint8_t)(t >> 8);\n    }\n\n    if (hs->opcode2) {\n        ht = hde64_table + DELTA_PREFIXES;\n        if (ht[ht[opcode / 4] + (opcode % 4)] & pref)\n            hs->flags |= F_ERROR | F_ERROR_OPCODE;\n    }\n\n    if (cflags & C_MODRM) {\n        hs->flags |= F_MODRM;\n        hs->modrm = c = *p++;\n        hs->modrm_mod = m_mod = c >> 6;\n        hs->modrm_rm = m_rm = c & 7;\n        hs->modrm_reg = m_reg = (c & 0x3f) >> 3;\n\n        if (x && ((x << m_reg) & 0x80))\n            hs->flags |= F_ERROR | F_ERROR_OPCODE;\n\n        if (!hs->opcode2 && opcode >= 0xd9 && opcode <= 0xdf) {\n            uint8_t t = opcode - 0xd9;\n            if (m_mod == 3) {\n                ht = hde64_table + DELTA_FPU_MODRM + t*8;\n                t = ht[m_reg] << m_rm;\n            } else {\n                ht = hde64_table + DELTA_FPU_REG;\n                t = ht[t] << m_reg;\n            }\n            if (t & 0x80)\n                hs->flags |= F_ERROR | F_ERROR_OPCODE;\n        }\n\n        if (pref & PRE_LOCK) {\n            if (m_mod == 3) {\n                hs->flags |= F_ERROR | F_ERROR_LOCK;\n            } else {\n                uint8_t *table_end, op = opcode;\n                if (hs->opcode2) {\n                    ht = hde64_table + DELTA_OP2_LOCK_OK;\n                    table_end = ht + DELTA_OP_ONLY_MEM - DELTA_OP2_LOCK_OK;\n                } else {\n                    ht = hde64_table + DELTA_OP_LOCK_OK;\n                    table_end = ht + DELTA_OP2_LOCK_OK - DELTA_OP_LOCK_OK;\n                    op &= -2;\n                }\n                for (; ht != table_end; ht++)\n                    if (*ht++ == op) {\n                        if (!((*ht << m_reg) & 0x80))\n                            goto no_lock_error;\n                        else\n                            break;\n                    }\n                hs->flags |= F_ERROR | F_ERROR_LOCK;\n              no_lock_error:\n                ;\n            }\n        }\n\n        if (hs->opcode2) {\n            switch (opcode) {\n                case 0x20: case 0x22:\n                    m_mod = 3;\n                    if (m_reg > 4 || m_reg == 1)\n                        goto error_operand;\n                    else\n                        goto no_error_operand;\n                case 0x21: case 0x23:\n                    m_mod = 3;\n                    if (m_reg == 4 || m_reg == 5)\n                        goto error_operand;\n                    else\n                        goto no_error_operand;\n            }\n        } else {\n            switch (opcode) {\n                case 0x8c:\n                    if (m_reg > 5)\n                        goto error_operand;\n                    else\n                        goto no_error_operand;\n                case 0x8e:\n                    if (m_reg == 1 || m_reg > 5)\n                        goto error_operand;\n                    else\n                        goto no_error_operand;\n            }\n        }\n\n        if (m_mod == 3) {\n            uint8_t *table_end;\n            if (hs->opcode2) {\n                ht = hde64_table + DELTA_OP2_ONLY_MEM;\n                table_end = ht + sizeof(hde64_table) - DELTA_OP2_ONLY_MEM;\n            } else {\n                ht = hde64_table + DELTA_OP_ONLY_MEM;\n                table_end = ht + DELTA_OP2_ONLY_MEM - DELTA_OP_ONLY_MEM;\n            }\n            for (; ht != table_end; ht += 2)\n                if (*ht++ == opcode) {\n                    if ((*ht++ & pref) && !((*ht << m_reg) & 0x80))\n                        goto error_operand;\n                    else\n                        break;\n                }\n            goto no_error_operand;\n        } else if (hs->opcode2) {\n            switch (opcode) {\n                case 0x50: case 0xd7: case 0xf7:\n                    if (pref & (PRE_NONE | PRE_66))\n                        goto error_operand;\n                    break;\n                case 0xd6:\n                    if (pref & (PRE_F2 | PRE_F3))\n                        goto error_operand;\n                    break;\n                case 0xc5:\n                    goto error_operand;\n            }\n            goto no_error_operand;\n        } else\n            goto no_error_operand;\n\n      error_operand:\n        hs->flags |= F_ERROR | F_ERROR_OPERAND;\n      no_error_operand:\n\n        c = *p++;\n        if (m_reg <= 1) {\n            if (opcode == 0xf6)\n                cflags |= C_IMM8;\n            else if (opcode == 0xf7)\n                cflags |= C_IMM_P66;\n        }\n\n        switch (m_mod) {\n            case 0:\n                if (pref & PRE_67) {\n                    if (m_rm == 6)\n                        disp_size = 2;\n                } else\n                    if (m_rm == 5)\n                        disp_size = 4;\n                break;\n            case 1:\n                disp_size = 1;\n                break;\n            case 2:\n                disp_size = 2;\n                if (!(pref & PRE_67))\n                    disp_size <<= 1;\n                break;\n        }\n\n        if (m_mod != 3 && m_rm == 4) {\n            hs->flags |= F_SIB;\n            p++;\n            hs->sib = c;\n            hs->sib_scale = c >> 6;\n            hs->sib_index = (c & 0x3f) >> 3;\n            if ((hs->sib_base = c & 7) == 5 && !(m_mod & 1))\n                disp_size = 4;\n        }\n\n        p--;\n        switch (disp_size) {\n            case 1:\n                hs->flags |= F_DISP8;\n                hs->disp.disp8 = *p;\n                break;\n            case 2:\n                hs->flags |= F_DISP16;\n                hs->disp.disp16 = *(uint16_t *)p;\n                break;\n            case 4:\n                hs->flags |= F_DISP32;\n                hs->disp.disp32 = *(uint32_t *)p;\n                break;\n        }\n        p += disp_size;\n    } else if (pref & PRE_LOCK)\n        hs->flags |= F_ERROR | F_ERROR_LOCK;\n\n    if (cflags & C_IMM_P66) {\n        if (cflags & C_REL32) {\n            if (pref & PRE_66) {\n                hs->flags |= F_IMM16 | F_RELATIVE;\n                hs->imm.imm16 = *(uint16_t *)p;\n                p += 2;\n                goto disasm_done;\n            }\n            goto rel32_ok;\n        }\n        if (op64) {\n            hs->flags |= F_IMM64;\n            hs->imm.imm64 = *(uint64_t *)p;\n            p += 8;\n        } else if (!(pref & PRE_66)) {\n            hs->flags |= F_IMM32;\n            hs->imm.imm32 = *(uint32_t *)p;\n            p += 4;\n        } else\n            goto imm16_ok;\n    }\n\n\n    if (cflags & C_IMM16) {\n      imm16_ok:\n        hs->flags |= F_IMM16;\n        hs->imm.imm16 = *(uint16_t *)p;\n        p += 2;\n    }\n    if (cflags & C_IMM8) {\n        hs->flags |= F_IMM8;\n        hs->imm.imm8 = *p++;\n    }\n\n    if (cflags & C_REL32) {\n      rel32_ok:\n        hs->flags |= F_IMM32 | F_RELATIVE;\n        hs->imm.imm32 = *(uint32_t *)p;\n        p += 4;\n    } else if (cflags & C_REL8) {\n        hs->flags |= F_IMM8 | F_RELATIVE;\n        hs->imm.imm8 = *p++;\n    }\n\n  disasm_done:\n\n    if ((hs->len = (uint8_t)(p-(uint8_t *)code)) > 15) {\n        hs->flags |= F_ERROR | F_ERROR_LENGTH;\n        hs->len = 15;\n    }\n\n    return (unsigned int)hs->len;\n}\n\n#endif // defined(_M_X64) || defined(__x86_64__)\n"
  },
  {
    "path": "third_party/minhook/src/hde/hde64.h",
    "content": "﻿/*\n * Hacker Disassembler Engine 64\n * Copyright (c) 2008-2009, Vyacheslav Patkov.\n * All rights reserved.\n *\n * hde64.h: C/C++ header file\n *\n */\n\n#ifndef _HDE64_H_\n#define _HDE64_H_\n\n/* stdint.h - C99 standard header\n * http://en.wikipedia.org/wiki/stdint.h\n *\n * if your compiler doesn't contain \"stdint.h\" header (for\n * example, Microsoft Visual C++), you can download file:\n *   http://www.azillionmonkeys.com/qed/pstdint.h\n * and change next line to:\n *   #include \"pstdint.h\"\n */\n#include \"pstdint.h\"\n\n#define F_MODRM         0x00000001\n#define F_SIB           0x00000002\n#define F_IMM8          0x00000004\n#define F_IMM16         0x00000008\n#define F_IMM32         0x00000010\n#define F_IMM64         0x00000020\n#define F_DISP8         0x00000040\n#define F_DISP16        0x00000080\n#define F_DISP32        0x00000100\n#define F_RELATIVE      0x00000200\n#define F_ERROR         0x00001000\n#define F_ERROR_OPCODE  0x00002000\n#define F_ERROR_LENGTH  0x00004000\n#define F_ERROR_LOCK    0x00008000\n#define F_ERROR_OPERAND 0x00010000\n#define F_PREFIX_REPNZ  0x01000000\n#define F_PREFIX_REPX   0x02000000\n#define F_PREFIX_REP    0x03000000\n#define F_PREFIX_66     0x04000000\n#define F_PREFIX_67     0x08000000\n#define F_PREFIX_LOCK   0x10000000\n#define F_PREFIX_SEG    0x20000000\n#define F_PREFIX_REX    0x40000000\n#define F_PREFIX_ANY    0x7f000000\n\n#define PREFIX_SEGMENT_CS   0x2e\n#define PREFIX_SEGMENT_SS   0x36\n#define PREFIX_SEGMENT_DS   0x3e\n#define PREFIX_SEGMENT_ES   0x26\n#define PREFIX_SEGMENT_FS   0x64\n#define PREFIX_SEGMENT_GS   0x65\n#define PREFIX_LOCK         0xf0\n#define PREFIX_REPNZ        0xf2\n#define PREFIX_REPX         0xf3\n#define PREFIX_OPERAND_SIZE 0x66\n#define PREFIX_ADDRESS_SIZE 0x67\n\n#pragma pack(push,1)\n\ntypedef struct {\n    uint8_t len;\n    uint8_t p_rep;\n    uint8_t p_lock;\n    uint8_t p_seg;\n    uint8_t p_66;\n    uint8_t p_67;\n    uint8_t rex;\n    uint8_t rex_w;\n    uint8_t rex_r;\n    uint8_t rex_x;\n    uint8_t rex_b;\n    uint8_t opcode;\n    uint8_t opcode2;\n    uint8_t modrm;\n    uint8_t modrm_mod;\n    uint8_t modrm_reg;\n    uint8_t modrm_rm;\n    uint8_t sib;\n    uint8_t sib_scale;\n    uint8_t sib_index;\n    uint8_t sib_base;\n    union {\n        uint8_t imm8;\n        uint16_t imm16;\n        uint32_t imm32;\n        uint64_t imm64;\n    } imm;\n    union {\n        uint8_t disp8;\n        uint16_t disp16;\n        uint32_t disp32;\n    } disp;\n    uint32_t flags;\n} hde64s;\n\n#pragma pack(pop)\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* __cdecl */\nunsigned int hde64_disasm(const void *code, hde64s *hs);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif /* _HDE64_H_ */\n"
  },
  {
    "path": "third_party/minhook/src/hde/pstdint.h",
    "content": "﻿/*\n *  MinHook - The Minimalistic API Hooking Library for x64/x86\n *  Copyright (C) 2009-2017 Tsuda Kageyu. All rights reserved.\n *\n *  Redistribution and use in source and binary forms, with or without\n *  modification, are permitted provided that the following conditions\n *  are met:\n *\n *  1. Redistributions of source code must retain the above copyright\n *     notice, this list of conditions and the following disclaimer.\n *  2. Redistributions in binary form must reproduce the above copyright\n *     notice, this list of conditions and the following disclaimer in the\n *     documentation and/or other materials provided with the distribution.\n *\n *  THIS SOFTWARE IS PROVIDED BY THE AUTHOR \"AS IS\" AND ANY EXPRESS OR\n *  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n *  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n *  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n *  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n *  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n *  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#pragma once\n\n#include <windows.h>\n\n// Integer types for HDE.\ntypedef INT8   int8_t;\ntypedef INT16  int16_t;\ntypedef INT32  int32_t;\ntypedef INT64  int64_t;\ntypedef UINT8  uint8_t;\ntypedef UINT16 uint16_t;\ntypedef UINT32 uint32_t;\ntypedef UINT64 uint64_t;\n"
  },
  {
    "path": "third_party/minhook/src/hde/table32.h",
    "content": "﻿/*\n * Hacker Disassembler Engine 32 C\n * Copyright (c) 2008-2009, Vyacheslav Patkov.\n * All rights reserved.\n *\n */\n\n#define C_NONE    0x00\n#define C_MODRM   0x01\n#define C_IMM8    0x02\n#define C_IMM16   0x04\n#define C_IMM_P66 0x10\n#define C_REL8    0x20\n#define C_REL32   0x40\n#define C_GROUP   0x80\n#define C_ERROR   0xff\n\n#define PRE_ANY  0x00\n#define PRE_NONE 0x01\n#define PRE_F2   0x02\n#define PRE_F3   0x04\n#define PRE_66   0x08\n#define PRE_67   0x10\n#define PRE_LOCK 0x20\n#define PRE_SEG  0x40\n#define PRE_ALL  0xff\n\n#define DELTA_OPCODES      0x4a\n#define DELTA_FPU_REG      0xf1\n#define DELTA_FPU_MODRM    0xf8\n#define DELTA_PREFIXES     0x130\n#define DELTA_OP_LOCK_OK   0x1a1\n#define DELTA_OP2_LOCK_OK  0x1b9\n#define DELTA_OP_ONLY_MEM  0x1cb\n#define DELTA_OP2_ONLY_MEM 0x1da\n\nunsigned char hde32_table[] = {\n  0xa3,0xa8,0xa3,0xa8,0xa3,0xa8,0xa3,0xa8,0xa3,0xa8,0xa3,0xa8,0xa3,0xa8,0xa3,\n  0xa8,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xac,0xaa,0xb2,0xaa,0x9f,0x9f,\n  0x9f,0x9f,0xb5,0xa3,0xa3,0xa4,0xaa,0xaa,0xba,0xaa,0x96,0xaa,0xa8,0xaa,0xc3,\n  0xc3,0x96,0x96,0xb7,0xae,0xd6,0xbd,0xa3,0xc5,0xa3,0xa3,0x9f,0xc3,0x9c,0xaa,\n  0xaa,0xac,0xaa,0xbf,0x03,0x7f,0x11,0x7f,0x01,0x7f,0x01,0x3f,0x01,0x01,0x90,\n  0x82,0x7d,0x97,0x59,0x59,0x59,0x59,0x59,0x7f,0x59,0x59,0x60,0x7d,0x7f,0x7f,\n  0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x9a,0x88,0x7d,\n  0x59,0x50,0x50,0x50,0x50,0x59,0x59,0x59,0x59,0x61,0x94,0x61,0x9e,0x59,0x59,\n  0x85,0x59,0x92,0xa3,0x60,0x60,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,0x59,\n  0x59,0x59,0x9f,0x01,0x03,0x01,0x04,0x03,0xd5,0x03,0xcc,0x01,0xbc,0x03,0xf0,\n  0x10,0x10,0x10,0x10,0x50,0x50,0x50,0x50,0x14,0x20,0x20,0x20,0x20,0x01,0x01,\n  0x01,0x01,0xc4,0x02,0x10,0x00,0x00,0x00,0x00,0x01,0x01,0xc0,0xc2,0x10,0x11,\n  0x02,0x03,0x11,0x03,0x03,0x04,0x00,0x00,0x14,0x00,0x02,0x00,0x00,0xc6,0xc8,\n  0x02,0x02,0x02,0x02,0x00,0x00,0xff,0xff,0xff,0xff,0x00,0x00,0x00,0xff,0xca,\n  0x01,0x01,0x01,0x00,0x06,0x00,0x04,0x00,0xc0,0xc2,0x01,0x01,0x03,0x01,0xff,\n  0xff,0x01,0x00,0x03,0xc4,0xc4,0xc6,0x03,0x01,0x01,0x01,0xff,0x03,0x03,0x03,\n  0xc8,0x40,0x00,0x0a,0x00,0x04,0x00,0x00,0x00,0x00,0x7f,0x00,0x33,0x01,0x00,\n  0x00,0x00,0x00,0x00,0x00,0xff,0xbf,0xff,0xff,0x00,0x00,0x00,0x00,0x07,0x00,\n  0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\n  0x00,0xff,0xff,0x00,0x00,0x00,0xbf,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\n  0x7f,0x00,0x00,0xff,0x4a,0x4a,0x4a,0x4a,0x4b,0x52,0x4a,0x4a,0x4a,0x4a,0x4f,\n  0x4c,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x55,0x45,0x40,0x4a,0x4a,0x4a,\n  0x45,0x59,0x4d,0x46,0x4a,0x5d,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,0x4a,\n  0x4a,0x4a,0x4a,0x4a,0x4a,0x61,0x63,0x67,0x4e,0x4a,0x4a,0x6b,0x6d,0x4a,0x4a,\n  0x45,0x6d,0x4a,0x4a,0x44,0x45,0x4a,0x4a,0x00,0x00,0x00,0x02,0x0d,0x06,0x06,\n  0x06,0x06,0x0e,0x00,0x00,0x00,0x00,0x06,0x06,0x06,0x00,0x06,0x06,0x02,0x06,\n  0x00,0x0a,0x0a,0x07,0x07,0x06,0x02,0x05,0x05,0x02,0x02,0x00,0x00,0x04,0x04,\n  0x04,0x04,0x00,0x00,0x00,0x0e,0x05,0x06,0x06,0x06,0x01,0x06,0x00,0x00,0x08,\n  0x00,0x10,0x00,0x18,0x00,0x20,0x00,0x28,0x00,0x30,0x00,0x80,0x01,0x82,0x01,\n  0x86,0x00,0xf6,0xcf,0xfe,0x3f,0xab,0x00,0xb0,0x00,0xb1,0x00,0xb3,0x00,0xba,\n  0xf8,0xbb,0x00,0xc0,0x00,0xc1,0x00,0xc7,0xbf,0x62,0xff,0x00,0x8d,0xff,0x00,\n  0xc4,0xff,0x00,0xc5,0xff,0x00,0xff,0xff,0xeb,0x01,0xff,0x0e,0x12,0x08,0x00,\n  0x13,0x09,0x00,0x16,0x08,0x00,0x17,0x09,0x00,0x2b,0x09,0x00,0xae,0xff,0x07,\n  0xb2,0xff,0x00,0xb4,0xff,0x00,0xb5,0xff,0x00,0xc3,0x01,0x00,0xc7,0xff,0xbf,\n  0xe7,0x08,0x00,0xf0,0x02,0x00\n};\n"
  },
  {
    "path": "third_party/minhook/src/hde/table64.h",
    "content": "﻿/*\n * Hacker Disassembler Engine 64 C\n * Copyright (c) 2008-2009, Vyacheslav Patkov.\n * All rights reserved.\n *\n */\n\n#define C_NONE    0x00\n#define C_MODRM   0x01\n#define C_IMM8    0x02\n#define C_IMM16   0x04\n#define C_IMM_P66 0x10\n#define C_REL8    0x20\n#define C_REL32   0x40\n#define C_GROUP   0x80\n#define C_ERROR   0xff\n\n#define PRE_ANY  0x00\n#define PRE_NONE 0x01\n#define PRE_F2   0x02\n#define PRE_F3   0x04\n#define PRE_66   0x08\n#define PRE_67   0x10\n#define PRE_LOCK 0x20\n#define PRE_SEG  0x40\n#define PRE_ALL  0xff\n\n#define DELTA_OPCODES      0x4a\n#define DELTA_FPU_REG      0xfd\n#define DELTA_FPU_MODRM    0x104\n#define DELTA_PREFIXES     0x13c\n#define DELTA_OP_LOCK_OK   0x1ae\n#define DELTA_OP2_LOCK_OK  0x1c6\n#define DELTA_OP_ONLY_MEM  0x1d8\n#define DELTA_OP2_ONLY_MEM 0x1e7\n\nunsigned char hde64_table[] = {\n  0xa5,0xaa,0xa5,0xb8,0xa5,0xaa,0xa5,0xaa,0xa5,0xb8,0xa5,0xb8,0xa5,0xb8,0xa5,\n  0xb8,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xac,0xc0,0xcc,0xc0,0xa1,0xa1,\n  0xa1,0xa1,0xb1,0xa5,0xa5,0xa6,0xc0,0xc0,0xd7,0xda,0xe0,0xc0,0xe4,0xc0,0xea,\n  0xea,0xe0,0xe0,0x98,0xc8,0xee,0xf1,0xa5,0xd3,0xa5,0xa5,0xa1,0xea,0x9e,0xc0,\n  0xc0,0xc2,0xc0,0xe6,0x03,0x7f,0x11,0x7f,0x01,0x7f,0x01,0x3f,0x01,0x01,0xab,\n  0x8b,0x90,0x64,0x5b,0x5b,0x5b,0x5b,0x5b,0x92,0x5b,0x5b,0x76,0x90,0x92,0x92,\n  0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x6a,0x73,0x90,\n  0x5b,0x52,0x52,0x52,0x52,0x5b,0x5b,0x5b,0x5b,0x77,0x7c,0x77,0x85,0x5b,0x5b,\n  0x70,0x5b,0x7a,0xaf,0x76,0x76,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,0x5b,\n  0x5b,0x5b,0x86,0x01,0x03,0x01,0x04,0x03,0xd5,0x03,0xd5,0x03,0xcc,0x01,0xbc,\n  0x03,0xf0,0x03,0x03,0x04,0x00,0x50,0x50,0x50,0x50,0xff,0x20,0x20,0x20,0x20,\n  0x01,0x01,0x01,0x01,0xc4,0x02,0x10,0xff,0xff,0xff,0x01,0x00,0x03,0x11,0xff,\n  0x03,0xc4,0xc6,0xc8,0x02,0x10,0x00,0xff,0xcc,0x01,0x01,0x01,0x00,0x00,0x00,\n  0x00,0x01,0x01,0x03,0x01,0xff,0xff,0xc0,0xc2,0x10,0x11,0x02,0x03,0x01,0x01,\n  0x01,0xff,0xff,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0xff,0xff,0xff,0xff,0x10,\n  0x10,0x10,0x10,0x02,0x10,0x00,0x00,0xc6,0xc8,0x02,0x02,0x02,0x02,0x06,0x00,\n  0x04,0x00,0x02,0xff,0x00,0xc0,0xc2,0x01,0x01,0x03,0x03,0x03,0xca,0x40,0x00,\n  0x0a,0x00,0x04,0x00,0x00,0x00,0x00,0x7f,0x00,0x33,0x01,0x00,0x00,0x00,0x00,\n  0x00,0x00,0xff,0xbf,0xff,0xff,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0xff,0x00,\n  0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,\n  0x00,0x00,0x00,0xbf,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0x00,0x00,\n  0xff,0x40,0x40,0x40,0x40,0x41,0x49,0x40,0x40,0x40,0x40,0x4c,0x42,0x40,0x40,\n  0x40,0x40,0x40,0x40,0x40,0x40,0x4f,0x44,0x53,0x40,0x40,0x40,0x44,0x57,0x43,\n  0x5c,0x40,0x60,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x40,\n  0x40,0x40,0x64,0x66,0x6e,0x6b,0x40,0x40,0x6a,0x46,0x40,0x40,0x44,0x46,0x40,\n  0x40,0x5b,0x44,0x40,0x40,0x00,0x00,0x00,0x00,0x06,0x06,0x06,0x06,0x01,0x06,\n  0x06,0x02,0x06,0x06,0x00,0x06,0x00,0x0a,0x0a,0x00,0x00,0x00,0x02,0x07,0x07,\n  0x06,0x02,0x0d,0x06,0x06,0x06,0x0e,0x05,0x05,0x02,0x02,0x00,0x00,0x04,0x04,\n  0x04,0x04,0x05,0x06,0x06,0x06,0x00,0x00,0x00,0x0e,0x00,0x00,0x08,0x00,0x10,\n  0x00,0x18,0x00,0x20,0x00,0x28,0x00,0x30,0x00,0x80,0x01,0x82,0x01,0x86,0x00,\n  0xf6,0xcf,0xfe,0x3f,0xab,0x00,0xb0,0x00,0xb1,0x00,0xb3,0x00,0xba,0xf8,0xbb,\n  0x00,0xc0,0x00,0xc1,0x00,0xc7,0xbf,0x62,0xff,0x00,0x8d,0xff,0x00,0xc4,0xff,\n  0x00,0xc5,0xff,0x00,0xff,0xff,0xeb,0x01,0xff,0x0e,0x12,0x08,0x00,0x13,0x09,\n  0x00,0x16,0x08,0x00,0x17,0x09,0x00,0x2b,0x09,0x00,0xae,0xff,0x07,0xb2,0xff,\n  0x00,0xb4,0xff,0x00,0xb5,0xff,0x00,0xc3,0x01,0x00,0xc7,0xff,0xbf,0xe7,0x08,\n  0x00,0xf0,0x02,0x00\n};\n"
  },
  {
    "path": "third_party/minhook/src/hook.c",
    "content": "﻿/*\n *  MinHook - The Minimalistic API Hooking Library for x64/x86\n *  Copyright (C) 2009-2017 Tsuda Kageyu.\n *  All rights reserved.\n *\n *  Redistribution and use in source and binary forms, with or without\n *  modification, are permitted provided that the following conditions\n *  are met:\n *\n *   1. Redistributions of source code must retain the above copyright\n *      notice, this list of conditions and the following disclaimer.\n *   2. Redistributions in binary form must reproduce the above copyright\n *      notice, this list of conditions and the following disclaimer in the\n *      documentation and/or other materials provided with the distribution.\n *\n *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n *  \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\n *  PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER\n *  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n *  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <windows.h>\n#include <tlhelp32.h>\n#include <limits.h>\n\n#include \"../include/MinHook.h\"\n#include \"buffer.h\"\n#include \"trampoline.h\"\n\n#ifndef ARRAYSIZE\n    #define ARRAYSIZE(A) (sizeof(A)/sizeof((A)[0]))\n#endif\n\n// Initial capacity of the HOOK_ENTRY buffer.\n#define INITIAL_HOOK_CAPACITY   32\n\n// Initial capacity of the thread IDs buffer.\n#define INITIAL_THREAD_CAPACITY 128\n\n// Special hook position values.\n#define INVALID_HOOK_POS UINT_MAX\n#define ALL_HOOKS_POS    UINT_MAX\n\n// Freeze() action argument defines.\n#define ACTION_DISABLE      0\n#define ACTION_ENABLE       1\n#define ACTION_APPLY_QUEUED 2\n\n// Thread access rights for suspending/resuming threads.\n#define THREAD_ACCESS \\\n    (THREAD_SUSPEND_RESUME | THREAD_GET_CONTEXT | THREAD_QUERY_INFORMATION | THREAD_SET_CONTEXT)\n\n// Hook information.\ntypedef struct _HOOK_ENTRY\n{\n    LPVOID pTarget;             // Address of the target function.\n    LPVOID pDetour;             // Address of the detour or relay function.\n    LPVOID pTrampoline;         // Address of the trampoline function.\n    UINT8  backup[8];           // Original prologue of the target function.\n\n    UINT8  patchAbove  : 1;     // Uses the hot patch area.\n    UINT8  isEnabled   : 1;     // Enabled.\n    UINT8  queueEnable : 1;     // Queued for enabling/disabling when != isEnabled.\n\n    UINT   nIP : 4;             // Count of the instruction boundaries.\n    UINT8  oldIPs[8];           // Instruction boundaries of the target function.\n    UINT8  newIPs[8];           // Instruction boundaries of the trampoline function.\n} HOOK_ENTRY, *PHOOK_ENTRY;\n\n// Suspended threads for Freeze()/Unfreeze().\ntypedef struct _FROZEN_THREADS\n{\n    LPDWORD pItems;         // Data heap\n    UINT    capacity;       // Size of allocated data heap, items\n    UINT    size;           // Actual number of data items\n} FROZEN_THREADS, *PFROZEN_THREADS;\n\n//-------------------------------------------------------------------------\n// Global Variables:\n//-------------------------------------------------------------------------\n\n// Spin lock flag for EnterSpinLock()/LeaveSpinLock().\nstatic volatile LONG g_isLocked = FALSE;\n\n// Private heap handle. If not NULL, this library is initialized.\nstatic HANDLE g_hHeap = NULL;\n\n// Hook entries.\nstatic struct\n{\n    PHOOK_ENTRY pItems;     // Data heap\n    UINT        capacity;   // Size of allocated data heap, items\n    UINT        size;       // Actual number of data items\n} g_hooks;\n\n//-------------------------------------------------------------------------\n// Returns INVALID_HOOK_POS if not found.\nstatic UINT FindHookEntry(LPVOID pTarget)\n{\n    UINT i;\n    for (i = 0; i < g_hooks.size; ++i)\n    {\n        if ((ULONG_PTR)pTarget == (ULONG_PTR)g_hooks.pItems[i].pTarget)\n            return i;\n    }\n\n    return INVALID_HOOK_POS;\n}\n\n//-------------------------------------------------------------------------\nstatic PHOOK_ENTRY AddHookEntry()\n{\n    if (g_hooks.pItems == NULL)\n    {\n        g_hooks.capacity = INITIAL_HOOK_CAPACITY;\n        g_hooks.pItems = (PHOOK_ENTRY)HeapAlloc(\n            g_hHeap, 0, g_hooks.capacity * sizeof(HOOK_ENTRY));\n        if (g_hooks.pItems == NULL)\n            return NULL;\n    }\n    else if (g_hooks.size >= g_hooks.capacity)\n    {\n        PHOOK_ENTRY p = (PHOOK_ENTRY)HeapReAlloc(\n            g_hHeap, 0, g_hooks.pItems, (g_hooks.capacity * 2) * sizeof(HOOK_ENTRY));\n        if (p == NULL)\n            return NULL;\n\n        g_hooks.capacity *= 2;\n        g_hooks.pItems = p;\n    }\n\n    return &g_hooks.pItems[g_hooks.size++];\n}\n\n//-------------------------------------------------------------------------\nstatic VOID DeleteHookEntry(UINT pos)\n{\n    if (pos < g_hooks.size - 1)\n        g_hooks.pItems[pos] = g_hooks.pItems[g_hooks.size - 1];\n\n    g_hooks.size--;\n\n    if (g_hooks.capacity / 2 >= INITIAL_HOOK_CAPACITY && g_hooks.capacity / 2 >= g_hooks.size)\n    {\n        PHOOK_ENTRY p = (PHOOK_ENTRY)HeapReAlloc(\n            g_hHeap, 0, g_hooks.pItems, (g_hooks.capacity / 2) * sizeof(HOOK_ENTRY));\n        if (p == NULL)\n            return;\n\n        g_hooks.capacity /= 2;\n        g_hooks.pItems = p;\n    }\n}\n\n//-------------------------------------------------------------------------\nstatic DWORD_PTR FindOldIP(PHOOK_ENTRY pHook, DWORD_PTR ip)\n{\n    UINT i;\n\n    if (pHook->patchAbove && ip == ((DWORD_PTR)pHook->pTarget - sizeof(JMP_REL)))\n        return (DWORD_PTR)pHook->pTarget;\n\n    for (i = 0; i < pHook->nIP; ++i)\n    {\n        if (ip == ((DWORD_PTR)pHook->pTrampoline + pHook->newIPs[i]))\n            return (DWORD_PTR)pHook->pTarget + pHook->oldIPs[i];\n    }\n\n#if defined(_M_X64) || defined(__x86_64__)\n    // Check relay function.\n    if (ip == (DWORD_PTR)pHook->pDetour)\n        return (DWORD_PTR)pHook->pTarget;\n#endif\n\n    return 0;\n}\n\n//-------------------------------------------------------------------------\nstatic DWORD_PTR FindNewIP(PHOOK_ENTRY pHook, DWORD_PTR ip)\n{\n    UINT i;\n    for (i = 0; i < pHook->nIP; ++i)\n    {\n        if (ip == ((DWORD_PTR)pHook->pTarget + pHook->oldIPs[i]))\n            return (DWORD_PTR)pHook->pTrampoline + pHook->newIPs[i];\n    }\n\n    return 0;\n}\n\n//-------------------------------------------------------------------------\nstatic VOID ProcessThreadIPs(HANDLE hThread, UINT pos, UINT action)\n{\n    // If the thread suspended in the overwritten area,\n    // move IP to the proper address.\n\n    CONTEXT c;\n#if defined(_M_X64) || defined(__x86_64__)\n    DWORD64 *pIP = &c.Rip;\n#else\n    DWORD   *pIP = &c.Eip;\n#endif\n    UINT count;\n\n    c.ContextFlags = CONTEXT_CONTROL;\n    if (!GetThreadContext(hThread, &c))\n        return;\n\n    if (pos == ALL_HOOKS_POS)\n    {\n        pos = 0;\n        count = g_hooks.size;\n    }\n    else\n    {\n        count = pos + 1;\n    }\n\n    for (; pos < count; ++pos)\n    {\n        PHOOK_ENTRY pHook = &g_hooks.pItems[pos];\n        BOOL        enable;\n        DWORD_PTR   ip;\n\n        switch (action)\n        {\n        case ACTION_DISABLE:\n            enable = FALSE;\n            break;\n\n        case ACTION_ENABLE:\n            enable = TRUE;\n            break;\n\n        default: // ACTION_APPLY_QUEUED\n            enable = pHook->queueEnable;\n            break;\n        }\n        if (pHook->isEnabled == enable)\n            continue;\n\n        if (enable)\n            ip = FindNewIP(pHook, *pIP);\n        else\n            ip = FindOldIP(pHook, *pIP);\n\n        if (ip != 0)\n        {\n            *pIP = ip;\n            SetThreadContext(hThread, &c);\n        }\n    }\n}\n\n//-------------------------------------------------------------------------\nstatic BOOL EnumerateThreads(PFROZEN_THREADS pThreads)\n{\n    BOOL succeeded = FALSE;\n\n    HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0);\n    if (hSnapshot != INVALID_HANDLE_VALUE)\n    {\n        THREADENTRY32 te;\n        te.dwSize = sizeof(THREADENTRY32);\n        if (Thread32First(hSnapshot, &te))\n        {\n            succeeded = TRUE;\n            do\n            {\n                if (te.dwSize >= (FIELD_OFFSET(THREADENTRY32, th32OwnerProcessID) + sizeof(DWORD))\n                    && te.th32OwnerProcessID == GetCurrentProcessId()\n                    && te.th32ThreadID != GetCurrentThreadId())\n                {\n                    if (pThreads->pItems == NULL)\n                    {\n                        pThreads->capacity = INITIAL_THREAD_CAPACITY;\n                        pThreads->pItems\n                            = (LPDWORD)HeapAlloc(g_hHeap, 0, pThreads->capacity * sizeof(DWORD));\n                        if (pThreads->pItems == NULL)\n                        {\n                            succeeded = FALSE;\n                            break;\n                        }\n                    }\n                    else if (pThreads->size >= pThreads->capacity)\n                    {\n                        LPDWORD p;\n                        pThreads->capacity *= 2;\n                        p = (LPDWORD)HeapReAlloc(\n                            g_hHeap, 0, pThreads->pItems, pThreads->capacity * sizeof(DWORD));\n                        if (p == NULL)\n                        {\n                            succeeded = FALSE;\n                            break;\n                        }\n\n                        pThreads->pItems = p;\n                    }\n                    pThreads->pItems[pThreads->size++] = te.th32ThreadID;\n                }\n\n                te.dwSize = sizeof(THREADENTRY32);\n            } while (Thread32Next(hSnapshot, &te));\n\n            if (succeeded && GetLastError() != ERROR_NO_MORE_FILES)\n                succeeded = FALSE;\n\n            if (!succeeded && pThreads->pItems != NULL)\n            {\n                HeapFree(g_hHeap, 0, pThreads->pItems);\n                pThreads->pItems = NULL;\n            }\n        }\n        CloseHandle(hSnapshot);\n    }\n\n    return succeeded;\n}\n\n//-------------------------------------------------------------------------\nstatic MH_STATUS Freeze(PFROZEN_THREADS pThreads, UINT pos, UINT action)\n{\n    MH_STATUS status = MH_OK;\n\n    pThreads->pItems   = NULL;\n    pThreads->capacity = 0;\n    pThreads->size     = 0;\n    if (!EnumerateThreads(pThreads))\n    {\n        status = MH_ERROR_MEMORY_ALLOC;\n    }\n    else if (pThreads->pItems != NULL)\n    {\n        UINT i;\n        for (i = 0; i < pThreads->size; ++i)\n        {\n            HANDLE hThread = OpenThread(THREAD_ACCESS, FALSE, pThreads->pItems[i]);\n            BOOL suspended = FALSE;\n            if (hThread != NULL)\n            {\n                DWORD result = SuspendThread(hThread);\n                if (result != 0xFFFFFFFF)\n                {\n                    suspended = TRUE;\n                    ProcessThreadIPs(hThread, pos, action);\n                }\n                CloseHandle(hThread);\n            }\n\n            if (!suspended)\n            {\n                // Mark thread as not suspended, so it's not resumed later on.\n                pThreads->pItems[i] = 0;\n            }\n        }\n    }\n\n    return status;\n}\n\n//-------------------------------------------------------------------------\nstatic VOID Unfreeze(PFROZEN_THREADS pThreads)\n{\n    if (pThreads->pItems != NULL)\n    {\n        UINT i;\n        for (i = 0; i < pThreads->size; ++i)\n        {\n            DWORD threadId = pThreads->pItems[i];\n            if (threadId != 0)\n            {\n                HANDLE hThread = OpenThread(THREAD_ACCESS, FALSE, threadId);\n                if (hThread != NULL)\n                {\n                    ResumeThread(hThread);\n                    CloseHandle(hThread);\n                }\n            }\n        }\n\n        HeapFree(g_hHeap, 0, pThreads->pItems);\n    }\n}\n\n//-------------------------------------------------------------------------\nstatic MH_STATUS EnableHookLL(UINT pos, BOOL enable)\n{\n    PHOOK_ENTRY pHook = &g_hooks.pItems[pos];\n    DWORD  oldProtect;\n    SIZE_T patchSize    = sizeof(JMP_REL);\n    LPBYTE pPatchTarget = (LPBYTE)pHook->pTarget;\n\n    if (pHook->patchAbove)\n    {\n        pPatchTarget -= sizeof(JMP_REL);\n        patchSize    += sizeof(JMP_REL_SHORT);\n    }\n\n    if (!VirtualProtect(pPatchTarget, patchSize, PAGE_EXECUTE_READWRITE, &oldProtect))\n        return MH_ERROR_MEMORY_PROTECT;\n\n    if (enable)\n    {\n        PJMP_REL pJmp = (PJMP_REL)pPatchTarget;\n        pJmp->opcode = 0xE9;\n        pJmp->operand = (UINT32)((LPBYTE)pHook->pDetour - (pPatchTarget + sizeof(JMP_REL)));\n\n        if (pHook->patchAbove)\n        {\n            PJMP_REL_SHORT pShortJmp = (PJMP_REL_SHORT)pHook->pTarget;\n            pShortJmp->opcode = 0xEB;\n            pShortJmp->operand = (UINT8)(0 - (sizeof(JMP_REL_SHORT) + sizeof(JMP_REL)));\n        }\n    }\n    else\n    {\n        if (pHook->patchAbove)\n            memcpy(pPatchTarget, pHook->backup, sizeof(JMP_REL) + sizeof(JMP_REL_SHORT));\n        else\n            memcpy(pPatchTarget, pHook->backup, sizeof(JMP_REL));\n    }\n\n    VirtualProtect(pPatchTarget, patchSize, oldProtect, &oldProtect);\n\n    // Just-in-case measure.\n    FlushInstructionCache(GetCurrentProcess(), pPatchTarget, patchSize);\n\n    pHook->isEnabled   = enable;\n    pHook->queueEnable = enable;\n\n    return MH_OK;\n}\n\n//-------------------------------------------------------------------------\nstatic MH_STATUS EnableAllHooksLL(BOOL enable)\n{\n    MH_STATUS status = MH_OK;\n    UINT i, first = INVALID_HOOK_POS;\n\n    for (i = 0; i < g_hooks.size; ++i)\n    {\n        if (g_hooks.pItems[i].isEnabled != enable)\n        {\n            first = i;\n            break;\n        }\n    }\n\n    if (first != INVALID_HOOK_POS)\n    {\n        FROZEN_THREADS threads;\n        status = Freeze(&threads, ALL_HOOKS_POS, enable ? ACTION_ENABLE : ACTION_DISABLE);\n        if (status == MH_OK)\n        {\n            for (i = first; i < g_hooks.size; ++i)\n            {\n                if (g_hooks.pItems[i].isEnabled != enable)\n                {\n                    status = EnableHookLL(i, enable);\n                    if (status != MH_OK)\n                        break;\n                }\n            }\n\n            Unfreeze(&threads);\n        }\n    }\n\n    return status;\n}\n\n//-------------------------------------------------------------------------\nstatic VOID EnterSpinLock(VOID)\n{\n    SIZE_T spinCount = 0;\n\n    // Wait until the flag is FALSE.\n    while (InterlockedCompareExchange(&g_isLocked, TRUE, FALSE) != FALSE)\n    {\n        // No need to generate a memory barrier here, since InterlockedCompareExchange()\n        // generates a full memory barrier itself.\n\n        // Prevent the loop from being too busy.\n        if (spinCount < 32)\n            Sleep(0);\n        else\n            Sleep(1);\n\n        spinCount++;\n    }\n}\n\n//-------------------------------------------------------------------------\nstatic VOID LeaveSpinLock(VOID)\n{\n    // No need to generate a memory barrier here, since InterlockedExchange()\n    // generates a full memory barrier itself.\n\n    InterlockedExchange(&g_isLocked, FALSE);\n}\n\n//-------------------------------------------------------------------------\nMH_STATUS WINAPI MH_Initialize(VOID)\n{\n    MH_STATUS status = MH_OK;\n\n    EnterSpinLock();\n\n    if (g_hHeap == NULL)\n    {\n        g_hHeap = HeapCreate(0, 0, 0);\n        if (g_hHeap != NULL)\n        {\n            // Initialize the internal function buffer.\n            InitializeBuffer();\n        }\n        else\n        {\n            status = MH_ERROR_MEMORY_ALLOC;\n        }\n    }\n    else\n    {\n        status = MH_ERROR_ALREADY_INITIALIZED;\n    }\n\n    LeaveSpinLock();\n\n    return status;\n}\n\n//-------------------------------------------------------------------------\nMH_STATUS WINAPI MH_Uninitialize(VOID)\n{\n    MH_STATUS status = MH_OK;\n\n    EnterSpinLock();\n\n    if (g_hHeap != NULL)\n    {\n        status = EnableAllHooksLL(FALSE);\n        if (status == MH_OK)\n        {\n            // Free the internal function buffer.\n\n            // HeapFree is actually not required, but some tools detect a false\n            // memory leak without HeapFree.\n\n            UninitializeBuffer();\n\n            HeapFree(g_hHeap, 0, g_hooks.pItems);\n            HeapDestroy(g_hHeap);\n\n            g_hHeap = NULL;\n\n            g_hooks.pItems   = NULL;\n            g_hooks.capacity = 0;\n            g_hooks.size     = 0;\n        }\n    }\n    else\n    {\n        status = MH_ERROR_NOT_INITIALIZED;\n    }\n\n    LeaveSpinLock();\n\n    return status;\n}\n\n//-------------------------------------------------------------------------\nMH_STATUS WINAPI MH_CreateHook(LPVOID pTarget, LPVOID pDetour, LPVOID *ppOriginal)\n{\n    MH_STATUS status = MH_OK;\n\n    EnterSpinLock();\n\n    if (g_hHeap != NULL)\n    {\n        if (IsExecutableAddress(pTarget) && IsExecutableAddress(pDetour))\n        {\n            UINT pos = FindHookEntry(pTarget);\n            if (pos == INVALID_HOOK_POS)\n            {\n                LPVOID pBuffer = AllocateBuffer(pTarget);\n                if (pBuffer != NULL)\n                {\n                    TRAMPOLINE ct;\n\n                    ct.pTarget     = pTarget;\n                    ct.pDetour     = pDetour;\n                    ct.pTrampoline = pBuffer;\n                    if (CreateTrampolineFunction(&ct))\n                    {\n                        PHOOK_ENTRY pHook = AddHookEntry();\n                        if (pHook != NULL)\n                        {\n                            pHook->pTarget     = ct.pTarget;\n#if defined(_M_X64) || defined(__x86_64__)\n                            pHook->pDetour     = ct.pRelay;\n#else\n                            pHook->pDetour     = ct.pDetour;\n#endif\n                            pHook->pTrampoline = ct.pTrampoline;\n                            pHook->patchAbove  = ct.patchAbove;\n                            pHook->isEnabled   = FALSE;\n                            pHook->queueEnable = FALSE;\n                            pHook->nIP         = ct.nIP;\n                            memcpy(pHook->oldIPs, ct.oldIPs, ARRAYSIZE(ct.oldIPs));\n                            memcpy(pHook->newIPs, ct.newIPs, ARRAYSIZE(ct.newIPs));\n\n                            // Back up the target function.\n\n                            if (ct.patchAbove)\n                            {\n                                memcpy(\n                                    pHook->backup,\n                                    (LPBYTE)pTarget - sizeof(JMP_REL),\n                                    sizeof(JMP_REL) + sizeof(JMP_REL_SHORT));\n                            }\n                            else\n                            {\n                                memcpy(pHook->backup, pTarget, sizeof(JMP_REL));\n                            }\n\n                            if (ppOriginal != NULL)\n                                *ppOriginal = pHook->pTrampoline;\n                        }\n                        else\n                        {\n                            status = MH_ERROR_MEMORY_ALLOC;\n                        }\n                    }\n                    else\n                    {\n                        status = MH_ERROR_UNSUPPORTED_FUNCTION;\n                    }\n\n                    if (status != MH_OK)\n                    {\n                        FreeBuffer(pBuffer);\n                    }\n                }\n                else\n                {\n                    status = MH_ERROR_MEMORY_ALLOC;\n                }\n            }\n            else\n            {\n                status = MH_ERROR_ALREADY_CREATED;\n            }\n        }\n        else\n        {\n            status = MH_ERROR_NOT_EXECUTABLE;\n        }\n    }\n    else\n    {\n        status = MH_ERROR_NOT_INITIALIZED;\n    }\n\n    LeaveSpinLock();\n\n    return status;\n}\n\n//-------------------------------------------------------------------------\nMH_STATUS WINAPI MH_RemoveHook(LPVOID pTarget)\n{\n    MH_STATUS status = MH_OK;\n\n    EnterSpinLock();\n\n    if (g_hHeap != NULL)\n    {\n        UINT pos = FindHookEntry(pTarget);\n        if (pos != INVALID_HOOK_POS)\n        {\n            if (g_hooks.pItems[pos].isEnabled)\n            {\n                FROZEN_THREADS threads;\n                status = Freeze(&threads, pos, ACTION_DISABLE);\n                if (status == MH_OK)\n                {\n                    status = EnableHookLL(pos, FALSE);\n\n                    Unfreeze(&threads);\n                }\n            }\n\n            if (status == MH_OK)\n            {\n                FreeBuffer(g_hooks.pItems[pos].pTrampoline);\n                DeleteHookEntry(pos);\n            }\n        }\n        else\n        {\n            status = MH_ERROR_NOT_CREATED;\n        }\n    }\n    else\n    {\n        status = MH_ERROR_NOT_INITIALIZED;\n    }\n\n    LeaveSpinLock();\n\n    return status;\n}\n\n//-------------------------------------------------------------------------\nstatic MH_STATUS EnableHook(LPVOID pTarget, BOOL enable)\n{\n    MH_STATUS status = MH_OK;\n\n    EnterSpinLock();\n\n    if (g_hHeap != NULL)\n    {\n        if (pTarget == MH_ALL_HOOKS)\n        {\n            status = EnableAllHooksLL(enable);\n        }\n        else\n        {\n            UINT pos = FindHookEntry(pTarget);\n            if (pos != INVALID_HOOK_POS)\n            {\n                if (g_hooks.pItems[pos].isEnabled != enable)\n                {\n                    FROZEN_THREADS threads;\n                    status = Freeze(&threads, pos, ACTION_ENABLE);\n                    if (status == MH_OK)\n                    {\n                        status = EnableHookLL(pos, enable);\n\n                        Unfreeze(&threads);\n                    }\n                }\n                else\n                {\n                    status = enable ? MH_ERROR_ENABLED : MH_ERROR_DISABLED;\n                }\n            }\n            else\n            {\n                status = MH_ERROR_NOT_CREATED;\n            }\n        }\n    }\n    else\n    {\n        status = MH_ERROR_NOT_INITIALIZED;\n    }\n\n    LeaveSpinLock();\n\n    return status;\n}\n\n//-------------------------------------------------------------------------\nMH_STATUS WINAPI MH_EnableHook(LPVOID pTarget)\n{\n    return EnableHook(pTarget, TRUE);\n}\n\n//-------------------------------------------------------------------------\nMH_STATUS WINAPI MH_DisableHook(LPVOID pTarget)\n{\n    return EnableHook(pTarget, FALSE);\n}\n\n//-------------------------------------------------------------------------\nstatic MH_STATUS QueueHook(LPVOID pTarget, BOOL queueEnable)\n{\n    MH_STATUS status = MH_OK;\n\n    EnterSpinLock();\n\n    if (g_hHeap != NULL)\n    {\n        if (pTarget == MH_ALL_HOOKS)\n        {\n            UINT i;\n            for (i = 0; i < g_hooks.size; ++i)\n                g_hooks.pItems[i].queueEnable = queueEnable;\n        }\n        else\n        {\n            UINT pos = FindHookEntry(pTarget);\n            if (pos != INVALID_HOOK_POS)\n            {\n                g_hooks.pItems[pos].queueEnable = queueEnable;\n            }\n            else\n            {\n                status = MH_ERROR_NOT_CREATED;\n            }\n        }\n    }\n    else\n    {\n        status = MH_ERROR_NOT_INITIALIZED;\n    }\n\n    LeaveSpinLock();\n\n    return status;\n}\n\n//-------------------------------------------------------------------------\nMH_STATUS WINAPI MH_QueueEnableHook(LPVOID pTarget)\n{\n    return QueueHook(pTarget, TRUE);\n}\n\n//-------------------------------------------------------------------------\nMH_STATUS WINAPI MH_QueueDisableHook(LPVOID pTarget)\n{\n    return QueueHook(pTarget, FALSE);\n}\n\n//-------------------------------------------------------------------------\nMH_STATUS WINAPI MH_ApplyQueued(VOID)\n{\n    MH_STATUS status = MH_OK;\n    UINT i, first = INVALID_HOOK_POS;\n\n    EnterSpinLock();\n\n    if (g_hHeap != NULL)\n    {\n        for (i = 0; i < g_hooks.size; ++i)\n        {\n            if (g_hooks.pItems[i].isEnabled != g_hooks.pItems[i].queueEnable)\n            {\n                first = i;\n                break;\n            }\n        }\n\n        if (first != INVALID_HOOK_POS)\n        {\n            FROZEN_THREADS threads;\n            status = Freeze(&threads, ALL_HOOKS_POS, ACTION_APPLY_QUEUED);\n            if (status == MH_OK)\n            {\n                for (i = first; i < g_hooks.size; ++i)\n                {\n                    PHOOK_ENTRY pHook = &g_hooks.pItems[i];\n                    if (pHook->isEnabled != pHook->queueEnable)\n                    {\n                        status = EnableHookLL(i, pHook->queueEnable);\n                        if (status != MH_OK)\n                            break;\n                    }\n                }\n\n                Unfreeze(&threads);\n            }\n        }\n    }\n    else\n    {\n        status = MH_ERROR_NOT_INITIALIZED;\n    }\n\n    LeaveSpinLock();\n\n    return status;\n}\n\n//-------------------------------------------------------------------------\nMH_STATUS WINAPI MH_CreateHookApiEx(\n    LPCWSTR pszModule, LPCSTR pszProcName, LPVOID pDetour,\n    LPVOID *ppOriginal, LPVOID *ppTarget)\n{\n    HMODULE hModule;\n    LPVOID  pTarget;\n\n    hModule = GetModuleHandleW(pszModule);\n    if (hModule == NULL)\n        return MH_ERROR_MODULE_NOT_FOUND;\n\n    pTarget = (LPVOID)GetProcAddress(hModule, pszProcName);\n    if (pTarget == NULL)\n        return MH_ERROR_FUNCTION_NOT_FOUND;\n\n    if (ppTarget != NULL)\n        *ppTarget = pTarget;\n\n    return MH_CreateHook(pTarget, pDetour, ppOriginal);\n}\n\n//-------------------------------------------------------------------------\nMH_STATUS WINAPI MH_CreateHookApi(\n    LPCWSTR pszModule, LPCSTR pszProcName, LPVOID pDetour, LPVOID *ppOriginal)\n{\n    return MH_CreateHookApiEx(pszModule, pszProcName, pDetour, ppOriginal, NULL);\n}\n\n//-------------------------------------------------------------------------\nconst char *WINAPI MH_StatusToString(MH_STATUS status)\n{\n#define MH_ST2STR(x)    \\\n    case x:             \\\n        return #x;\n\n    switch (status) {\n        MH_ST2STR(MH_UNKNOWN)\n        MH_ST2STR(MH_OK)\n        MH_ST2STR(MH_ERROR_ALREADY_INITIALIZED)\n        MH_ST2STR(MH_ERROR_NOT_INITIALIZED)\n        MH_ST2STR(MH_ERROR_ALREADY_CREATED)\n        MH_ST2STR(MH_ERROR_NOT_CREATED)\n        MH_ST2STR(MH_ERROR_ENABLED)\n        MH_ST2STR(MH_ERROR_DISABLED)\n        MH_ST2STR(MH_ERROR_NOT_EXECUTABLE)\n        MH_ST2STR(MH_ERROR_UNSUPPORTED_FUNCTION)\n        MH_ST2STR(MH_ERROR_MEMORY_ALLOC)\n        MH_ST2STR(MH_ERROR_MEMORY_PROTECT)\n        MH_ST2STR(MH_ERROR_MODULE_NOT_FOUND)\n        MH_ST2STR(MH_ERROR_FUNCTION_NOT_FOUND)\n    }\n\n#undef MH_ST2STR\n\n    return \"(unknown)\";\n}\n"
  },
  {
    "path": "third_party/minhook/src/trampoline.c",
    "content": "﻿/*\n *  MinHook - The Minimalistic API Hooking Library for x64/x86\n *  Copyright (C) 2009-2017 Tsuda Kageyu.\n *  All rights reserved.\n *\n *  Redistribution and use in source and binary forms, with or without\n *  modification, are permitted provided that the following conditions\n *  are met:\n *\n *   1. Redistributions of source code must retain the above copyright\n *      notice, this list of conditions and the following disclaimer.\n *   2. Redistributions in binary form must reproduce the above copyright\n *      notice, this list of conditions and the following disclaimer in the\n *      documentation and/or other materials provided with the distribution.\n *\n *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n *  \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\n *  PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER\n *  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n *  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#include <windows.h>\n\n#if defined(_MSC_VER) && !defined(MINHOOK_DISABLE_INTRINSICS)\n    #define ALLOW_INTRINSICS\n    #include <intrin.h>\n#endif\n\n#ifndef ARRAYSIZE\n    #define ARRAYSIZE(A) (sizeof(A)/sizeof((A)[0]))\n#endif\n\n#if defined(_M_X64) || defined(__x86_64__)\n    #include \"./hde/hde64.h\"\n    typedef hde64s HDE;\n    #define HDE_DISASM(code, hs) hde64_disasm(code, hs)\n#else\n    #include \"./hde/hde32.h\"\n    typedef hde32s HDE;\n    #define HDE_DISASM(code, hs) hde32_disasm(code, hs)\n#endif\n\n#include \"trampoline.h\"\n#include \"buffer.h\"\n\n// Maximum size of a trampoline function.\n#if defined(_M_X64) || defined(__x86_64__)\n    #define TRAMPOLINE_MAX_SIZE (MEMORY_SLOT_SIZE - sizeof(JMP_ABS))\n#else\n    #define TRAMPOLINE_MAX_SIZE MEMORY_SLOT_SIZE\n#endif\n\n//-------------------------------------------------------------------------\nstatic BOOL IsCodePadding(LPBYTE pInst, UINT size)\n{\n    UINT i;\n\n    if (pInst[0] != 0x00 && pInst[0] != 0x90 && pInst[0] != 0xCC)\n        return FALSE;\n\n    for (i = 1; i < size; ++i)\n    {\n        if (pInst[i] != pInst[0])\n            return FALSE;\n    }\n    return TRUE;\n}\n\n//-------------------------------------------------------------------------\nBOOL CreateTrampolineFunction(PTRAMPOLINE ct)\n{\n#if defined(_M_X64) || defined(__x86_64__)\n    CALL_ABS call = {\n        0xFF, 0x15, 0x00000002, // FF15 00000002: CALL [RIP+8]\n        0xEB, 0x08,             // EB 08:         JMP +10\n        0x0000000000000000ULL   // Absolute destination address\n    };\n    JMP_ABS jmp = {\n        0xFF, 0x25, 0x00000000, // FF25 00000000: JMP [RIP+6]\n        0x0000000000000000ULL   // Absolute destination address\n    };\n    JCC_ABS jcc = {\n        0x70, 0x0E,             // 7* 0E:         J** +16\n        0xFF, 0x25, 0x00000000, // FF25 00000000: JMP [RIP+6]\n        0x0000000000000000ULL   // Absolute destination address\n    };\n#else\n    CALL_REL call = {\n        0xE8,                   // E8 xxxxxxxx: CALL +5+xxxxxxxx\n        0x00000000              // Relative destination address\n    };\n    JMP_REL jmp = {\n        0xE9,                   // E9 xxxxxxxx: JMP +5+xxxxxxxx\n        0x00000000              // Relative destination address\n    };\n    JCC_REL jcc = {\n        0x0F, 0x80,             // 0F8* xxxxxxxx: J** +6+xxxxxxxx\n        0x00000000              // Relative destination address\n    };\n#endif\n\n    UINT8     oldPos   = 0;\n    UINT8     newPos   = 0;\n    ULONG_PTR jmpDest  = 0;     // Destination address of an internal jump.\n    BOOL      finished = FALSE; // Is the function completed?\n#if defined(_M_X64) || defined(__x86_64__)\n    UINT8     instBuf[16];\n#endif\n\n    ct->patchAbove = FALSE;\n    ct->nIP        = 0;\n\n    do\n    {\n        HDE       hs;\n        UINT      copySize;\n        LPVOID    pCopySrc;\n        ULONG_PTR pOldInst = (ULONG_PTR)ct->pTarget     + oldPos;\n        ULONG_PTR pNewInst = (ULONG_PTR)ct->pTrampoline + newPos;\n\n        copySize = HDE_DISASM((LPVOID)pOldInst, &hs);\n        if (hs.flags & F_ERROR)\n            return FALSE;\n\n        pCopySrc = (LPVOID)pOldInst;\n        if (oldPos >= sizeof(JMP_REL))\n        {\n            // The trampoline function is long enough.\n            // Complete the function with the jump to the target function.\n#if defined(_M_X64) || defined(__x86_64__)\n            jmp.address = pOldInst;\n#else\n            jmp.operand = (UINT32)(pOldInst - (pNewInst + sizeof(jmp)));\n#endif\n            pCopySrc = &jmp;\n            copySize = sizeof(jmp);\n\n            finished = TRUE;\n        }\n#if defined(_M_X64) || defined(__x86_64__)\n        else if ((hs.modrm & 0xC7) == 0x05)\n        {\n            // Instructions using RIP relative addressing. (ModR/M = 00???101B)\n\n            // Modify the RIP relative address.\n            PUINT32 pRelAddr;\n\n            // Avoid using memcpy to reduce the footprint.\n#ifndef ALLOW_INTRINSICS\n            memcpy(instBuf, (LPBYTE)pOldInst, copySize);\n#else\n            __movsb(instBuf, (LPBYTE)pOldInst, copySize);\n#endif\n            pCopySrc = instBuf;\n\n            // Relative address is stored at (instruction length - immediate value length - 4).\n            pRelAddr = (PUINT32)(instBuf + hs.len - ((hs.flags & 0x3C) >> 2) - 4);\n            *pRelAddr\n                = (UINT32)((pOldInst + hs.len + (INT32)hs.disp.disp32) - (pNewInst + hs.len));\n\n            // Complete the function if JMP (FF /4).\n            if (hs.opcode == 0xFF && hs.modrm_reg == 4)\n                finished = TRUE;\n        }\n#endif\n        else if (hs.opcode == 0xE8)\n        {\n            // Direct relative CALL\n            ULONG_PTR dest = pOldInst + hs.len + (INT32)hs.imm.imm32;\n#if defined(_M_X64) || defined(__x86_64__)\n            call.address = dest;\n#else\n            call.operand = (UINT32)(dest - (pNewInst + sizeof(call)));\n#endif\n            pCopySrc = &call;\n            copySize = sizeof(call);\n        }\n        else if ((hs.opcode & 0xFD) == 0xE9)\n        {\n            // Direct relative JMP (EB or E9)\n            ULONG_PTR dest = pOldInst + hs.len;\n\n            if (hs.opcode == 0xEB) // isShort jmp\n                dest += (INT8)hs.imm.imm8;\n            else\n                dest += (INT32)hs.imm.imm32;\n\n            // Simply copy an internal jump.\n            if ((ULONG_PTR)ct->pTarget <= dest\n                && dest < ((ULONG_PTR)ct->pTarget + sizeof(JMP_REL)))\n            {\n                if (jmpDest < dest)\n                    jmpDest = dest;\n            }\n            else\n            {\n#if defined(_M_X64) || defined(__x86_64__)\n                jmp.address = dest;\n#else\n                jmp.operand = (UINT32)(dest - (pNewInst + sizeof(jmp)));\n#endif\n                pCopySrc = &jmp;\n                copySize = sizeof(jmp);\n\n                // Exit the function if it is not in the branch.\n                finished = (pOldInst >= jmpDest);\n            }\n        }\n        else if ((hs.opcode & 0xF0) == 0x70\n            || (hs.opcode & 0xFC) == 0xE0\n            || (hs.opcode2 & 0xF0) == 0x80)\n        {\n            // Direct relative Jcc\n            ULONG_PTR dest = pOldInst + hs.len;\n\n            if ((hs.opcode & 0xF0) == 0x70      // Jcc\n                || (hs.opcode & 0xFC) == 0xE0)  // LOOPNZ/LOOPZ/LOOP/JECXZ\n                dest += (INT8)hs.imm.imm8;\n            else\n                dest += (INT32)hs.imm.imm32;\n\n            // Simply copy an internal jump.\n            if ((ULONG_PTR)ct->pTarget <= dest\n                && dest < ((ULONG_PTR)ct->pTarget + sizeof(JMP_REL)))\n            {\n                if (jmpDest < dest)\n                    jmpDest = dest;\n            }\n            else if ((hs.opcode & 0xFC) == 0xE0)\n            {\n                // LOOPNZ/LOOPZ/LOOP/JCXZ/JECXZ to the outside are not supported.\n                return FALSE;\n            }\n            else\n            {\n                UINT8 cond = ((hs.opcode != 0x0F ? hs.opcode : hs.opcode2) & 0x0F);\n#if defined(_M_X64) || defined(__x86_64__)\n                // Invert the condition in x64 mode to simplify the conditional jump logic.\n                jcc.opcode  = 0x71 ^ cond;\n                jcc.address = dest;\n#else\n                jcc.opcode1 = 0x80 | cond;\n                jcc.operand = (UINT32)(dest - (pNewInst + sizeof(jcc)));\n#endif\n                pCopySrc = &jcc;\n                copySize = sizeof(jcc);\n            }\n        }\n        else if ((hs.opcode & 0xFE) == 0xC2)\n        {\n            // RET (C2 or C3)\n\n            // Complete the function if not in a branch.\n            finished = (pOldInst >= jmpDest);\n        }\n\n        // Can't alter the instruction length in a branch.\n        if (pOldInst < jmpDest && copySize != hs.len)\n            return FALSE;\n\n        // Trampoline function is too large.\n        if ((newPos + copySize) > TRAMPOLINE_MAX_SIZE)\n            return FALSE;\n\n        // Trampoline function has too many instructions.\n        if (ct->nIP >= ARRAYSIZE(ct->oldIPs))\n            return FALSE;\n\n        ct->oldIPs[ct->nIP] = oldPos;\n        ct->newIPs[ct->nIP] = newPos;\n        ct->nIP++;\n\n        // Avoid using memcpy to reduce the footprint.\n#ifndef ALLOW_INTRINSICS\n        memcpy((LPBYTE)ct->pTrampoline + newPos, pCopySrc, copySize);\n#else\n        __movsb((LPBYTE)ct->pTrampoline + newPos, (LPBYTE)pCopySrc, copySize);\n#endif\n        newPos += copySize;\n        oldPos += hs.len;\n    } while (!finished);\n\n    // Is there enough place for a long jump?\n    if (oldPos < sizeof(JMP_REL)\n        && !IsCodePadding((LPBYTE)ct->pTarget + oldPos, sizeof(JMP_REL) - oldPos))\n    {\n        // Is there enough place for a short jump?\n        if (oldPos < sizeof(JMP_REL_SHORT)\n            && !IsCodePadding((LPBYTE)ct->pTarget + oldPos, sizeof(JMP_REL_SHORT) - oldPos))\n        {\n            return FALSE;\n        }\n\n        // Can we place the long jump above the function?\n        if (!IsExecutableAddress((LPBYTE)ct->pTarget - sizeof(JMP_REL)))\n            return FALSE;\n\n        if (!IsCodePadding((LPBYTE)ct->pTarget - sizeof(JMP_REL), sizeof(JMP_REL)))\n            return FALSE;\n\n        ct->patchAbove = TRUE;\n    }\n\n#if defined(_M_X64) || defined(__x86_64__)\n    // Create a relay function.\n    jmp.address = (ULONG_PTR)ct->pDetour;\n\n    ct->pRelay = (LPBYTE)ct->pTrampoline + newPos;\n    memcpy(ct->pRelay, &jmp, sizeof(jmp));\n#endif\n\n    return TRUE;\n}\n"
  },
  {
    "path": "third_party/minhook/src/trampoline.h",
    "content": "﻿/*\n *  MinHook - The Minimalistic API Hooking Library for x64/x86\n *  Copyright (C) 2009-2017 Tsuda Kageyu.\n *  All rights reserved.\n *\n *  Redistribution and use in source and binary forms, with or without\n *  modification, are permitted provided that the following conditions\n *  are met:\n *\n *   1. Redistributions of source code must retain the above copyright\n *      notice, this list of conditions and the following disclaimer.\n *   2. Redistributions in binary form must reproduce the above copyright\n *      notice, this list of conditions and the following disclaimer in the\n *      documentation and/or other materials provided with the distribution.\n *\n *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n *  \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\n *  PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER\n *  OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n *  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n *  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#pragma once\n\n#pragma pack(push, 1)\n\n// Structs for writing x86/x64 instructions.\n\n// 8-bit relative jump.\ntypedef struct _JMP_REL_SHORT\n{\n    UINT8  opcode;      // EB xx: JMP +2+xx\n    UINT8  operand;\n} JMP_REL_SHORT, *PJMP_REL_SHORT;\n\n// 32-bit direct relative jump/call.\ntypedef struct _JMP_REL\n{\n    UINT8  opcode;      // E9/E8 xxxxxxxx: JMP/CALL +5+xxxxxxxx\n    UINT32 operand;     // Relative destination address\n} JMP_REL, *PJMP_REL, CALL_REL;\n\n// 64-bit indirect absolute jump.\ntypedef struct _JMP_ABS\n{\n    UINT8  opcode0;     // FF25 00000000: JMP [+6]\n    UINT8  opcode1;\n    UINT32 dummy;\n    UINT64 address;     // Absolute destination address\n} JMP_ABS, *PJMP_ABS;\n\n// 64-bit indirect absolute call.\ntypedef struct _CALL_ABS\n{\n    UINT8  opcode0;     // FF15 00000002: CALL [+6]\n    UINT8  opcode1;\n    UINT32 dummy0;\n    UINT8  dummy1;      // EB 08:         JMP +10\n    UINT8  dummy2;\n    UINT64 address;     // Absolute destination address\n} CALL_ABS;\n\n// 32-bit direct relative conditional jumps.\ntypedef struct _JCC_REL\n{\n    UINT8  opcode0;     // 0F8* xxxxxxxx: J** +6+xxxxxxxx\n    UINT8  opcode1;\n    UINT32 operand;     // Relative destination address\n} JCC_REL;\n\n// 64bit indirect absolute conditional jumps that x64 lacks.\ntypedef struct _JCC_ABS\n{\n    UINT8  opcode;      // 7* 0E:         J** +16\n    UINT8  dummy0;\n    UINT8  dummy1;      // FF25 00000000: JMP [+6]\n    UINT8  dummy2;\n    UINT32 dummy3;\n    UINT64 address;     // Absolute destination address\n} JCC_ABS;\n\n#pragma pack(pop)\n\ntypedef struct _TRAMPOLINE\n{\n    LPVOID pTarget;         // [In] Address of the target function.\n    LPVOID pDetour;         // [In] Address of the detour function.\n    LPVOID pTrampoline;     // [In] Buffer address for the trampoline and relay function.\n\n#if defined(_M_X64) || defined(__x86_64__)\n    LPVOID pRelay;          // [Out] Address of the relay function.\n#endif\n    BOOL   patchAbove;      // [Out] Should use the hot patch area?\n    UINT   nIP;             // [Out] Number of the instruction boundaries.\n    UINT8  oldIPs[8];       // [Out] Instruction boundaries of the target function.\n    UINT8  newIPs[8];       // [Out] Instruction boundaries of the trampoline function.\n} TRAMPOLINE, *PTRAMPOLINE;\n\nBOOL CreateTrampolineFunction(PTRAMPOLINE ct);\n"
  },
  {
    "path": "windbg.h",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n * \n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n * \n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n * \n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#ifndef WINDBG_H\n#define WINDBG_H\n#include <windows.h>\n#include <QDateTime>\n#include <QDir>\n#include <dbghelp.h>\n// 链接dbghelp库\n#pragma comment(lib, \"dbghelp.lib\")\n\ntypedef BOOL(WINAPI *MINIDUMPWRITEDUMP)(\n    HANDLE hProcess,\n    DWORD ProcessId,\n    HANDLE hFile,\n    MINIDUMP_TYPE DumpType,\n    PMINIDUMP_EXCEPTION_INFORMATION ExceptionParam,\n    PMINIDUMP_USER_STREAM_INFORMATION UserStreamParam,\n    PMINIDUMP_CALLBACK_INFORMATION CallbackParam);\n\n// 自定义异常处理函数\nLONG WINAPI createMiniDump(EXCEPTION_POINTERS *exceptionPointers)\n{\n    // 创建dump文件目录\n    QDir dumpDir(QDir::currentPath() + \"/dumps\");\n    if (!dumpDir.exists())\n    {\n        dumpDir.mkpath(\".\");\n    }\n\n    // 生成带时间戳的文件名\n    QString dumpFileName =\n        QString(\"%1/crash_%2.dmp\")\n            .arg(dumpDir.absolutePath())\n            .arg(QDateTime::currentDateTime().toString(\"yyyy-MM-dd_hh-mm-ss\"));\n\n    // 创建文件\n    HANDLE hFile = CreateFile(dumpFileName.toStdWString().c_str(),\n                              GENERIC_WRITE, FILE_SHARE_READ, NULL,\n                              CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);\n\n    if (hFile == INVALID_HANDLE_VALUE)\n    {\n        return EXCEPTION_CONTINUE_SEARCH;\n    }\n\n    // 加载dbghelp.dll\n    HMODULE dbgHelp = LoadLibrary(L\"dbghelp.dll\");\n    if (!dbgHelp)\n    {\n        CloseHandle(hFile);\n        return EXCEPTION_CONTINUE_SEARCH;\n    }\n\n    // 获取MiniDumpWriteDump函数地址\n    MINIDUMPWRITEDUMP miniDumpWriteDump =\n        (MINIDUMPWRITEDUMP)GetProcAddress(dbgHelp, \"MiniDumpWriteDump\");\n\n    if (!miniDumpWriteDump)\n    {\n        FreeLibrary(dbgHelp);\n        CloseHandle(hFile);\n        return EXCEPTION_CONTINUE_SEARCH;\n    }\n\n    // 配置异常信息\n    MINIDUMP_EXCEPTION_INFORMATION exInfo;\n    exInfo.ThreadId = GetCurrentThreadId();\n    exInfo.ExceptionPointers = exceptionPointers;\n    exInfo.ClientPointers = FALSE;\n\n    // 设置dump类型\n    MINIDUMP_TYPE dumpType =\n        (MINIDUMP_TYPE)(MiniDumpWithFullMemory |      // 包含完整内存\n                        MiniDumpWithFullMemoryInfo |  // 包含内存信息\n                        MiniDumpWithHandleData |      // 包含句柄数据\n                        MiniDumpWithThreadInfo |      // 包含线程信息\n                        MiniDumpWithUnloadedModules   // 包含卸载的模块\n        );\n\n    // 写入dump文件\n    BOOL success = miniDumpWriteDump(GetCurrentProcess(), GetCurrentProcessId(),\n                                     hFile, dumpType, &exInfo, NULL, NULL);\n\n    // 清理资源\n    FreeLibrary(dbgHelp);\n    CloseHandle(hFile);\n\n    // 显示通知\n    if (success)\n    {\n        std::wstring message =\n            QString(\"程序遇到错误已退出，崩溃转储文件已保存到：\\n%1\")\n                .arg(dumpFileName)\n                .toStdWString();\n        MessageBoxW(nullptr, message.c_str(), L\"程序崩溃\",\n                    MB_OK | MB_ICONERROR);\n    }\n\n    return EXCEPTION_EXECUTE_HANDLER;\n}\n\n#endif  // WINDBG_H\n"
  },
  {
    "path": "winutils.cpp",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#include \"winutils.h\"\n#include <QDebug>\n#include <QFileInfo>\n#include <psapi.h>\n#include <string>\n#include <tlhelp32.h>\n#include <wchar.h>\n#include <winternl.h>\nstatic QSet<std::wstring> systemNames = {\n    L\"svchost.exe\",\n    L\"wininit.exe\",\n    L\"RuntimeBroker.exe\",\n};\n\nwinutils::winutils()\n{\n}\n\nbool winutils::injectDll(DWORD processId, const QString &dllPath)\n{\n    HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processId);\n    if (!hProcess)\n    {\n        qDebug() << \"Failed to open process:\" << GetLastError();\n        return false;\n    }\n\n    if (checkDllExist(processId, dllPath))\n    {\n        qDebug() << \"Process already have been injected\";\n        return true;\n    }\n    else if (injectDllViaCRTW(processId, dllPath))\n    {\n        return true;\n    }\n    else if (injectDllViaCRTA(processId, dllPath))\n    {\n        return true;\n    }\n\n    injectDllViaAPCW(processId, dllPath);\n    injectDllViaAPCA(processId, dllPath);\n    if (checkDllExist(processId, dllPath))\n    {\n        return true;\n    }\n    else if (injectDllViaWHKW(processId, dllPath))\n    {\n        return true;\n    }\n    else if (injectDllViaWHKA(processId, dllPath))\n    {\n        return true;\n    }\n    else\n    {\n        return false;\n    }\n}\n\nbool winutils::injectDllViaCRTA(DWORD processId, const QString &dllPath)\n{\n    HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processId);\n    if (!hProcess)\n    {\n        qDebug() << \"Failed to open process:\" << GetLastError();\n        return false;\n    }\n\n    if (checkDllExist(processId, dllPath))\n    {\n        qDebug() << \"Process already have been injected\";\n        return true;\n    }\n    SIZE_T pathSize = (dllPath.size() + 1) * sizeof(char);\n    LPVOID pDllPath =\n        VirtualAllocEx(hProcess,\n                       nullptr,\n                       pathSize,\n                       MEM_COMMIT | MEM_RESERVE,\n                       PAGE_EXECUTE_READWRITE);\n    if (!pDllPath)\n    {\n        qDebug() << \"Failed to allocate memory in target process:\"\n                 << GetLastError();\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    if (!WriteProcessMemory(hProcess,\n                            pDllPath,\n                            dllPath.toStdString().c_str(),\n                            pathSize,\n                            nullptr))\n    {\n        qDebug() << \"Failed to write memory in target process:\"\n                 << GetLastError();\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    HMODULE hKernel32 = GetModuleHandle(L\"kernel32.dll\");\n    if (!hKernel32)\n    {\n        qDebug() << \"Failed to get handle for kernel32.dll:\" << GetLastError();\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    FARPROC pLoadLibraryA = GetProcAddress(hKernel32, \"LoadLibraryA\");\n    if (!pLoadLibraryA)\n    {\n        qDebug() << \"Failed to get address of LoadLibraryA:\" << GetLastError();\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    HANDLE hThread = CreateRemoteThread(hProcess,\n                                        nullptr,\n                                        0,\n                                        (LPTHREAD_START_ROUTINE)pLoadLibraryA,\n                                        pDllPath,\n                                        0,\n                                        nullptr);\n    if (!hThread)\n    {\n        qDebug() << \"Failed to create remote thread:\" << GetLastError();\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    WaitForSingleObject(hThread, INFINITE);\n\n    // 检查LoadLibrary是否执行成功\n    DWORD exitCode = 0;\n    if (GetExitCodeThread(hThread, &exitCode))\n    {\n        qDebug() << \"Remote thread exit code:\" << exitCode;\n        // LoadLibrary返回的是模块句柄，如果为0则失败\n        if (exitCode == 0)\n        {\n            VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n            CloseHandle(hProcess);\n            CloseHandle(hThread);\n            qDebug() << \"LoadLibrary failed in remote process\";\n            return false;\n        }\n    }\n\n    VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n    CloseHandle(hThread);\n    CloseHandle(hProcess);\n\n    return true;\n}\n\nbool winutils::injectDllViaCRTW(DWORD processId, const QString &dllPath)\n{\n    HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processId);\n    if (!hProcess)\n    {\n        qDebug() << \"Failed to open process:\" << GetLastError();\n        return false;\n    }\n\n    if (checkDllExist(processId, dllPath))\n    {\n        qDebug() << \"Process already have been injected\";\n        return true;\n    }\n    SIZE_T pathSize = (dllPath.size() + 1) * sizeof(wchar_t);\n    LPVOID pDllPath =\n        VirtualAllocEx(hProcess, nullptr, pathSize, MEM_COMMIT | MEM_RESERVE,\n                       PAGE_EXECUTE_READWRITE);\n    if (!pDllPath)\n    {\n        qDebug() << \"Failed to allocate memory in target process:\"\n                 << GetLastError();\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    if (!WriteProcessMemory(hProcess,\n                            pDllPath,\n                            dllPath.toStdWString().c_str(),\n                            pathSize,\n                            nullptr))\n    {\n        qDebug() << \"Failed to write memory in target process:\"\n                 << GetLastError();\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    HMODULE hKernel32 = GetModuleHandle(L\"kernel32.dll\");\n    if (!hKernel32)\n    {\n        qDebug() << \"Failed to get handle for kernel32.dll:\" << GetLastError();\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    FARPROC pLoadLibraryW = GetProcAddress(hKernel32, \"LoadLibraryW\");\n    if (!pLoadLibraryW)\n    {\n        qDebug() << \"Failed to get address of LoadLibraryW:\" << GetLastError();\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    HANDLE hThread = CreateRemoteThread(hProcess,\n                                        nullptr,\n                                        0,\n                                        (LPTHREAD_START_ROUTINE)pLoadLibraryW,\n                                        pDllPath,\n                                        0,\n                                        nullptr);\n    if (!hThread)\n    {\n        qDebug() << \"Failed to create remote thread:\" << GetLastError();\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    WaitForSingleObject(hThread, INFINITE);\n\n    // 检查LoadLibrary是否执行成功\n    DWORD exitCode = 0;\n    if (GetExitCodeThread(hThread, &exitCode))\n    {\n        qDebug() << \"Remote thread exit code:\" << exitCode;\n        // LoadLibrary返回的是模块句柄，如果为0则失败\n        if (exitCode == 0)\n        {\n            VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n            CloseHandle(hProcess);\n            CloseHandle(hThread);\n            qDebug() << \"LoadLibrary failed in remote process\";\n            return false;\n        }\n    }\n\n    VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n    CloseHandle(hThread);\n    CloseHandle(hProcess);\n\n    return true;\n}\n\nbool winutils::injectDllViaAPCA(DWORD processId, const QString &dllPath)\n{\n    HANDLE hProcess =\n        OpenProcess(PROCESS_ALL_ACCESS,\n                    FALSE,\n                    processId);\n\n    if (!hProcess)\n    {\n        qDebug() << \"Failed to open process: \" << GetLastError();\n        return false;\n    }\n\n    if (checkDllExist(processId, dllPath))\n    {\n        qDebug() << \"Process already have been injected\";\n        return true;\n    }\n\n    // 在目标进程中分配内存并写入DLL路径\n    SIZE_T pathSize = (dllPath.toStdString().size() + 1) * sizeof(char);\n    LPVOID pDllPath = VirtualAllocEx(hProcess,\n                                     NULL,\n                                     pathSize,\n                                     MEM_COMMIT,\n                                     PAGE_READWRITE);\n\n    if (!pDllPath)\n    {\n        qDebug() << \"Failed to allocate memory: \" << GetLastError();\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    if (!WriteProcessMemory(hProcess, pDllPath, dllPath.toStdString().c_str(),\n                            pathSize, NULL))\n    {\n        qDebug() << \"Failed to write memory: \" << GetLastError();\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    // 获取LoadLibraryW的地址\n    HMODULE hKernel32 = GetModuleHandle(L\"kernel32.dll\");\n    if (!hKernel32)\n    {\n        qDebug() << \"Failed to get kernel32 handle\";\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    FARPROC pLoadLibraryA = GetProcAddress(hKernel32, \"LoadLibraryA\");\n    if (!pLoadLibraryA)\n    {\n        qDebug() << \"Failed to get LoadLibraryA address\";\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    // 获取进程中的所有线程\n    DWORD threadId = getProcessMainThread(processId);\n    if (!threadId)\n    {\n        qDebug() << \"No threads found in the process\";\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    // 向目标进程的所有线程队列中添加APC调用\n    bool success = false;\n\n    // 打开线程\n    HANDLE hThread = OpenThread(THREAD_SET_CONTEXT, FALSE, threadId);\n    if (hThread)\n    {\n        // 将LoadLibraryA作为APC函数加入队列\n        PostThreadMessageA(threadId, WM_PAINT, 0, 0);\n        DWORD result =\n            QueueUserAPC((PAPCFUNC)pLoadLibraryA, hThread, (ULONG_PTR)pDllPath);\n        PostThreadMessageA(threadId, WM_PAINT, 0, 0);\n        if (result != 0)\n        {\n            success = true;\n            qDebug() << \"APC queued to thread \" << threadId;\n        }\n\n        CloseHandle(hThread);\n    }\n\n    if (!success)\n    {\n        qDebug() << \"Failed to queue APC to any thread\";\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    // 注意：我们不释放分配的内存，因为APC函数尚未执行\n    // 内存将在DLL加载后释放\n\n    CloseHandle(hProcess);\n    return true;\n}\n\nbool winutils::injectDllViaAPCW(DWORD processId, const QString &dllPath)\n{\n    HANDLE hProcess =\n        OpenProcess(PROCESS_ALL_ACCESS,\n                    FALSE,\n                    processId);\n\n    if (!hProcess)\n    {\n        qDebug() << \"Failed to open process: \" << GetLastError();\n        return false;\n    }\n\n    if (checkDllExist(processId, dllPath))\n    {\n        qDebug() << \"Process already have been injected\";\n        return true;\n    }\n\n    // 在目标进程中分配内存并写入DLL路径\n    SIZE_T pathSize = (dllPath.toStdWString().size() + 1) * sizeof(wchar_t);\n    LPVOID pDllPath = VirtualAllocEx(hProcess,\n                                     NULL,\n                                     pathSize,\n                                     MEM_COMMIT,\n                                     PAGE_READWRITE);\n\n    if (!pDllPath)\n    {\n        qDebug() << \"Failed to allocate memory: \" << GetLastError();\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    if (!WriteProcessMemory(hProcess,\n                            pDllPath,\n                            dllPath.toStdWString().c_str(),\n                            pathSize,\n                            NULL))\n    {\n        qDebug() << \"Failed to write memory: \" << GetLastError();\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    // 获取LoadLibraryW的地址\n    HMODULE hKernel32 = GetModuleHandle(L\"kernel32.dll\");\n    if (!hKernel32)\n    {\n        qDebug() << \"Failed to get kernel32 handle\";\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    FARPROC pLoadLibraryW = GetProcAddress(hKernel32, \"LoadLibraryW\");\n    if (!pLoadLibraryW)\n    {\n        qDebug() << \"Failed to get LoadLibraryW address\";\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    // 获取进程中的所有线程\n    DWORD threadId = getProcessMainThread(processId);\n    if (!threadId)\n    {\n        qDebug() << \"No threads found in the process\";\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    // 向目标进程的所有线程队列中添加APC调用\n    bool success = false;\n\n    // 打开线程\n    HANDLE hThread = OpenThread(THREAD_SET_CONTEXT, FALSE, threadId);\n    if (hThread)\n    {\n        // 将LoadLibraryW作为APC函数加入队列\n        PostThreadMessageW(threadId, WM_PAINT, 0, 0);\n        DWORD result =\n            QueueUserAPC((PAPCFUNC)pLoadLibraryW, hThread, (ULONG_PTR)pDllPath);\n        PostThreadMessageW(threadId, WM_PAINT, 0, 0);\n        if (result != 0)\n        {\n            success = true;\n            qDebug() << \"APC queued to thread \" << threadId;\n        }\n\n        CloseHandle(hThread);\n    }\n\n    if (!success)\n    {\n        qDebug() << \"Failed to queue APC to any thread\";\n        VirtualFreeEx(hProcess, pDllPath, 0, MEM_RELEASE);\n        CloseHandle(hProcess);\n        return false;\n    }\n\n    // 注意：我们不释放分配的内存，因为APC函数尚未执行\n    // 内存将在DLL加载后释放\n\n    CloseHandle(hProcess);\n    return true;\n}\n\nbool winutils::injectDllViaWHKA(DWORD processId, const QString &dllPath)\n{\n    if (checkProcessProtection(processId))\n    {\n        qDebug() << \"进程被保护 进程ID: \" << processId;\n        return false;\n    }\n\n    // 1. 加载DLL到当前进程\n    HMODULE hMod = LoadLibraryA(dllPath.toStdString().c_str());\n    if (!hMod)\n        return false;\n\n    // 2. 获取Hook过程的地址\n    HOOKPROC hookProc = (HOOKPROC)GetProcAddress(hMod, \"HookProc\");\n    if (!hookProc)\n        return false;\n\n    // 3. 获取目标线程ID\n    DWORD threadId = getProcessMainThread(processId);\n    if (threadId == 0)\n        return false;\n\n    // 4. 安装Hook\n    HHOOK hHook = SetWindowsHookExA(WH_CBT,   // Hook类型\n                                    hookProc, // Hook过程\n                                    hMod,     // DLL模块句柄\n                                    threadId  // 目标线程ID\n                                    );\n\n    if (!hHook)\n        return false;\n    // 5. 触发Hook执行\n    PostThreadMessageA(threadId, WM_NULL, 0, 0);\n    Sleep(5000);\n    UnhookWindowsHookEx(hHook);\n\n    return true;\n}\n\nbool winutils::injectDllViaWHKW(DWORD processId, const QString &dllPath)\n{\n    if (checkProcessProtection(processId))\n    {\n        qDebug() << \"进程被保护 进程ID: \" << processId;\n        return false;\n    }\n\n    // 1. 加载DLL到当前进程\n    HMODULE hMod = LoadLibraryW(dllPath.toStdWString().c_str());\n    if (!hMod)\n        return false;\n\n    // 2. 获取Hook过程的地址\n    HOOKPROC hookProc = (HOOKPROC)GetProcAddress(hMod, \"HookProc\");\n    if (!hookProc)\n        return false;\n\n    // 3. 获取目标线程ID\n    DWORD threadId = getProcessMainThread(processId);\n    if (threadId == 0)\n        return false;\n\n    // 4. 安装Hook\n    HHOOK hHook = SetWindowsHookExW(WH_CBT,   // Hook类型\n                                    hookProc, // Hook过程\n                                    hMod,     // DLL模块句柄\n                                    threadId  // 目标线程ID\n                                    );\n\n    if (!hHook)\n        return false;\n    // 5. 触发Hook执行\n    PostThreadMessageW(threadId, WM_NULL, 0, 0);\n    Sleep(5000);\n    UnhookWindowsHookEx(hHook);\n\n    return true;\n}\n\nbool winutils::unhookDll(DWORD processId, const QString &dllPath)\n{\n    HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processId);\n    if (!hProcess)\n    {\n        qDebug() << \"Failed to open process:\" << GetLastError();\n        return false;\n    }\n\n    HMODULE hModules[1024];\n    DWORD cbNeeded;\n    if (EnumProcessModules(hProcess, hModules, sizeof(hModules), &cbNeeded))\n    {\n        for (unsigned int i = 0; i < (cbNeeded / sizeof(HMODULE)); i++)\n        {\n            TCHAR moduleName[MAX_PATH];\n            if (GetModuleFileNameEx(hProcess, hModules[i], moduleName,\n                                    sizeof(moduleName) / sizeof(TCHAR)))\n            {\n#ifdef UNICODE\n                bool isDll = dllPath.toStdWString() == moduleName;\n#else\n                bool isDll = dllPath.toStdString() == moduleName;\n#endif\n                if (isDll)\n                {\n                    FARPROC pFreeLibrary = GetProcAddress(\n                        GetModuleHandle(L\"kernel32.dll\"), \"FreeLibrary\");\n                    if (!pFreeLibrary)\n                    {\n                        qDebug() << \"Failed to get address of FreeLibrary:\"\n                                 << GetLastError();\n                        CloseHandle(hProcess);\n                        return false;\n                    }\n\n                    HANDLE hThread =\n                        CreateRemoteThread(hProcess, nullptr, 0,\n                                           (LPTHREAD_START_ROUTINE)pFreeLibrary,\n                                           hModules[i], 0, nullptr);\n                    if (!hThread)\n                    {\n                        qDebug() << \"Failed to create remote thread for \"\n                            \"FreeLibrary:\"\n                                 << GetLastError();\n                        CloseHandle(hProcess);\n                        return false;\n                    }\n\n                    WaitForSingleObject(hThread, INFINITE);\n                    CloseHandle(hThread);\n                    CloseHandle(hProcess);\n                    return true;\n                }\n            }\n        }\n    }\n\n    CloseHandle(hProcess);\n    return false;\n}\n\nbool winutils::checkDllExist(DWORD processId, const QString &dllPath)\n{\n    HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,\n                                  FALSE,\n                                  processId);\n    if (!hProcess)\n    {\n        qDebug() << \"打开进程失败:\" << GetLastError();\n        return false;\n    }\n\n    bool dllFound = false;\n    HMODULE hModules[1024];\n    DWORD cbNeeded;\n\n    // 获取进程中所有已加载的模块\n    if (EnumProcessModules(hProcess, hModules, sizeof(hModules), &cbNeeded))\n    {\n        DWORD moduleCount = cbNeeded / sizeof(HMODULE);\n        for (DWORD i = 0; i < moduleCount; i++)\n        {\n            TCHAR moduleName[MAX_PATH] = {0};\n\n            // 获取模块的完整路径\n            if (GetModuleFileNameExW(hProcess, hModules[i], moduleName,\n                                     sizeof(moduleName) / sizeof(TCHAR)))\n            {\n#ifdef UNICODE\n                bool isDll = dllPath.toStdWString() == moduleName;\n#else\n                bool isDll = dllPath.toStdString() == moduleName;\n#endif\n                if (isDll)\n                {\n                    dllFound = true;\n                    break;\n                }\n            }\n        }\n    }\n    else\n    {\n        qDebug() << \"枚举进程模块失败:\" << GetLastError();\n    }\n\n    CloseHandle(hProcess);\n    return dllFound;\n}\n\nbool winutils::checkProcessProtection(DWORD processId)\n{\n    HANDLE hProcess =\n        OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, FALSE, processId);\n    if (!hProcess)\n    {\n        qDebug() << \"Cannot open process - likely protected\";\n        return true; // 可能被保护\n    }\n\n    // 检查是否是受保护进程\n    PROCESS_PROTECTION_LEVEL_INFORMATION protectionInfo = {};\n    DWORD returnLength;\n\n    if (GetProcessInformation(hProcess, ProcessProtectionLevelInfo,\n                              &protectionInfo, sizeof(protectionInfo)))\n    {\n        CloseHandle(hProcess);\n        return protectionInfo.ProtectionLevel != PROTECTION_LEVEL_NONE;\n    }\n\n    CloseHandle(hProcess);\n    return false;\n}\n\nvoid winutils::setAutoStart(bool enable,\n                            const QString &appName,\n                            const QString &execPath)\n{\n    TaskScheduler scheduler;\n\n    if (enable)\n    {\n        scheduler.createStartupShortcut(appName, execPath);\n    }\n    else\n    {\n        scheduler.deleteStartupShortcut(appName);\n    }\n}\n\nbool winutils::isAutoStartEnabled(const QString &appName)\n{\n    TaskScheduler scheduler;\n    return scheduler.isStartupShortcutExists(appName);\n}\n\ntypedef struct _OSVERSIONINFOEXW RTL_OSVERSIONINFOEXW, *PRTL_OSVERSIONINFOEXW;\ntypedef LONG NTSTATUS;\ntypedef NTSTATUS (WINAPI *fnRtlGetVersion)(PRTL_OSVERSIONINFOEXW);\n\nBOOL winutils::getWindowsVersion(DWORD *majorVersion,\n                                 DWORD *minorVersion,\n                                 DWORD *buildNumber)\n{\n    HMODULE hNtdll = GetModuleHandleW(L\"ntdll.dll\");\n    if (!hNtdll)\n        return FALSE;\n\n    fnRtlGetVersion RtlGetVersion =\n        (fnRtlGetVersion)GetProcAddress(hNtdll, \"RtlGetVersion\");\n    if (!RtlGetVersion)\n        return FALSE;\n\n    RTL_OSVERSIONINFOEXW osInfo;\n    ZeroMemory(&osInfo, sizeof(RTL_OSVERSIONINFOEXW));\n    osInfo.dwOSVersionInfoSize = sizeof(RTL_OSVERSIONINFOEXW);\n\n    NTSTATUS status = RtlGetVersion(&osInfo);\n    if (status != 0)\n        return FALSE;\n\n    if (majorVersion)\n        *majorVersion = osInfo.dwMajorVersion;\n    if (minorVersion)\n        *minorVersion = osInfo.dwMinorVersion;\n    if (buildNumber)\n        *buildNumber = osInfo.dwBuildNumber;\n\n    return TRUE;\n}\n\nQString winutils::getWindowsVersion()\n{\n    static char version[100] = {0};\n    DWORD major, minor, build;\n\n    if (!getWindowsVersion(&major, &minor, &build))\n        return \"Unknown Windows Version\";\n\n    // 确定Windows版本\n    if (major == 10)\n    {\n        if (build >= 22000)\n        {\n            sprintf(version, \"Windows 11 (Build %lu)\", build);\n        }\n        else\n        {\n            sprintf(version, \"Windows 10 (Build %lu)\", build);\n        }\n    }\n    else if (major == 6)\n    {\n        switch (minor)\n        {\n        case 3:\n            sprintf(version, \"Windows 8.1 (Build %lu)\", build);\n            break;\n        case 2:\n            sprintf(version, \"Windows 8 (Build %lu)\", build);\n            break;\n        case 1:\n            sprintf(version, \"Windows 7 (Build %lu)\", build);\n            break;\n        case 0:\n            sprintf(version, \"Windows Vista (Build %lu)\", build);\n            break;\n        default:\n            sprintf(version, \"Windows NT %lu.%lu (Build %lu)\", major, minor,\n                    build);\n        }\n    }\n    else if (major == 5)\n    {\n        switch (minor)\n        {\n        case 2:\n            sprintf(version, \"Windows Server 2003 (Build %lu)\", build);\n            break;\n        case 1:\n            sprintf(version, \"Windows XP (Build %lu)\", build);\n            break;\n        case 0:\n            sprintf(version, \"Windows 2000 (Build %lu)\", build);\n            break;\n        default:\n            sprintf(version, \"Windows NT %lu.%lu (Build %lu)\", major, minor,\n                    build);\n        }\n    }\n    else\n    {\n        sprintf(version, \"Windows NT %lu.%lu (Build %lu)\", major, minor, build);\n    }\n    return version;\n}\n\nQList<ProcessInfo> winutils::getProcessList()\n{\n    QList<ProcessInfo> processList;\n\n    HANDLE hProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);\n    if (hProcessSnap == INVALID_HANDLE_VALUE)\n    {\n        qDebug() << \"创建进程快照失败: \" << GetLastError();\n        return processList;\n    }\n\n    PROCESSENTRY32 pe32;\n    pe32.dwSize = sizeof(PROCESSENTRY32);\n\n    if (!Process32First(hProcessSnap, &pe32))\n    {\n        qDebug() << \"获取首个进程信息失败: \" << GetLastError();\n        CloseHandle(hProcessSnap);\n        return processList;\n    }\n\n    do\n    {\n        if (systemNames.contains(pe32.szExeFile))\n        {\n            continue;\n        }\n        ProcessInfo info;\n        info.pid = pe32.th32ProcessID;\n        info.parentPid = pe32.th32ParentProcessID;\n        info.name = QString::fromWCharArray(pe32.szExeFile);\n        info.threadCount = pe32.cntThreads;\n\n        // 获取内存使用和优先级信息\n        HANDLE hProcess = OpenProcess(\n            PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, info.pid);\n        if (hProcess)\n        {\n            PROCESS_MEMORY_COUNTERS pmc;\n            if (GetProcessMemoryInfo(hProcess, &pmc, sizeof(pmc)))\n            {\n                info.memoryUsage = pmc.WorkingSetSize;\n            }\n            else\n            {\n                info.memoryUsage = 0;\n            }\n            BOOL wow64Process = FALSE;\n            IsWow64Process(hProcess, &wow64Process);\n            info.is64Bit = !wow64Process;\n            info.priorityClass = GetPriorityClass(hProcess);\n            CloseHandle(hProcess);\n        }\n        else\n        {\n            info.memoryUsage = 0;\n            info.priorityClass = 0;\n        }\n\n        processList.append(info);\n    } while (Process32Next(hProcessSnap, &pe32));\n\n    CloseHandle(hProcessSnap);\n    return processList;\n}\n\nQString winutils::getProcessPath(DWORD processId)\n{\n    QString processPath;\n    HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,\n                                  FALSE, processId);\n\n    if (hProcess != NULL)\n    {\n        wchar_t buffer[MAX_PATH];\n        if (GetModuleFileNameEx(hProcess, NULL, buffer, MAX_PATH) > 0)\n        {\n            processPath = QString::fromWCharArray(buffer);\n        }\n        CloseHandle(hProcess);\n    }\n\n    return processPath;\n}\n\nDWORD\nwinutils::getProcessMainThread(DWORD processId)\n{\n    HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPTHREAD, 0);\n    if (hSnapshot == INVALID_HANDLE_VALUE)\n    {\n        qDebug() << \"Failed to create thread snapshot:\" << GetLastError();\n        return 0;\n    }\n\n    THREADENTRY32 te32;\n    te32.dwSize = sizeof(THREADENTRY32);\n\n    DWORD mainThreadId = 0;\n    FILETIME earliestTime = {0xFFFFFFFF, 0xFFFFFFFF}; // 设为最大值\n\n    if (Thread32First(hSnapshot, &te32))\n    {\n        do\n        {\n            if (te32.th32OwnerProcessID == processId)\n            {\n                // 打开线程获取创建时间\n                HANDLE hThread = OpenThread(THREAD_QUERY_INFORMATION, FALSE,\n                                            te32.th32ThreadID);\n                if (hThread)\n                {\n                    FILETIME creationTime, exitTime, kernelTime, userTime;\n                    if (GetThreadTimes(hThread, &creationTime, &exitTime,\n                                       &kernelTime, &userTime))\n                    {\n                        // 比较创建时间，找最早的线程\n                        if (CompareFileTime(&creationTime, &earliestTime) < 0)\n                        {\n                            earliestTime = creationTime;\n                            mainThreadId = te32.th32ThreadID;\n                        }\n                    }\n                    CloseHandle(hThread);\n                }\n            }\n        } while (Thread32Next(hSnapshot, &te32));\n    }\n\n    CloseHandle(hSnapshot);\n    return mainThreadId;\n}\n\nQString winutils::getProcessNameById(DWORD processId)\n{\n    HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,\n                                  FALSE, processId);\n    if (hProcess == NULL)\n    {\n        return QString();\n    }\n\n    wchar_t processName[MAX_PATH];\n    if (GetModuleBaseName(hProcess, NULL, processName, MAX_PATH))\n    {\n        CloseHandle(hProcess);\n        QString name = QString::fromWCharArray(processName);\n        return name;\n    }\n\n    CloseHandle(hProcess);\n    return QString();\n}\n\nbool winutils::enableAllPrivilege()\n{\n    HANDLE hToken;\n    // 获取进程token\n    if (!OpenProcessToken(GetCurrentProcess(),\n                          TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken))\n        return false;\n\n    const wchar_t *essentialPrivileges[] = {\n        SE_DEBUG_NAME, // 最重要的调试权限\n    };\n\n    TOKEN_PRIVILEGES tkp;\n    bool success = true;\n\n    for (const auto &privilege : essentialPrivileges)\n    {\n        tkp.PrivilegeCount = 1;\n        tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;\n        if (LookupPrivilegeValue(NULL, privilege, &tkp.Privileges[0].Luid))\n        {\n            AdjustTokenPrivileges(hToken, FALSE, &tkp, 0, NULL, NULL);\n        }\n    }\n\n    CloseHandle(hToken);\n    return success;\n}\n"
  },
  {
    "path": "winutils.h",
    "content": "/*\n * OpenSpeedy - Open Source Game Speed Controller\n * Copyright (C) 2025 Game1024\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see <https://www.gnu.org/licenses/>.\n */\n#ifndef WINUTILS_H\n#define WINUTILS_H\n#include <windows.h>\n#include \"taskscheduler.h\"\n#include <QSet>\n#include <QString>\n#include <string>\n#include <tlhelp32.h>\nstruct ProcessInfo\n{\n    DWORD pid;\n    DWORD parentPid;\n    QString name;\n    DWORD threadCount;\n    bool is64Bit;\n    DWORD priorityClass;\n    SIZE_T memoryUsage;\n};\n\nclass winutils\n{\n  public:\n    winutils();\n\n  public:\n    // DLL 注入\n    static bool injectDll(DWORD processId, const QString& dllPath);\n\n    // 远程 DLL 注入\n    static bool injectDllViaCRTA(DWORD processId, const QString& dllPath);\n    static bool injectDllViaCRTW(DWORD processId, const QString& dllPath);\n\n    // APC DLL 注入\n    static bool injectDllViaAPCA(DWORD processId, const QString& dllPath);\n    static bool injectDllViaAPCW(DWORD processId, const QString& dllPath);\n\n    // Windows Hooks 注入\n    static bool injectDllViaWHKA(DWORD processId, const QString& dllPath);\n    static bool injectDllViaWHKW(DWORD processId, const QString& dllPath);\n\n    // DLL 卸载\n    static bool unhookDll(DWORD processId, const QString& dllPath);\n\n    // 检查DLL是否已挂载\n    static bool checkDllExist(DWORD processId, const QString& dllPath);\n\n    static bool checkProcessProtection(DWORD processId);\n\n    static void setAutoStart(bool enable,\n                             const QString& appName,\n                             const QString& execPath);\n\n    static bool isAutoStartEnabled(const QString& appName);\n\n    static BOOL getWindowsVersion(DWORD* majorVersion,\n                                  DWORD* minorVersion,\n                                  DWORD* buildNumber);\n\n    static QString getWindowsVersion();\n\n    // 获取进程快照\n    static QList<ProcessInfo> getProcessList();\n\n    // 获取进程路径\n    static QString getProcessPath(DWORD processId);\n\n    // 获取进程中的主线程\n    static DWORD getProcessMainThread(DWORD processId);\n\n    static QString getProcessNameById(DWORD processId);\n\n    static bool enableAllPrivilege();\n};\n\n#endif // WINUTILS_H\n"
  }
]