mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[utils] Add missing null check
This commit is contained in:
parent
0298a53315
commit
4a4e1397d4
|
@ -59,10 +59,11 @@ def query_registry_entries(prefix=None):
|
||||||
else:
|
else:
|
||||||
overlay_path = None
|
overlay_path = None
|
||||||
|
|
||||||
if overlay_path.startswith('C:'):
|
if overlay_path:
|
||||||
overlay_path = os.path.join(prefix, 'drive_c', overlay_path[3:])
|
if overlay_path.startswith('C:'):
|
||||||
elif overlay_path.startswith('Z:'):
|
overlay_path = os.path.join(prefix, 'drive_c', overlay_path[3:])
|
||||||
overlay_path = overlay_path[2:]
|
elif overlay_path.startswith('Z:'):
|
||||||
|
overlay_path = overlay_path[2:]
|
||||||
|
|
||||||
return dict(overlay_path=overlay_path,
|
return dict(overlay_path=overlay_path,
|
||||||
vulkan_hkcu=list(),
|
vulkan_hkcu=list(),
|
||||||
|
|
Loading…
Reference in a new issue