Map<SubStringPointer.Files, LImport> streams = srcMod.stringStreams;
if (data.isValid() && streams.containsKey(file)) {
int index = Ln.arrayToInt(data.getData());
if (srcMod.stringLocations.get(file).containsKey(index)) {
int offset = srcMod.stringLocations.get(file).get(index);
LImport stream = streams.get(file);
stream.pos(offset);
switch (file) {
case STRINGS:
int input;
String string = "";
while ((input = stream.read()) != 0) {
string += (char) input;
}
text.setString(string);
break;
default:
int length = Ln.arrayToInt(stream.extractInts(0, 4));
String in = Ln.arrayToString(stream.extractInts(0, length - 1)); // -1 to exclude null end
if (!in.equals("")) {
text.setString(in);
}
}