fix: Covers for Vic-20 games is correctly imported
This commit is contained in:
parent
002097810b
commit
ff7e3ec040
1
pom.xml
1
pom.xml
|
@ -138,6 +138,7 @@
|
|||
</jre>
|
||||
<splash>
|
||||
<file>target/classes/PCUGameManager.bmp</file>
|
||||
<waitForWindow>true</waitForWindow>
|
||||
<timeout>30</timeout>
|
||||
</splash>
|
||||
<icon>target/classes/Icon.ico</icon>
|
||||
|
|
|
@ -246,8 +246,16 @@ public class GamebaseImporter
|
|||
String coverFile = "";
|
||||
String coverSql = "SELECT Extras.Name, Extras.Path, Extras.DisplayOrder\r\n" +
|
||||
"FROM Games INNER JOIN Extras ON Games.GA_Id = Extras.GA_Id\r\n" + "WHERE (((Games.GA_Id)=" + gameId +
|
||||
") AND ((Extras.Name) Like \"Cover*\"));";
|
||||
") AND ((Extras.Name) Like ";
|
||||
|
||||
if (isC64)
|
||||
{
|
||||
coverSql = coverSql + "\"Cover*\"));";
|
||||
}
|
||||
else
|
||||
{
|
||||
coverSql = coverSql + "\"*Box Front\" OR (Extras.Name) Like \"*Inlay*\"));";
|
||||
}
|
||||
ResultSet sqlResult = statement.executeQuery(coverSql);
|
||||
int displayOrder = -1;
|
||||
//Get the one with the lowest display order (probably the best one)
|
||||
|
|
Loading…
Reference in New Issue