mirror of
https://github.com/open-goal/jak-project
synced 2026-09-02 10:11:44 -04:00
[jak2] goalc supports multiple projects (#1619)
* [jak2] goalc supports multiple projects * disable deci2 server if not debugging
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
add_library(common
|
||||
versions.cpp
|
||||
audio/audio_formats.cpp
|
||||
cross_os_debug/xdbg.cpp
|
||||
cross_sockets/XSocket.cpp
|
||||
|
||||
@@ -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
@@ -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);
|
||||
Reference in New Issue
Block a user