mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-08-05 00:46:19 -07:00
Core: move output file name logic into core (#1066)
* move output file name logic into core I see the same logic with small variations in each different world implementation. It seems to me, it would be better in the core to keep it consistent. * missed a few * remove review comment * + smw * double quote strings Co-authored-by: black-sliver <[email protected]> * revert change to DS3 output file name Co-authored-by: black-sliver <[email protected]>
This commit is contained in:
co-authored by
black-sliver
parent
b8e467fbb8
commit
fdd7ffb089
@@ -150,7 +150,7 @@ class MinecraftWorld(World):
|
||||
|
||||
def generate_output(self, output_directory: str):
|
||||
data = self._get_mc_data()
|
||||
filename = f"AP_{self.world.seed_name}_P{self.player}_{self.world.get_file_safe_player_name(self.player)}.apmc"
|
||||
filename = f"{self.world.get_out_file_name_base(self.player)}.apmc"
|
||||
with open(os.path.join(output_directory, filename), 'wb') as f:
|
||||
f.write(b64encode(bytes(json.dumps(data), 'utf-8')))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user