Wraithan's changes

This commit is contained in:
danielyxie
2018-02-17 21:08:54 -06:00
parent ba6ed1f6b6
commit 24e99ed8d9
8 changed files with 36 additions and 368 deletions
+10
View File
@@ -834,6 +834,16 @@ function NetscriptFunctions(workerScript) {
}
}
for (var i = 0; i < server.textFiles.length; i++) {
if (filter) {
if (server.textFiles[i].fn.includes(filter)) {
allFiles.push(server.textFiles[i].fn);
}
} else {
allFiles.push(server.textFiles[i].fn);
}
}
//Sort the files alphabetically then print each
allFiles.sort();
return allFiles;