-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen_setup.c
More file actions
46 lines (40 loc) · 1.92 KB
/
Copy pathcodegen_setup.c
File metadata and controls
46 lines (40 loc) · 1.92 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
45
46
/* Masters of Teras Kasi config for psxrecomp/host/psxrecomp_codegen_host. */
#include "codegen_setup.h"
#include "psxrecomp_codegen_host.h"
static const PsxrecompCodegenHostConfig kMotkCodegenConfig = {
.display_name = "Masters of Teras Kasi",
.project_root_env = "MOTK_PROJECT_ROOT",
.build_dir_env = "MOTK_BUILD_DIR",
.force_setup_env = "MOTK_FORCE_SETUP",
.psxrecomp_cli_relpath = "psxrecomp/psxrecomp_cli.py",
.seed_cfg_relpath = "game.toml",
.game_toml_relpath = "game.toml",
.gen_marker_relpath = "generated/SLUS_005.62_dispatch.c",
.build_dir_name = "build-release",
.cmake_target = "psx-runtime",
.exe_basename = "Masters_of_Teras_Kasi_Recompiled",
.prepare_note =
"Uses your Masters of Teras Kasi (USA) disc with the local "
"psxrecomp SDK to generate OpenBIOS (+ optional SCPH1001) and "
"game C, then cmake --build. The playable build lives under "
"build-release/; reopening this setup exe forwards there. "
"You must legally own this disc.",
.prepare_note_windows =
"Uses your 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). "
"You must legally own this disc.",
.prepare_note_no_cmake =
"Uses your 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, &kMotkCodegenConfig);
}
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(&kMotkCodegenConfig, argc, argv);
}