From ab7da117e066983d076f540b9722e1b79cf01d98 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 3 Jan 2021 11:10:56 +0100 Subject: Add: always set PERSONAL_DIR "/content_download" in search path (#8481) This means that if you start OpenTTD with "-c" to indicate another location to store files, it can still read the content you already downloaded from your PERSONAL_DIR. This folder is, however, read-only. This is useful for situations where you downloaded OpenGFX via the content-service, but want to run the regression or want to run with a clean configuration. With this change, you no longer need to download OpenGFX again. --- src/fileio_type.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fileio_type.h') diff --git a/src/fileio_type.h b/src/fileio_type.h index 17be6d60f..14acf0797 100644 --- a/src/fileio_type.h +++ b/src/fileio_type.h @@ -140,6 +140,8 @@ enum Searchpath : unsigned { SP_INSTALLATION_DIR, ///< Search in the installation directory SP_APPLICATION_BUNDLE_DIR, ///< Search within the application bundle SP_AUTODOWNLOAD_DIR, ///< Search within the autodownload directory + SP_AUTODOWNLOAD_PERSONAL_DIR, ///< Search within the autodownload directory located in the personal directory + SP_AUTODOWNLOAD_PERSONAL_DIR_XDG, ///< Search within the autodownload directory located in the personal directory (XDG variant) NUM_SEARCHPATHS }; -- cgit v1.2.3-54-g00ecf