use of com.github.jakz.romlib.support.cso.CSOBinaryHandle in project rom-manager by Jakz.
the class CSOSupportPlugin method getSpecializedEntry.
@Override
public Handle getSpecializedEntry(Handle entry) {
try {
if (entry instanceof BinaryHandle) {
BinaryHandle handle = (BinaryHandle) entry;
if (handle.getExtension().compareToIgnoreCase("cso") == 0) {
CSOInfo info = new CSOInfo(handle.path());
Log.getLogger(LogSource.SCANNER).i3("Found potential CSO iso: " + handle.path());
return new CSOBinaryHandle(handle.path(), info);
}
}
} catch (IOException e) {
e.printStackTrace();
}
return entry;
}
Aggregations