feat: Add support for 3.8.5x

This commit is contained in:
amizing25
2026-01-06 23:57:37 +07:00
parent 56bdb1abc1
commit 14692dc78e
17 changed files with 79422 additions and 82321 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ use std::collections::HashMap;
use anyhow::{Result, anyhow};
use prost::Message as _;
use proto::Gateserver;
use proto::GateServer;
use serde::{Deserialize, Serialize};
use tokio::fs;
@@ -73,7 +73,7 @@ impl VersionConfig {
tracing::info!("raw gateway response: {}", res);
let bytes = rbase64::decode(&res)?;
let decoded = Gateserver::decode(bytes.as_slice())?;
let decoded = GateServer::decode(bytes.as_slice())?;
if decoded.asset_bundle_url.is_empty() && decoded.ex_resource_url.is_empty() {
return Err(anyhow::format_err!(
+2 -5
View File
@@ -3,7 +3,7 @@ use std::sync::Arc;
use crate::AppState;
use axum::extract::{Query, State};
use prost::Message;
use proto::{Dispatch, Gateserver, RegionInfo};
use proto::{Dispatch, GateServer, RegionInfo};
use serde::Deserialize;
use tokio::sync::RwLock;
use tracing::instrument;
@@ -47,7 +47,7 @@ pub async fn query_gateway(
.get_or_insert_hotfix(&parameters.version, &parameters.dispatch_seed)
.await;
let rsp = Gateserver {
let rsp = GateServer {
ip: String::from("127.0.0.1"),
port: 23301,
asset_bundle_url: config.asset_bundle_url.clone(),
@@ -62,9 +62,6 @@ pub async fn query_gateway(
unk5: true,
unk6: true,
unk7: true,
unk8: true,
unk9: true,
unk10: true,
..Default::default()
};