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:
Chris Danford
2009-04-11 19:23:41 +00:00
parent 004df80bf6
commit af6c1f3911
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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/";
+1 -1
View File
@@ -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;
+2 -1
View File
@@ -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. */