mirror of https://github.com/hykilpikonna/AquaDX
[maimai2] Fix incompatibility with old versions
parent
75e38f48b4
commit
37b550aa16
|
@ -39,6 +39,11 @@ game.chusan.team-name=
|
||||||
## For example, if DataConfig.xml says "<major>1</major>, <minor>35</minor>, <release>1</release>" then this need to be 1.35.01
|
## For example, if DataConfig.xml says "<major>1</major>, <minor>35</minor>, <release>1</release>" then this need to be 1.35.01
|
||||||
game.ongeki.version=1.05.00
|
game.ongeki.version=1.05.00
|
||||||
|
|
||||||
|
## Maimai DX
|
||||||
|
## Set this true if you are using old version of Splash network patch and have no other choice.
|
||||||
|
## This is a dirty workaround. If enabled, you probably won't able to play other versions.
|
||||||
|
game.maimai2.splash-old-patch=false
|
||||||
|
|
||||||
## Logging
|
## Logging
|
||||||
spring.servlet.multipart.max-file-size=10MB
|
spring.servlet.multipart.max-file-size=10MB
|
||||||
spring.servlet.multipart.max-request-size=20MB
|
spring.servlet.multipart.max-request-size=20MB
|
||||||
|
|
|
@ -34,11 +34,14 @@ public class AllNetController {
|
||||||
private final ObjectMapper mapper = new ObjectMapper();
|
private final ObjectMapper mapper = new ObjectMapper();
|
||||||
private final String HOST_OVERRIDE;
|
private final String HOST_OVERRIDE;
|
||||||
private final String PORT_OVERRIDE;
|
private final String PORT_OVERRIDE;
|
||||||
|
private final boolean MAIMAI2_NO_HTTP;
|
||||||
|
|
||||||
public AllNetController(@Value("${allnet.server.host:}") String HOST,
|
public AllNetController(@Value("${allnet.server.host:}") String HOST,
|
||||||
@Value("${allnet.server.port:}") String PORT) {
|
@Value("${allnet.server.port:}") String PORT,
|
||||||
|
@Value("${game.maimai2.splash-old-patch:false}") boolean MAIMAI2_NO_HTTP) {
|
||||||
this.HOST_OVERRIDE = HOST;
|
this.HOST_OVERRIDE = HOST;
|
||||||
this.PORT_OVERRIDE = PORT;
|
this.PORT_OVERRIDE = PORT;
|
||||||
|
this.MAIMAI2_NO_HTTP = MAIMAI2_NO_HTTP;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/")
|
@GetMapping("/")
|
||||||
|
@ -142,7 +145,12 @@ public class AllNetController {
|
||||||
case "SDEY":
|
case "SDEY":
|
||||||
return "http://" + addr + ":" + port + "/MaimaiServlet/";
|
return "http://" + addr + ":" + port + "/MaimaiServlet/";
|
||||||
case "SDEZ":
|
case "SDEZ":
|
||||||
|
// Workaround for old splash patch
|
||||||
|
if (MAIMAI2_NO_HTTP) {
|
||||||
|
return addr + ":" + port + "/Maimai2Servlet/";
|
||||||
|
} else {
|
||||||
return "http://" + addr + ":" + port + "/Maimai2Servlet/";
|
return "http://" + addr + ":" + port + "/Maimai2Servlet/";
|
||||||
|
}
|
||||||
case "SDHD":
|
case "SDHD":
|
||||||
return "http://" + addr + ":" + port + "/ChusanServlet/";
|
return "http://" + addr + ":" + port + "/ChusanServlet/";
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -14,7 +14,7 @@ import java.util.Map;
|
||||||
* @author samnyan (privateamusement@protonmail.com)
|
* @author samnyan (privateamusement@protonmail.com)
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping({"/Maimai2Servlet", "/Maimai2Servlet/Maimai2Servlet"}) // Workaround for endpoint mismatch, let's just accept both
|
@RequestMapping({"/Maimai2Servlet/Maimai2Servlet", "/Maimai2Servlet"}) // Workaround for endpoint mismatch, let's just accept both
|
||||||
public class Maimai2ServletController {
|
public class Maimai2ServletController {
|
||||||
|
|
||||||
private final GetGameSettingHandler getGameSettingHandler;
|
private final GetGameSettingHandler getGameSettingHandler;
|
||||||
|
|
|
@ -1,41 +1,22 @@
|
||||||
## AimeDb server setting
|
# This configuration file is for define default values
|
||||||
|
# User should use application.properties in the /config folder instead, not this
|
||||||
aimedb.server.enable=true
|
aimedb.server.enable=true
|
||||||
aimedb.server.address=0.0.0.0
|
aimedb.server.address=0.0.0.0
|
||||||
aimedb.server.port=22345
|
aimedb.server.port=22345
|
||||||
## Billing server setting
|
|
||||||
billing.server.enable=true
|
billing.server.enable=true
|
||||||
billing.server.port=8443
|
billing.server.port=8443
|
||||||
## Server host & port return to client when boot up.
|
|
||||||
## By default the same address and port from the client connection is returned.
|
|
||||||
## Please notice DIVA won't work with localhost or 127.0.0.1
|
|
||||||
#allnet.server.host=localhost
|
|
||||||
#allnet.server.port=80
|
|
||||||
## Http Server Port
|
|
||||||
## Only change this if you have a reverse proxy running.
|
|
||||||
## The game rely on 80 port for boot up command
|
|
||||||
server.port=80
|
server.port=80
|
||||||
########## Game specific setting ##########
|
|
||||||
## Chunithm
|
|
||||||
## This enables team function if you set team name here. Leave this blank to disable it.
|
|
||||||
game.chunithm.team-name=
|
|
||||||
## Logging
|
|
||||||
spring.servlet.multipart.max-file-size=10MB
|
spring.servlet.multipart.max-file-size=10MB
|
||||||
spring.servlet.multipart.max-request-size=20MB
|
spring.servlet.multipart.max-request-size=20MB
|
||||||
## Database Setting
|
|
||||||
spring.flyway.baseline-on-migrate=true
|
spring.flyway.baseline-on-migrate=true
|
||||||
spring.flyway.locations=classpath:db/migration/{vendor}
|
spring.flyway.locations=classpath:db/migration/{vendor}
|
||||||
########## For Sqlite ##########
|
|
||||||
spring.datasource.driver-class-name=org.sqlite.JDBC
|
spring.datasource.driver-class-name=org.sqlite.JDBC
|
||||||
spring.datasource.url=jdbc:sqlite:data/db.sqlite
|
spring.datasource.url=jdbc:sqlite:data/db.sqlite
|
||||||
spring.datasource.hikari.maximum-pool-size=1
|
spring.datasource.hikari.maximum-pool-size=1
|
||||||
#auto schema update will case sqlite error
|
|
||||||
spring.jpa.hibernate.ddl-auto=none
|
spring.jpa.hibernate.ddl-auto=none
|
||||||
spring.jpa.properties.hibernate.dialect=org.sqlite.hibernate.dialect.SQLiteDialect
|
spring.jpa.properties.hibernate.dialect=org.sqlite.hibernate.dialect.SQLiteDialect
|
||||||
########## For Mysql ##########
|
|
||||||
#spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
|
|
||||||
#spring.datasource.username=
|
|
||||||
#spring.datasource.password=
|
|
||||||
#spring.datasource.url=jdbc:mariadb://localhost:3306/?useSSL=false
|
|
||||||
#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDB10Dialect
|
|
||||||
|
|
||||||
## You can add any Spring Boot properties below
|
|
Loading…
Reference in New Issue