mirror of
https://github.com/open-goal/jak-project
synced 2026-05-23 15:02:01 -04:00
28a2ecdfd3
* [jak2] goalc supports multiple projects * disable deci2 server if not debugging
15 lines
349 B
C++
15 lines
349 B
C++
#include "versions.h"
|
|
|
|
#include "common/util/Assert.h"
|
|
|
|
#include "third-party/fmt/core.h"
|
|
|
|
GameVersion game_name_to_version(const std::string& name) {
|
|
if (name == "jak1") {
|
|
return GameVersion::Jak1;
|
|
} else if (name == "jak2") {
|
|
return GameVersion::Jak2;
|
|
} else {
|
|
ASSERT_MSG(false, fmt::format("invalid game name: {}", name));
|
|
}
|
|
} |