nmlgc / ssg

秋霜玉 / Shuusou Gyoku
MIT License
20 stars 5 forks source link
seihou

秋霜玉

Building

Currently, this project can only be built for 32-bit Windows, with Visual Studio ≥2022 and a Tup-based build setup. However, since IDE integration is horribly broken for both Makefile and directory projects, we strongly recommend literally anything else to edit the code.

You'll therefore need the following:

  1. Visual Studio Community ≥2022, with the Desktop development for C++ workload.\ If you haven't already installed the IDE for other projects and don't plan to, you can install only the command-line compilers via the Build Tools installer.

  2. Tup in the latest Windows version.\ Place tup.exe and its DLLs somewhere in your PATH.

  3. Your favorite code editor.\ A ready-to-use configuration for Visual Studio Code is part of this repository. Make sure to install the default recommended C++ extensions when asked.

To build:

  1. Open Visual Studio's x64_x86 Cross Tools Command Prompt.
  2. Navigate to the checkout directory of this repository.
  3. Invoke build.bat in your way of choice:

    • If you use Visual Studio Code, open the editor from this command-line environment:

      code .

      Then, you can run the build task with the default Ctrl-Shift-B keybinding.

    • Or you can always run build.bat directly from this shell.

The binary will be put into the bin/ subdirectory, where you can also place the game's original data files.

By default, both Debug and Release configurations are built. If you only need one of them and want to speed up the build process, you can pick a single one by creating a file named tup.config in the root directory of this repository:

CONFIG_BUILDTYPE=debug   # builds only in Debug mode
CONFIG_BUILDTYPE=release # builds only in Release mode
CONFIG_BUILDTYPE=        # builds in both modes

Debugging

.PDB files are generated for Debug and Release builds, so you should get symbol support with any Windows debugger.

Visual Studio Code

Select between Debug and Release modes in the Run and Debug menu (Ctrl-Shift-D by default), and start debugging with the ▶ button or its keybinding.

Visual Studio IDE

We don't support it for compilation, but you can still use it for debugging by running

devenv bin/GIAN07d.exe &::to run the Debug binary
devenv bin/GIAN07.exe  &::to run the Release binary

from the x64_x86 Cross Tools Command Prompt. Strangely enough, this yields a superior IntelliSense performance than creating any sort of project. 🤷


Original README by pbg below.


これは何?

参考までに

ディレクトリ構成

たぶん紛失してしまったソースコード

以下のコードについては、見つかり次第追加するかもしれません。

ライセンス