Exemple #1
0
    def get_linker_entries(self):
        from segtypes.linker_entry import LinkerEntry

        base_path = options.get_asset_path() / f"{self.name}"
        out_paths = [base_path / Path(f + ".msg") for f in self.files]

        return [LinkerEntry(self, out_paths, base_path, ".data")]
Exemple #2
0
    def get_linker_entries(self):
        path = options.get_lib_path() / self.name

        object_path = f"{path}.a:{self.object}.o"

        return [
            LinkerEntry(self, [path], object_path, self.get_linker_section())
        ]
Exemple #3
0
    def get_linker_entries(self):
        from segtypes.linker_entry import LinkerEntry

        basepath = options.get_asset_path() / "sprite" / f"{self.name}"
        out_paths = [options.get_asset_path() / "sprite" / self.name / (f["name"] if type(f) is dict else f)
                     for f in self.files]

        return [LinkerEntry(self, out_paths, basepath, ".data")]
Exemple #4
0
    def get_linker_entries(self):
        from segtypes.linker_entry import LinkerEntry

        if self.sibling:
            path = self.sibling.out_path()
        else:
            log.error("Unlinked bss sections currently unsupported")

        return [LinkerEntry(self, [path], path, self.get_linker_section())]
Exemple #5
0
    def get_linker_entries(self) -> 'List[LinkerEntry]':
        from segtypes.linker_entry import LinkerEntry

        path = self.out_path()

        if path and self.standalone:
            return [LinkerEntry(self, [path], path, self.get_linker_section())]
        else:
            return []
Exemple #6
0
    def get_linker_entries(self):
        from segtypes.linker_entry import LinkerEntry

        if self.sibling:
            path = self.sibling.out_path()
        else:
            path = options.get_src_path() / self.name

        return [LinkerEntry(self, [path], path, self.get_linker_section())]
Exemple #7
0
    def get_linker_entries(self):
        from segtypes.linker_entry import LinkerEntry

        return [
            LinkerEntry(
                self,
                [options.get_asset_path() / self.dir / f"{self.name}.png"],
                options.get_asset_path() / self.dir / f"{self.name}.pal",
                self.get_linker_section())
        ]
Exemple #8
0
    def get_linker_entries(self):
        from segtypes.linker_entry import LinkerEntry

        fs_dir = options.get_asset_path() / self.dir / self.name

        return [
            LinkerEntry(self,
                        [fs_dir / add_file_ext(name) for name in self.files],
                        fs_dir.with_suffix(".dat"), ".data"),
        ]
Exemple #9
0
    def get_linker_entries(self):
        from segtypes.linker_entry import LinkerEntry

        fs_dir = options.get_asset_path() / self.dir / self.name / "palette"

        return [
            LinkerEntry(self,
                        [fs_dir / f"{i:02X}.png" for i in range(self.yaml[3])],
                        fs_dir.with_suffix(".dat"), ".data"),
        ]
Exemple #10
0
    def get_linker_entries(self):
        from segtypes.linker_entry import LinkerEntry

        ret = []

        for shim in self.shims:
            ret.append(
                LinkerEntry(self, [self.shim_path(shim)], self.shim_path(shim),
                            ".text"))

        return ret
Exemple #11
0
    def get_linker_entries(self) -> "List[LinkerEntry]":

        if self.sibling:
            path = self.sibling.out_path()
        else:
            path = self.out_path()

        if path:
            return [LinkerEntry(self, [path], path, self.get_linker_section())]
        else:
            return []
Exemple #12
0
    def get_linker_entries(self):
        from segtypes.linker_entry import LinkerEntry

        ret = []

        for effect in self.effects:
            ret.append(LinkerEntry(
                self,
                [self.effect_path(effect)],
                self.effect_path(effect),
                ".text"
            ))

        return ret
Exemple #13
0
    def get_linker_entries(self):
        from segtypes.linker_entry import LinkerEntry

        # start, type, name, WIDTH, HEIGHT
        self.width = self.yaml[3]
        self.height = self.yaml[4]

        fs_dir = options.get_asset_path() / self.dir / self.name

        return [
            LinkerEntry(self,
                        [fs_dir / f"{i:02X}.png" for i in range(self.yaml[5])],
                        fs_dir.with_suffix(".dat"), ".data"),
        ]
Exemple #14
0
    def get_linker_entries(self):
        from segtypes.linker_entry import LinkerEntry

        return [LinkerEntry(self, [], self.name, "linker_offset")]