Skip to content

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
(Reset numbering)
  • Loading branch information
REDX36 committed Jan 23, 2013
1 parent b818ba8 commit ea8096f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<project name="Texture-Patcher" default="build">

<property name="version" value="1.2"/>
<property name="version" value="1.0"/>

<target name="build" depends="clean, compile, jar"/>

Expand Down Expand Up @@ -37,7 +37,7 @@

<manifest>

<attribute name="Main-Class" value="net.soartex.patcher.Texture_Patcher"/>
<attribute name="Main-Class" value="net.soartex.texture_patcher.Texture_Patcher"/>
<attribute name="Class-Path" value="."/>

</manifest>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.soartex.patcher;
package net.soartex.texture_patcher;

import java.awt.Desktop;
import java.awt.GridBagConstraints;
Expand Down Expand Up @@ -229,6 +229,8 @@ protected BrowseListener (final Texture_Patcher t_p) {
t_p.checkUpdate.setEnabled(true);
t_p.patch.setEnabled(true);

t_p.prefsnode.put("path", file.getAbsolutePath());

}

protected final class ZipFileFilter extends FileFilter {
Expand Down Expand Up @@ -910,7 +912,7 @@ protected void compileTexturepack () {

progressdialog.setString("Compressing texture pack file (" + ++count + "/" + files.size() + ")");

final ZipEntry zipentry = new ZipEntry(zipentrypath);
final ZipEntry zipentry = new ZipEntry(zipentrypath.replace("\\", "/"));

zipout.putNextEntry(zipentry);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.soartex.patcher;
package net.soartex.texture_patcher;

import javax.swing.table.AbstractTableModel;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.soartex.patcher;
package net.soartex.texture_patcher;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
Expand All @@ -20,6 +20,7 @@
import java.util.Date;
import java.util.HashMap;
import java.util.Properties;
import java.util.prefs.Preferences;

import javax.swing.ButtonGroup;
import javax.swing.JButton;
Expand All @@ -41,8 +42,9 @@

public final class Texture_Patcher implements Runnable {

protected final static float VERSION = 1.2F;
protected final static float VERSION = 1.0F;

protected final Preferences prefsnode = Preferences.userNodeForPackage(Texture_Patcher.class);
protected final Properties config = new Properties();

protected boolean stopped = false;
Expand Down Expand Up @@ -533,7 +535,8 @@ protected void initializeComponents () {
gbc.anchor = GridBagConstraints.NORTH;
gbc.insets = insets;

path = new JTextField();
path = new JTextField(prefsnode.get("path", ""));

path.setEditable(false);

frame.add(path, gbc);
Expand Down Expand Up @@ -588,6 +591,13 @@ protected void initializeComponents () {

frame.add(patch, gbc);

if (!path.getText().equals("")) {

checkUpdate.setEnabled(true);
patch.setEnabled(true);

}

gbc = new GridBagConstraints();

gbc.gridx = 0;
Expand Down

0 comments on commit ea8096f

Please sign in to comment.