From e822a8f7bf3e4f83f5d3ea95e415f9741c90d6fc Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 28 Apr 2020 06:28:23 +0200 Subject: [PATCH] [core] Fix OwnershipToken path for WINE Fixes #2 --- legendary/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legendary/core.py b/legendary/core.py index 58e0c18..aa43e61 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -237,6 +237,9 @@ class LegendaryCore: f'{game.asset_info.namespace}{game.asset_info.catalog_item_id}.ovt') with open(ovt_path, 'wb') as f: f.write(ovt) + # To access the OVT from WINE we have have to prepend Z: to the path + if os.name != 'nt': + ovt_path = os.path.join('Z:', ovt_path) params.append(f'-epicovt={ovt_path}') params.extend([