[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:
water111
2022-07-08 19:23:49 -04:00
committed by GitHub
parent c0efde2763
commit 5e23057ed1
36 changed files with 1467 additions and 121 deletions
+10 -7
View File
@@ -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];