mirror of
https://github.com/open-goal/jak-project.git
synced 2024-11-23 06:09:57 +00:00
1c0038294f
Decompile `gcommon`. I adjusted the spacing of docstring comments, and removed some spammy decompiler warning prints. I also added some random notes I had on VU programs from jak1/jak2. They are not polished, but I think it's still worth including since we'll have to go through them again for jak 3.
25 lines
1.1 KiB
C++
25 lines
1.1 KiB
C++
#pragma once
|
|
#include <string>
|
|
|
|
#include "decompiler/Function/Function.h"
|
|
|
|
namespace decompiler {
|
|
|
|
enum class FunctionDefSpecials { NONE, DEFUN_DEBUG };
|
|
|
|
std::string final_defun_out(const Function& func,
|
|
const Env& env,
|
|
const DecompilerTypeSystem& dts,
|
|
FunctionDefSpecials special_mode = FunctionDefSpecials::NONE);
|
|
std::string write_from_top_level(const Function& top_level,
|
|
const DecompilerTypeSystem& dts,
|
|
const LinkedObjectFile& file,
|
|
const std::vector<std::string>& imports,
|
|
const std::unordered_set<std::string>& skip_functions);
|
|
|
|
goos::Object get_arg_list_for_function(const Function& func, const Env& env);
|
|
goos::Object final_output_lambda(const Function& function, GameVersion version);
|
|
goos::Object final_output_defstate_anonymous_behavior(const Function& func,
|
|
const DecompilerTypeSystem& dts);
|
|
} // namespace decompiler
|