Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
terminalsin committed Dec 25, 2024
1 parent ca8de13 commit 3b634cb
Show file tree
Hide file tree
Showing 30 changed files with 4,180 additions and 79 deletions.
7 changes: 7 additions & 0 deletions dev.skidfuscator.client.standalone/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.10.1</version>
</dependency>
</dependencies>
Original file line number Diff line number Diff line change
Expand Up @@ -409,5 +409,9 @@ private void saveConfiguration() {
public String getLibsPath() { return libsField.getText(); }
public String getRuntimePath() { return runtimeField.getText(); }
public boolean isDebugEnabled() { return debugBox.isSelected(); }
public String getLibraryPath() {
// TODO: Add a library path field to the config panel
return null;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,13 @@ public void write(int b) {
Element line = root.getElement(currentLine);
int start = line.getStartOffset();
int end = line.getEndOffset();
doc.remove(start, end - start);
if (end - start > 0) {
doc.remove(start, end - start);
} else {
// Remove last line if it's empty
Element prevLine = root.getElement(currentLine - 1);
doc.remove(prevLine.getStartOffset(), prevLine.getEndOffset());
}
} catch (BadLocationException e) {
e.printStackTrace(originalErr);
}
Expand Down
Loading

0 comments on commit 3b634cb

Please sign in to comment.