Add loginapplet and passapplet support

Signed-off-by: Graham <gpe@openrs2.org>
Graham 1 year ago
parent ca3a7645b7
commit fe5cde0290
  1. 10
      archive/src/main/kotlin/org/openrs2/archive/client/ClientImporter.kt
  2. 7
      archive/src/main/resources/org/openrs2/archive/migrations/V24__loginapplet_passapplet.sql

@ -534,6 +534,16 @@ public class ClientImporter @Inject constructor(
build = null
type = ArtifactType.CLIENT
links = emptyList()
} else if (library.contains("loginapplet")) {
game = "loginapplet"
build = null
type = ArtifactType.CLIENT
links = emptyList()
} else if (library.contains("passwordapp")) {
game = "passapplet"
build = null
type = ArtifactType.CLIENT
links = emptyList()
} else if (library.contains("jaggl/opengl")) {
game = "shared"
type = ArtifactType.JAGGL

@ -0,0 +1,7 @@
-- @formatter:off
INSERT INTO scopes (name) VALUES ('loginapplet');
INSERT INTO games (name, scope_id) VALUES ('loginapplet', (SELECT id FROM scopes WHERE name = 'loginapplet'));
INSERT INTO scopes (name) VALUES ('passapplet');
INSERT INTO games (name, scope_id) VALUES ('passapplet', (SELECT id FROM scopes WHERE name = 'passapplet'));
Loading…
Cancel
Save