2024-10-17 00:50:14 +00:00
|
|
|
# kgg-dec
|
|
|
|
|
|
|
|
Kugou `kgg` decryption tool.
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
|
|
|
Build in Windows with CMake + Visual Studio 2022
|
|
|
|
|
|
|
|
```cmd
|
|
|
|
cmake --preset vs -DCMAKE_BUILD_TYPE=Release
|
|
|
|
cmake --build --preset vs-release --config Release
|
|
|
|
copy /y README.MD .\\build\\vs2022\\
|
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
1. Copy `infra.dll` from KuGou installation directory to where `kgg-dec.exe` is located.
|
|
|
|
2. Invoke exe with path to the directory containing kgg file.
|
|
|
|
|
|
|
|
```shell
|
|
|
|
kgg-dec.exe .
|
|
|
|
```
|
2024-10-17 23:28:04 +00:00
|
|
|
|
|
|
|
### CLI Options
|
|
|
|
|
2024-11-25 21:26:33 +00:00
|
|
|
* `--infra-dll` (Optional): Specify the path to `infra.dll`. Defaults to `infra.dll`.
|
|
|
|
* `--scan-all-file-ext` (Optional, `0` or `1`): Whether to scan all file extensions. Defaults to `0` to scan only `kgg`
|
|
|
|
files.
|
|
|
|
* `--db`: Specify the path to `KGMusicV3.db`, defaults to `%AppData%/Kugou8/KGMusicV3.db`.
|
|
|
|
* `--suffix`: Specify the suffix of the output file, defaults to `_kgg-dec`.
|
2024-10-17 23:28:04 +00:00
|
|
|
|
2024-11-25 21:26:33 +00:00
|
|
|
After specifying the parameters, you can specify any number of files or directories.
|