File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,15 +91,15 @@ def convert_yamls_to_json(self):
9191
9292 @functools .cached_property
9393 def log_dir (self ):
94- return Path (self ._organizer .basePath ()) / "logs/ "
94+ return Path (self ._organizer .basePath ()) / "logs"
9595
9696 @functools .cached_property
9797 def modsettings_backup (self ):
98- return self .plugin_data_path / "temp/ modsettings.lsx"
98+ return self .plugin_data_path / "temp" / " modsettings.lsx"
9999
100100 @functools .cached_property
101101 def modsettings_path (self ):
102- return self .overwrite_path / "PlayerProfiles/Public/ modsettings.lsx"
102+ return Path ( self ._organizer . profilePath ()) / "modsettings.lsx"
103103
104104 @functools .cached_property
105105 def plugin_data_path (self ) -> Path :
Original file line number Diff line number Diff line change @@ -80,7 +80,9 @@ def _get_metadata_for_file(
8080 if file .name .endswith ("pak" ):
8181 meta_file = (
8282 self ._utils .plugin_data_path
83- / f"temp/extracted_metadata/{ file .name [: int (len (file .name ) / 2 )]} -{ hashlib .md5 (str (file ).encode (), usedforsecurity = False ).hexdigest ()[:5 ]} .lsx"
83+ / "temp"
84+ / "extracted_metadata"
85+ / f"{ file .name [: int (len (file .name ) / 2 )]} -{ hashlib .md5 (str (file ).encode (), usedforsecurity = False ).hexdigest ()[:5 ]} .lsx"
8486 )
8587 try :
8688 if (
@@ -147,7 +149,7 @@ def _get_metadata_for_file(
147149 ):
148150 qInfo (f"packable dir: { file } " )
149151 if (file .parent / f"{ file .name } .pak" ).exists () or (
150- file .parent / f "Mods/ { file .name } .pak"
152+ file .parent / "Mods" / f" { file .name } .pak"
151153 ).exists ():
152154 qInfo (
153155 f"pak with same name as packable dir exists in mod directory. not packing dir { file } "
Original file line number Diff line number Diff line change @@ -261,6 +261,19 @@ def add_mapping(file: Path):
261261 qWarning ("mapping canceled by user" )
262262 return mappings
263263 map_files (self ._utils .overwrite_path )
264+ mappings .append (
265+ mobase .Mapping (
266+ source = str (self ._utils .modsettings_path ),
267+ destination = str (
268+ docs_path
269+ / "PlayerProfiles"
270+ / "Public"
271+ / self ._utils .modsettings_path .name
272+ ),
273+ is_directory = False ,
274+ create_target = True ,
275+ )
276+ )
264277 progress .setValue (len (active_mods ) + 1 )
265278 QApplication .processEvents ()
266279 progress .close ()
You can’t perform that action at this time.
0 commit comments