chitang233 / genshin_patcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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. Download submodules

    git submodule update --init --recursive
  3. 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.

  4. 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.

About


Languages

Language:C++ 92.5%Language:CMake 7.5%