Suggestion; savegames/pref/apex location

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Raggy
    Apprentice
    • May 2011
    • 85

    Suggestion; savegames/pref/apex location

    It's quite tiresome to copy these files between releases.

    Ever since Windows Vista (?), we have a common location for storing savegames etc. Could you utilize this?
  • Magnate
    Angband Devteam member
    • May 2007
    • 5110

    #2
    Originally posted by Raggy
    It's quite tiresome to copy these files between releases.

    Ever since Windows Vista (?), we have a common location for storing savegames etc. Could you utilize this?
    Well, other platforms make use of PRIVATE_USER_DIR, which defaults to ~/.angband/Angband, contains all user-saved prefs and has subdirs score/ and save/ which contain the user's score and save files.

    So it's all working exactly as you would wish, except on Windows. It's been said quite a few times: none of the current devteam are Windows-based, so it's difficult for us to implement and test Windows changes. I don't think anyone would have any problem with the Windows port being made to use PRIVATE_USER_DIR (it would have to cater for different versions of Windows which use different home directory paths).

    Basically, there's an opening on the devteam for anyone who wants to step up and be the Windows guy (or gal).
    "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

    Comment

    • fph
      Veteran
      • Apr 2009
      • 1030

      #3
      Originally posted by Magnate
      (it would have to cater for different versions of Windows which use different home directory paths).
      I'm not a Windows guy, too, but IIRC the Right Way(TM) to do it is with the variable %USERPROFILE% (like you'd use $HOME on Linux). Otherwise you're entering a valley of pain, since the name of that directory is not only version-dependent but also localization-dependent. Like in "C:\Dokumente und Einstellungen".
      --
      Dive fast, die young, leave a high-CHA corpse.

      Comment

      • Magnate
        Angband Devteam member
        • May 2007
        • 5110

        #4
        Originally posted by fph
        I'm not a Windows guy, too, but IIRC the Right Way(TM) to do it is with the variable %USERPROFILE% (like you'd use $HOME on Linux). Otherwise you're entering a valley of pain, since the name of that directory is not only version-dependant but also localization-dependant (think " C:\Dokumente und Einstellungen").
        But do all versions of Windows honour %USERPROFILE% ??
        "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

        Comment

        • Zyphyr
          Adept
          • Jan 2008
          • 135

          #5
          Originally posted by Magnate
          But do all versions of Windows honour %USERPROFILE% ??
          It is used in Windows NT and anything descended from it (2000, XP, Vista, 7). So, not in 3.x, 9x, or Me.

          Comment

          Working...
          😀
          😂
          🥰
          😘
          🤢
          😎
          😞
          😡
          👍
          👎