fix: fix how the file ending is identified when adding a game, takes last index of "." instead of first.
This commit is contained in:
parent
e28e9e51fb
commit
247a20b2db
|
@ -350,7 +350,7 @@ public class InfoModel extends AbstractModel
|
|||
this.gamesPath = file.toPath();
|
||||
//Set games name, always add ".gz"??
|
||||
String fileName = FileManager.generateFileNameFromTitle(this.title, getDuplicateIndex());
|
||||
String fileEnding = file.getName().substring(file.getName().indexOf("."));
|
||||
String fileEnding = file.getName().substring(file.getName().lastIndexOf("."));
|
||||
|
||||
if (FileManager.shouldCompressFile(file.getName()))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue