MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / __init__

Method __init__

tools/project.py:49–77  ·  view source on GitHub ↗
(self, completed: bool, name: str, **options: Any)

Source from the content-addressed store, hash-verified

47
48class Object:
49 def __init__(self, completed: bool, name: str, **options: Any) -> None:
50 self.name = name
51 self.completed = completed
52 self.options: Dict[str, Any] = {
53 "add_to_all": None,
54 "asflags": None,
55 "asm_dir": None,
56 "cflags": None,
57 "extra_asflags": [],
58 "extra_cflags": [],
59 "extra_clang_flags": [],
60 "host": None,
61 "lib": None,
62 "mw_version": None,
63 "progress_category": None,
64 "scratch_preset_id": None,
65 "shift_jis": None,
66 "source": name,
67 "src_dir": None,
68 }
69 self.options.update(options)
70
71 # Internal
72 self.src_path: Optional[Path] = None
73 self.asm_path: Optional[Path] = None
74 self.src_obj_path: Optional[Path] = None
75 self.asm_obj_path: Optional[Path] = None
76 self.host_obj_path: Optional[Path] = None
77 self.ctx_path: Optional[Path] = None
78
79 def resolve(self, config: "ProjectConfig", lib: Library) -> "Object":
80 # Use object options, then library options

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected