Skip to content

Commit c45844f

Browse files
committed
fix: disable overwriting game files via manual install (could lead to crashes)
1 parent a2fb0f6 commit c45844f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

games/game_subnautica.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from collections.abc import Iterable
66
from pathlib import Path
77

8-
from PyQt5.QtCore import QDir, qInfo, qWarning
8+
from PyQt5.QtCore import QDir, qWarning
99

1010
import mobase
1111

@@ -124,15 +124,16 @@ def _root_mappings(
124124
for child in mod_path.iterdir():
125125
# Check blacklist
126126
if child.name.casefold() in self._root_blacklist:
127-
qInfo(f"Skipping {child.name} ({mod_name})")
127+
qWarning(f"Skipping {child.name} ({mod_name})")
128128
continue
129129
destination = game_path / child.name
130130
# Check existing
131131
if destination.exists():
132132
qWarning(
133-
f"Existing game files/folders are not linked: "
133+
f"Overwriting of existing game files/folders is not supported! "
134134
f"{destination.as_posix()} ({mod_name})"
135135
)
136+
continue
136137
# Mapping: mod -> root
137138
yield mobase.Mapping(
138139
source=str(child),

0 commit comments

Comments
 (0)