[maimai2] Fix endpoint incompatibility with patches

This commit is contained in:
Dom Eori
2022-03-11 04:05:06 +09:00
parent cbae5d049c
commit ee6d28bd00
3 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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 + "/";
} }

View File

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