mirror of
https://github.com/ganelson/inform.git
synced 2024-06-26 04:00:43 +03:00
Fixed extension census bug
This commit is contained in:
parent
695721dcee
commit
1e730e6d63
|
@ -219,6 +219,8 @@ entries, close.
|
|||
filename *Extensions::Dictionary::filename(void) {
|
||||
pathname *P = Inbuild::transient();
|
||||
if (P == NULL) return NULL;
|
||||
P = Pathnames::subfolder(P, I"Documentation");
|
||||
P = Pathnames::subfolder(P, I"Census");
|
||||
return Filenames::in_folder(P, I"Dictionary.txt");
|
||||
}
|
||||
|
||||
|
@ -228,7 +230,7 @@ void Extensions::Dictionary::load(void) {
|
|||
|
||||
@<Ensure the serialised extensions dictionary file exists@>;
|
||||
|
||||
LOGIF(EXTENSIONS_CENSUS, "Reading dictionary file\n");
|
||||
LOGIF(EXTENSIONS_CENSUS, "Reading dictionary file %f\n", F);
|
||||
TextFiles::read(F, FALSE,
|
||||
NULL, FALSE, Extensions::Dictionary::load_helper, NULL, NULL);
|
||||
LOGIF(EXTENSIONS_CENSUS, "Finished reading dictionary file\n");
|
||||
|
|
|
@ -103,10 +103,10 @@ int Extensions::Documentation::write_extension_documentation_page(extension_cens
|
|||
pathname *Extensions::Documentation::path(void) {
|
||||
pathname *P = Inbuild::transient();
|
||||
if ((P == NULL) || (Pathnames::create_in_file_system(P) == 0)) return NULL;
|
||||
P = Pathnames::subfolder(P, I"Extensions");
|
||||
if (Pathnames::create_in_file_system(P) == 0) return NULL;
|
||||
P = Pathnames::subfolder(P, I"Documentation");
|
||||
if (Pathnames::create_in_file_system(P) == 0) return NULL;
|
||||
P = Pathnames::subfolder(P, I"Extensions");
|
||||
if (Pathnames::create_in_file_system(P) == 0) return NULL;
|
||||
return P;
|
||||
}
|
||||
|
||||
|
|
1
inform7/.gitignore
vendored
1
inform7/.gitignore
vendored
|
@ -39,6 +39,7 @@ Tests/Test Inter/_Inter_Textual/
|
|||
Tests/Test Inter/_Inter_Binary/
|
||||
Tests/Test Maps/_Maps_Actual/
|
||||
Tests/Test Problems/_Results_Actual/
|
||||
Tests/Documentation/
|
||||
|
||||
Internal/Inter/BasicInformKit/*.interb
|
||||
Internal/Inter/BasicInformExtrasKit/*.interb
|
||||
|
|
|
@ -29,6 +29,7 @@ Tests/Test Inter/_Inter_Textual/
|
|||
Tests/Test Inter/_Inter_Binary/
|
||||
Tests/Test Maps/_Maps_Actual/
|
||||
Tests/Test Problems/_Results_Actual/
|
||||
Tests/Documentation/
|
||||
|
||||
Internal/Inter/BasicInformKit/*.interb
|
||||
Internal/Inter/BasicInformExtrasKit/*.interb
|
||||
|
|
Loading…
Reference in a new issue