/* Log directory */
static File logdir;
+ /* Map directory -- hangs of logdir */
+ static File mapdir;
+
/* Channel (map serial to channel) */
static Hashtable<Integer, Integer> channels;
if (!logdir.exists())
logdir.mkdirs();
}
+ mapdir = new File(logdir, "maps");
+ if (!mapdir.exists())
+ mapdir.mkdirs();
channels = new Hashtable<Integer,Integer>();
public static void set_logdir(File new_logdir) {
logdir = new_logdir;
+ mapdir = new File(logdir, "maps");
+ if (!mapdir.exists())
+ mapdir.mkdirs();
synchronized (preferences) {
preferences.put(logdirPreference, logdir.getPath());
flush_preferences();
return logdir;
}
+ public static File mapdir() {
+ return mapdir;
+ }
+
public static void set_channel(int serial, int new_channel) {
channels.put(serial, new_channel);
synchronized (preferences) {