Files
psxrecomp/tools/new_project_layout/templates/codegen_setup.c.in
2026-08-07 12:36:28 -04:00

46 lines
1.8 KiB
Plaintext

/* Title config for psxrecomp/host/psxrecomp_codegen_host.
* Wired only when the build opts into -DPSX_SETUP_WIZARD=ON. */
#include "codegen_setup.h"
#include "psxrecomp_codegen_host.h"
static const PsxrecompCodegenHostConfig kCodegenConfig = {
.display_name = "@GAME_NAME@",
.project_root_env = "@ENV_PREFIX@_PROJECT_ROOT",
.build_dir_env = "@ENV_PREFIX@_BUILD_DIR",
.force_setup_env = "@ENV_PREFIX@_FORCE_SETUP",
.psxrecomp_cli_relpath = "psxrecomp/psxrecomp_cli.py",
.seed_cfg_relpath = "game.toml",
.game_toml_relpath = "game.toml",
.gen_marker_relpath = "generated/@BOOT_EXE@_dispatch.c",
.build_dir_name = "build-release",
.cmake_target = "psx-runtime",
.exe_basename = "@EXE_BASENAME@",
.prepare_note =
"Uses your legal disc with the local psxrecomp SDK to generate "
"BIOS + game C, then cmake --build. The product lives under "
"build-release/; reopening this setup exe forwards there.",
.prepare_note_windows =
"Uses your legal disc with the local psxrecomp SDK to generate "
"BIOS + game C, then quits and rebuilds via a helper. Afterward, "
"this setup exe forwards to build-release/ (bios, mods, settings).",
.prepare_note_no_cmake =
"Uses your legal disc with the local psxrecomp SDK to generate "
"BIOS + game C. Rebuild into build-release/, then relaunch this "
"setup exe (it forwards to the product build).",
};
void psx_game_codegen_setup_apply(RecompLauncherCGameInfo* gi) {
psxrecomp_codegen_host_apply(gi, &kCodegenConfig);
}
void psx_game_codegen_relaunch_or_exit(const char* disc_path) {
psxrecomp_codegen_host_relaunch_or_exit(disc_path);
}
void psx_game_codegen_forward_if_built(int argc, char** argv) {
psxrecomp_codegen_host_forward_if_built(&kCodegenConfig, argc, argv);
}