Skip to main content

Module discovery

Module discovery 

Source
Expand description

Save-folder discovery.

Checks the current user’s default save locations β€” no scanning of other profiles or system drives. Run at startup as a convenience; if nothing is found the user enters a path manually via Set save folder.

StructsΒ§

DiscoveredFolder
A discovered save folder.

ConstantsΒ§

KNOWN_PATTERNS πŸ”’
Known save-root patterns (relative from a user profile or base directory).

FunctionsΒ§

derive_ini_path
Derive the Config\Windows path from a SaveGames path.
discover_save_folders
Search all known locations for Subnautica 2 save folders.
has_save_files πŸ”’
Check if a directory contains at least one .sav or .save file.
quick_discover
Quick check of the current user’s default save locations.
scan_common_install_dirs πŸ”’
Linux variant β€” same logic as the Windows version above.
scan_other_users πŸ”’
Linux variant β€” same logic as the Windows version above.
validate_custom_path
Validate that a manually entered path exists and contains save files.
walk_for_subnautica πŸ”’
Recursively walk a root looking for folders named β€œSubnautica”.