Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed not using getSuffix

I didn't notice this line when changing pieces of code to getSuffix(),
but now I have changed it into using getSuffix.
  • Loading branch information...
commit 31244e705a70470d4820de3674a0d35354c8e282 1 parent 0fe08aa
@Sammidysam authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/gamepatcher/
2  src/gamepatcher/
@@ -162,7 +162,7 @@ public void downloadFiles(){
FileOutputStream fos = null;
try {
// creates file in temporary directory to be downloaded to, so that the main file isn't lost if the download is aborted
- File temp = File.createTempFile("tempFile", filePath.substring(filePath.lastIndexOf('.'), filePath.length()));
+ File temp = File.createTempFile("tempFile", getSuffix(filePath));
// the file will be deleted upon exit unless the download is aborted mid-way
URL file = new URL(fileSite);

0 comments on commit 31244e7

Please sign in to comment.
Something went wrong with that request. Please try again.