Standard prototypes are now correctly constructed even if

the directories don't exist.
This commit is contained in:
hns 2001-10-02 20:46:00 +00:00
parent 6c883367e7
commit 17b82f0d43

View file

@ -129,6 +129,7 @@ public class TypeManager {
String pname = (String) it.next(); String pname = (String) it.next();
if (prototypes.get (pname) == null) { if (prototypes.get (pname) == null) {
Prototype proto = new Prototype (pname, app); Prototype proto = new Prototype (pname, app);
registerPrototype (pname, new File (appDir, pname), proto, false);
prototypes.put (pname, proto); prototypes.put (pname, proto);
} }
} }
@ -221,14 +222,14 @@ public class TypeManager {
// show the type checker thread that there has been type activity // show the type checker thread that there has been type activity
idleSeconds = 0; idleSeconds = 0;
String list[] = dir.list();
HashMap ntemp = new HashMap (); HashMap ntemp = new HashMap ();
HashMap nfunc = new HashMap (); HashMap nfunc = new HashMap ();
HashMap nact = new HashMap (); HashMap nact = new HashMap ();
HashMap nskins = new HashMap (); HashMap nskins = new HashMap ();
HashMap updatables = new HashMap (list.length); HashMap updatables = new HashMap ();
if (update) { if (update) {
String list[] = dir.list();
for (int i=0; i<list.length; i++) { for (int i=0; i<list.length; i++) {
File tmpfile = new File (dir, list[i]); File tmpfile = new File (dir, list[i]);
int dot = list[i].indexOf ("."); int dot = list[i].indexOf (".");