fix system packages not working. MountInitialFilesystems should mount USER_PACKAGES_DIR, and let PACKAGES_DIR be supplied by the program directory mount
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include "SpecialFiles.h"
|
||||
|
||||
const RString SpecialFiles::USER_PACKAGES_DIR = "UserPackages/";
|
||||
const RString SpecialFiles::SYSTEM_PACKAGES_DIR = "SystemPackages/";
|
||||
const RString SpecialFiles::PACKAGES_DIR = "Packages/";
|
||||
const RString SpecialFiles::KEYMAPS_PATH = "Save/Keymaps.ini";
|
||||
const RString SpecialFiles::PREFERENCES_INI_PATH = "Save/Preferences.ini";
|
||||
const RString SpecialFiles::THEMES_DIR = "Themes/";
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
namespace SpecialFiles
|
||||
{
|
||||
extern const RString USER_PACKAGES_DIR;
|
||||
extern const RString SYSTEM_PACKAGES_DIR;
|
||||
extern const RString PACKAGES_DIR; // system packages (not user packages)
|
||||
extern const RString KEYMAPS_PATH;
|
||||
extern const RString PREFERENCES_INI_PATH;
|
||||
extern const RString THEMES_DIR;
|
||||
|
||||
@@ -1001,7 +1001,8 @@ int main(int argc, char* argv[])
|
||||
FILEMAN->Mount( "dir", dirs[i], "/AdditionalCourses" );
|
||||
}
|
||||
|
||||
MountTreeOfZips( SpecialFiles::SYSTEM_PACKAGES_DIR );
|
||||
MountTreeOfZips( SpecialFiles::PACKAGES_DIR );
|
||||
MountTreeOfZips( SpecialFiles::USER_PACKAGES_DIR );
|
||||
|
||||
/* One of the above filesystems might contain files that affect preferences, eg Data/Static.ini.
|
||||
* Re-read preferences. */
|
||||
|
||||
Reference in New Issue
Block a user