-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcodegen_setup.c
More file actions
45 lines (38 loc) · 1.8 KB
/
Copy pathcodegen_setup.c
File metadata and controls
45 lines (38 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* 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 = "Tomba",
.project_root_env = "TOMBARECOMP_PROJECT_ROOT",
.build_dir_env = "TOMBARECOMP_BUILD_DIR",
.force_setup_env = "TOMBARECOMP_FORCE_SETUP",
.psxrecomp_cli_relpath = "psxrecomp/psxrecomp_cli.py",
.seed_cfg_relpath = "game.toml",
.game_toml_relpath = "game.toml",
.gen_marker_relpath = "generated/SCUS_942.36_dispatch.c",
.build_dir_name = "build-release",
.cmake_target = "psx-runtime",
.exe_basename = "Tomba__Recompiled",
.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);
}