You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -326,7 +326,7 @@ fun getExternalsOnLaunchCommands(): Array<String>?
326
326
fundoesTableExist(table:String): Boolean
327
327
{
328
328
val connection = connectToDB()
329
-
val rs = connection.createStatement().executeQuery("SELECT COUNT(*) FROM sqlite_master WHERE name =\"$table\" and type='table'; ")
329
+
val rs = connection.createStatement().executeQuery("SELECT COUNT(*) FROM sqlite_master WHERE name =\'$table\' and type='table'; ")
330
330
val res = rs.getInt(1)
331
331
connection.close()
332
332
return res !=0
@@ -425,7 +425,7 @@ fun getLastPALVersion(): String
425
425
funsetPALVersion()
426
426
{
427
427
val connection = connectToDB()
428
-
connection.createStatement().executeUpdate("UPDATE Meta set pal_version = \"${GlobalData.version}\";")
428
+
connection.createStatement().executeUpdate("UPDATE Meta set pal_version = \'${GlobalData.version}\';")
429
429
connection.close()
430
430
}
431
431
@@ -448,7 +448,7 @@ fun insertConfiguratorData(config: Configurator)
448
448
{
449
449
for (f in config.poeFolder!!)
450
450
{
451
-
connection.createStatement().execute("INSERT into POE_Locations values(\"${f.path}\", false )")
451
+
connection.createStatement().execute("INSERT into POE_Locations values(\'${f.path}\', false )")
452
452
GlobalData.poeLocations.add(f.path)
453
453
}
454
454
}
@@ -460,9 +460,9 @@ fun insertConfiguratorData(config: Configurator)
460
460
{
461
461
addonFolder = config.addonfolder!!.path
462
462
}
463
-
connection.createStatement().execute("INSERT into Addons_Folder values (\"$addonFolder\", true);")
463
+
connection.createStatement().execute("INSERT into Addons_Folder values (\'$addonFolder\', true);")
464
464
connection.createStatement().execute("INSERT into Flags values (${config.launchPOEonLaunch}, ${config.useSteamPoE}, ${config.githubAPIenabled}, ${config.showUpdateNotesOnUpdate});")
465
-
connection.createStatement().execute("INSERT into Meta values (\"\", \"${ahkFolder}\", \"${GlobalData.version}\", \"${config.githubToken}\", \"${config.tempDownFolder}\");")
465
+
connection.createStatement().execute("INSERT into Meta values (\'\', \'${ahkFolder}\', \'${GlobalData.version}\', \'${config.githubToken}\', \'${config.tempDownFolder}\');")
466
466
connection.close()
467
467
468
468
GlobalData.addonFolder =File(addonFolder)
@@ -524,7 +524,7 @@ fun insertExternalAddonIntoDB(ea: PAL_External_Addon)
524
524
fungetSetting(string:String): String
525
525
{
526
526
val connection = connectToDB()
527
-
val sql ="SELECT value from Settings WHERE name = \"$string\";"
527
+
val sql ="SELECT value from Settings WHERE name = \'$string\';"
528
528
val rs = connection.createStatement().executeQuery(sql)
529
529
val res = rs.getString(1)
530
530
connection.close()
@@ -534,25 +534,25 @@ fun getSetting(string: String): String
534
534
funputSetting(name:String, value:String)
535
535
{
536
536
val connection = connectToDB()
537
-
val sql ="UPDATE Settings set value = \"$value\" WHERE name = \"$name\";"
537
+
val sql ="UPDATE Settings set value = \'$value\' WHERE name = \'$name\';"
538
538
connection.createStatement().execute(sql)
539
539
connection.close()
540
540
}
541
541
542
542
funfilterSettingsCheck(): FilterSettings
543
543
{
544
544
val connection = connectToDB()
545
-
var rs = connection.createStatement().executeQuery("SELECT COUNT(*) FROM Settings WHERE name = \"f_min\"")
545
+
var rs = connection.createStatement().executeQuery("SELECT COUNT(*) FROM Settings WHERE name = \'f_min\'")
546
546
val c = rs.getInt(1)
547
547
548
548
if (c ==0)
549
549
{
550
550
// Create initial values
551
-
var sql ="INSERT into Settings values (\"f_min\", 60);"
551
+
var sql ="INSERT into Settings values (\'f_min\', 60);"
552
552
connection.createStatement().execute(sql)
553
-
sql ="INSERT into Settings values(\"not_f_update_during_poe\", 1);"
553
+
sql ="INSERT into Settings values(\'not_f_update_during_poe\', 1);"
554
554
connection.createStatement().execute(sql)
555
-
sql ="INSERT into Settings values(\"auto_f_update\", 0)"
555
+
sql ="INSERT into Settings values(\'auto_f_update\', 0)"
556
556
connection.createStatement().execute(sql)
557
557
connection.close()
558
558
returnFilterSettings(60, true, false)
@@ -683,7 +683,7 @@ fun hideExternalAddon(eid: Int)
683
683
return
684
684
685
685
val connection = connectToDB()
686
-
connection.createStatement().executeUpdate("UPDATE ExternalAddon set name = \"3c484944453e\" WHERE eid = $eid;")
686
+
connection.createStatement().executeUpdate("UPDATE ExternalAddon set name = \'3c484944453e\' WHERE eid = $eid;")
687
687
connection.close()
688
688
updateRunOnLaunchExternal(eid, false)
689
689
}
@@ -716,7 +716,7 @@ fun updateFilter(filter: Filter)
716
716
return
717
717
}
718
718
719
-
val sql ="UPDATE Filters set crc32 = \"${filter.crc32}\" where fid = ${filter.fid};"
719
+
val sql ="UPDATE Filters set crc32 = \'${filter.crc32}\' where fid = ${filter.fid};"
720
720
val connection = connectToDB()
721
721
connection.createStatement().executeUpdate(sql)
722
722
connection.close()
@@ -741,7 +741,7 @@ fun updateExternalAddon(ea: PAL_External_Addon)
741
741
"WHERE eid = ${ea.eid};"
742
742
743
743
val connection = connectToDB()
744
-
logger.debug { "Connected to DB executing SQL: \"$sql\"" }
744
+
logger.debug { "Connected to DB executing SQL: \'$sql\'" }
745
745
connection.createStatement().executeUpdate(sql)
746
746
connection.close()
747
747
}
@@ -776,7 +776,7 @@ fun createTables(connection: Connection)
776
776
777
777
connection.createStatement().execute("CREATE TABLE IF NOT EXISTS Addons_Folder (\n"+
778
778
" location text NOT NULL,\n"+
779
-
"\"primary\" boolean NOT NULL\n"+
779
+
"\'primary\' boolean NOT NULL\n"+
780
780
");")
781
781
782
782
connection.createStatement().execute("CREATE TABLE IF NOT EXISTS CustomPrograms (\n"+
@@ -820,7 +820,7 @@ fun createTables(connection: Connection)
820
820
821
821
connection.createStatement().execute("CREATE TABLE IF NOT EXISTS PoE_Locations (\n"+
822
822
" location text NOT NULL,\n"+
823
-
"\"primary\" boolean NOT NULL\n"+
823
+
"\'primary\' boolean NOT NULL\n"+
824
824
");")
825
825
826
826
connection.createStatement().execute("CREATE TABLE IF NOT EXISTS Repos (\n"+
0 commit comments