Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

Latest commit

 

History

History
65 lines (40 loc) · 2.02 KB

README_en.md

File metadata and controls

65 lines (40 loc) · 2.02 KB

GenshinHdiffPatcher

中文 | English

Simple, modern and fast hdiff pack patch tool of certain anime game.

[ Easy4Use · UltraFast · Detailed · LightWeight ]

Quick start

You can get executable files from the following places or compile it yourself.

Prebuilt version

Compile

Automatic compilation

You only need to run the batch file to build automatically. For Windows, you can use build.bat; for Unix, use build.sh. Todo

Manual

  1. Install the following dependencies

    • Cmake
    • Ninja (CMake generator, Optional)
    • gcc & g++ (They are usually pre-installed in unix, for Windows, you can use MingW)
  2. Build

    If you do not have the above Ninja installed, please ignore the -GNinja option.

    cmake -GNinja -DCMAKE_BUILD_TYPE=Release -Bbuild
    cmake --build build -j6

    For machines with a small number of cores, you may need to reduce the number after the -j parameter appropriately.

  3. enjoy The final executable file is located in the project-folder/build directory.

Usage

You can enter the game path in the first parameter, such as "N:\ Genshin Impact", and then enter the path of the game differential package in the later parameters, such as "K:\ game_3.2.0_3.3.0_hdiff_fiuTl2cLqp198WVG.zip". The differential package path can be either a zip file or an unzipped path.

Automatically update certain anime game's hdiff package command line
Usage:
  GenshinPatcher [OPTION...] <gameDir> <diffFiles> [diffFiles2] [diffFiles3]...

  -s, --safe-patch  Run the patch safely.
  -h, --help        Show this msg

Credit

  • ChatGPT - For batch scripting and other help.
  • HDiffPatch - The difference method used in Genshin games.