Skip to content
프로젝트

소개

東方紅魔郷 ~ the Embodiment of Scarlet Devil(1.02h)의 디컴파일

보안 및 개인정보 보호

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+6
in 15 days
+7
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

東方紅魔郷 ~ the Embodiment of Scarlet Devil

Decomp Progress

Discord <- click here to join discord server.

This project aims to perfectly reconstruct the source code of Touhou Koumakyou ~ the Embodiment of Scarlet Devil 1.02h by Team Shanghai Alice.

For a functioning port of the game to other platforms (Linux, modern Windows, etc), see the portable branch

Installation

Executable

This project requires the original 東方紅魔郷.exe version 1.02h (SHA256 hashsum 9f76483c46256804792399296619c1274363c31cd8f1775fafb55106fb852245, you can check hashsum on windows with command certutil -hashfile <path-to-your-file> SHA256.)

Copy 東方紅魔郷.exe to resources/th06.exe.

Dependencies

The build system has the following package requirements:

  • python3 >= 3.4
  • msiextract (On linux/macos only)
  • wine (on linux/macos only, prefer CrossOver on macOS to avoid possible CL.EXE heap issues)
  • aria2c (optional, allows for torrent downloads, will automatically install on Windows if selected.)

The rest of the build system is constructed out of Visual Studio 2002 and DirectX 8.0 from the Web Archive.

Configure devenv

This will download and install compiler, libraries, and other tools.

If you are on windows, and for some reason want to download dependencies manually, run this command to get the list of files to download:

python scripts/create_devenv.py scripts/dls scripts/prefix --no-download

But if you want everything to be downloaded automatically, run it like this instead:

python scripts/create_devenv.py scripts/dls scripts/prefix

And if you want to use torrent to download those dependencies, use this:

python scripts/create_devenv.py scripts/dls scripts/prefix --torrent

On linux and mac, run the following script:

# NOTE: On macOS if you use CrossOver.
# export WINE=<CrossOverPath>/wine
./scripts/create_th06_prefix

Building

Run the following script:

python3 ./scripts/build.py --build-type=binary_matchbuild

This will automatically generate a ninja build script build.ninja, and run ninja on it.

Contributing

Reverse Engineering

You can find an XML export of our Ghidra RE in the companion repository th06-re, in the xml branch. This repo is updated nightly through [scripts/export_ghidra_database.py], and its history matches the checkin history from our team's Ghidra Server.

If you wish to help us in our Reverse Engineering effort, please contact @roblabla on discord so we can give you an account on the Ghidra Server.

Diffing

In order to contribute to the decompilation, you are going to need reccmp (Instructions).

In the project root, run:

reccmp-project detect --search-path resources/

Build the recompiled executable if you have not done so (see the above section). Then, in the build/ directory, run:

reccmp-project detect --what recompiled

To generate a report of the differences between the original and recompiled binaries, again in the build/ directory, run:

reccmp-reccmp --target th06 --html report.html

This will display a report of the accuracy to the original binary, and export this report to a HTML file report.html.

Credits

We would like to extend our thanks to the following individuals for their invaluable contributions:

관련 프로젝트 살펴보기

불러오는 중…