Skip to content

Commit

Permalink
add pc alpha platform
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Jun 1, 2024
1 parent d0eec8a commit 85224b0
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 174 deletions.
2 changes: 1 addition & 1 deletion src/acts/tools/gsc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ void GscInfoOption::PrintHelp() {
LOG_INFO("-h --help : Print help");
LOG_INFO("-g --gsc : Produce GSC");
LOG_INFO("-a --asm : Produce ASM");
LOG_INFO("-t --type [t] : Set type, default PC, values: 'ps', 'xbox', 'pc'");
LOG_INFO("-t --type [t] : Set type, default PC, values: 'ps', 'xbox', 'pc', 'pc_alpha'");
LOG_INFO("-o --output [d] : ASM/GSC output dir, default same.gscasm");
LOG_INFO("-v --vm : Only decompile a particular vm");
LOG_INFO("-H --header : Write file header");
Expand Down
4 changes: 4 additions & 0 deletions src/acts/tools/gsc_opcodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ namespace tool::gsc::opcode {
if (!_strcmpi("pc", name)) {
return PLATFORM_PC;
}
if (!_strcmpi("pc_alpha", name) || !_strcmpi("pca", name)) {
return PLATFORM_PC_ALPHA;
}
if (!_strcmpi("xbox", name) || !_strcmpi("xb", name)) {
return PLATFORM_XBOX;
}
Expand Down Expand Up @@ -145,6 +148,7 @@ namespace tool::gsc::opcode {
case PLATFORM_PC: return "PC";
case PLATFORM_XBOX: return "Xbox";
case PLATFORM_PLAYSTATION: return "PlayStation";
case PLATFORM_PC_ALPHA: return "PC Alpha";
default: return "Unknown";
}
}
Expand Down
Loading

0 comments on commit 85224b0

Please sign in to comment.