MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / BytecodeClass

Class BytecodeClass

bytecode_generator.py:127–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126
127class BytecodeClass:
128 def __init__(self):
129 self.func_names: list[str] = []
130 # self.func_arg_counts: dict[str, tuple[int, int]] = {}
131 self.tk_names = []
132 self.bytecode_version = 0
133 self.bytecode_rev = ""
134 self.bytecode_rev_num = 0
135 self.engine_ver_major = 0
136 self.variant_ver_major = 0
137 self.parent = ""
138 self.version_string = ""
139 self.is_dev = False
140 self.removed_tokens: list[str] = []
141 self.added_tokens: list[str] = []
142 self.removed_functions: list[str] = []
143 self.added_functions: list[str] = []
144 self.renamed_functions: dict[str, str] = {}
145 self.arg_count_changed: list[str] = []
146 self.tokens_renamed: dict[str, str] = {}
147 self.date = ""
148 self.engine_version = ""
149 self.max_engine_version = ""
150
151 @property
152 def file_stem(self):
153 return "bytecode_" + self.bytecode_rev
154
155 @property
156 def class_name(self):
157 return "GDScriptDecomp_" + self.bytecode_rev
158
159
160def remove_comments(line: str) -> str:

Callers 1

read_bytecode_jsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected