Skip to main content

quick_discover

Function quick_discover 

Source
pub fn quick_discover() -> Option<PathBuf>
Expand description

Quick check of the current user’s default save locations.

No scanning of other profiles, no recursion into system directories. Returns the first valid path found, or None.

Windows (checked in order):

  1. %LOCALAPPDATA%\Subnautica2\Saved\SaveGames

Linux / Steam Deck (checked in order):

  1. ~/.steam/steam/steamapps/compatdata/1962700/pfx/drive_c/users/steamuser/AppData/Local/Subnautica2/Saved/SaveGames
  2. ~/.local/share/Steam/steamapps/compatdata/1962700/pfx/drive_c/users/steamuser/AppData/Local/Subnautica2/Saved/SaveGames
  3. $XDG_DATA_HOME/Subnautica2/Saved/SaveGames (typically ~/.local/share/Subnautica2/Saved/SaveGames)