[jak2] goalc supports multiple projects (#1619)

* [jak2] goalc supports multiple projects

* disable deci2 server if not debugging
This commit is contained in:
water111
2022-07-06 21:18:08 -04:00
committed by GitHub
parent 8a18072d97
commit 28a2ecdfd3
29 changed files with 239 additions and 81 deletions
+1
View File
@@ -1,4 +1,5 @@
add_library(common
versions.cpp
audio/audio_formats.cpp
cross_os_debug/xdbg.cpp
cross_sockets/XSocket.cpp
+15
View File
@@ -0,0 +1,15 @@
#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));
}
}
+5 -1
View File
@@ -5,6 +5,8 @@
* Version numbers for GOAL Language, Kernel, etc...
*/
#include <string>
#include "common/common_types.h"
namespace versions {
@@ -48,4 +50,6 @@ struct PerGameVersion {
T data[2];
};
constexpr PerGameVersion<const char*> game_version_names = {"jak1", "jak2"};
constexpr PerGameVersion<const char*> game_version_names = {"jak1", "jak2"};
GameVersion game_name_to_version(const std::string& name);