Skip to content

Commit

Permalink
Updated for JEB 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nfalliere committed Dec 9, 2015
1 parent 5414f31 commit 4bfad38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/com/pnf/plugin/obb/ObbPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ public ObbPlugin() {

@Override
public PluginInformation getPluginInformation() {
return new PluginInformation("Android OBB Plugin", "Opaque Binary Blob Parser", "PNF Software", new Version(1,
0, 1));
// requires JEB 2.1
return new PluginInformation("Android OBB Plugin", "Opaque Binary Blob Parser", "PNF Software",
Version.create(1,0, 1), Version.create(2, 1), null);
}

public boolean canIdentify(IInput stream, IUnitCreator unit) {
Expand Down
6 changes: 4 additions & 2 deletions src/com/pnf/plugin/obb/ObbUnit.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ public String getDescription() {
}

public boolean process() {
if(isProcessed()) {
return true;
}

// Retrieve raw bytes passed to this unit
byte[] data = null;

Expand All @@ -82,8 +86,6 @@ public boolean process() {

// Call unit processor on modified data (will return a FAT unit)
IUnit fatChildUnit = getUnitProcessor().process(ObbPlugin.FAT_IMAGE_NAME, new BytesInput(data), this);

// Add new FAT unit to this unit's list of children
addChild(fatChildUnit);

setProcessed(true);
Expand Down

0 comments on commit 4bfad38

Please sign in to comment.