mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 14:54:53 -04:00
[goalc] compile/run code for jak2 ckernel, set up dummy KERNEL.CGO (#1625)
[goalc] start can compile and run code for jak2 ckernel, set up dummy KERNEL.CGO
This commit is contained in:
@@ -1,21 +1,24 @@
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <iomanip>
|
||||
#include <optional>
|
||||
#include "third-party/fmt/core.h"
|
||||
#include "third-party/json.hpp"
|
||||
#include <string>
|
||||
|
||||
#include "common/util/FileUtil.h"
|
||||
#include "common/goal_constants.h"
|
||||
#include "common/symbols.h"
|
||||
#include "common/type_system/TypeSystem.h"
|
||||
|
||||
#include "decompiler/util/DecompilerTypeSystem.h"
|
||||
#include "common/util/Assert.h"
|
||||
#include "common/util/FileUtil.h"
|
||||
#include <common/util/unicode_util.h>
|
||||
|
||||
#include "decompiler/util/DecompilerTypeSystem.h"
|
||||
|
||||
#include "third-party/fmt/core.h"
|
||||
#include "third-party/json.hpp"
|
||||
|
||||
namespace fs = fs;
|
||||
|
||||
constexpr GameVersion kGameVersion = GameVersion::Jak1;
|
||||
|
||||
struct Ram {
|
||||
const u8* data = nullptr;
|
||||
u32 size = 0;
|
||||
@@ -572,7 +575,7 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
|
||||
fmt::print("Loading type definitions from all-types.gc...\n");
|
||||
decompiler::DecompilerTypeSystem dts;
|
||||
decompiler::DecompilerTypeSystem dts(kGameVersion);
|
||||
dts.parse_type_defs({"decompiler", "config", "all-types.gc"});
|
||||
|
||||
std::string file_name = argv[1];
|
||||
|
||||
Reference in New Issue
Block a user