mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 00:27:26 +08:00
[maimai2] Fix endpoint incompatibility with patches
This commit is contained in:
@@ -45,7 +45,7 @@ Only JP variant is supported.
|
|||||||
* Tournament mode
|
* Tournament mode
|
||||||
|
|
||||||
### Additional notes
|
### Additional notes
|
||||||
* From version 0.0.25, Aqua reports endpoint as `http://ALLNET_HOST/`. The final endpoint that game connects must be `http://ALLNET_HOST/Maimai2Servlet/`.
|
* Previous versions of Aqua reported different endpoint URI for Maimai DX thus required compatible patches. Currently, it doesn't matter and both will work.
|
||||||
|
|
||||||
## O.N.G.E.K.I
|
## O.N.G.E.K.I
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ public class AllNetController {
|
|||||||
case "SDEY":
|
case "SDEY":
|
||||||
return "http://" + addr + ":" + port + "/MaimaiServlet/";
|
return "http://" + addr + ":" + port + "/MaimaiServlet/";
|
||||||
case "SDEZ":
|
case "SDEZ":
|
||||||
return "http://" + addr + ":" + port + "/";
|
return "http://" + addr + ":" + port + "/Maimai2Servlet/";
|
||||||
default:
|
default:
|
||||||
return "http://" + addr + ":" + port + "/";
|
return "http://" + addr + ":" + port + "/";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import java.util.Map;
|
|||||||
* @author samnyan (privateamusement@protonmail.com)
|
* @author samnyan (privateamusement@protonmail.com)
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("Maimai2Servlet")
|
@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;
|
||||||
|
|||||||
Reference in New Issue
Block a user