fix: Covers for Vic-20 games is correctly imported

This commit is contained in:
lantzelot-swe 2021-03-11 23:07:44 +01:00
parent 002097810b
commit ff7e3ec040
2 changed files with 10 additions and 1 deletions

View File

@ -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>

View File

@ -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)