mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-09-18 13:04:53 +08:00
feat: implement production cas v1
This commit is contained in:
@@ -79,7 +79,7 @@ impl GameClient {
|
||||
/// 此功能将在 Phase 3 实现
|
||||
pub fn discover() -> crate::Result<Vec<GameClient>> {
|
||||
Err(crate::Error::NotImplemented(
|
||||
"客户端发现功能将在 Phase 3 实现".to_string()
|
||||
"客户端发现功能将在 Phase 3 实现".to_string(),
|
||||
))
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ impl GameClient {
|
||||
/// 此功能将在 Phase 3 实现
|
||||
pub fn verify_integrity(&self) -> crate::Result<bool> {
|
||||
Err(crate::Error::NotImplemented(
|
||||
"完整性验证将在 Phase 3 实现".to_string()
|
||||
"完整性验证将在 Phase 3 实现".to_string(),
|
||||
))
|
||||
}
|
||||
|
||||
@@ -134,10 +134,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_streaming_assets_path() {
|
||||
let client = GameClient::new(
|
||||
PathBuf::from("/game/BlueArchive_JP"),
|
||||
GameRegion::Japan
|
||||
);
|
||||
let client = GameClient::new(PathBuf::from("/game/BlueArchive_JP"), GameRegion::Japan);
|
||||
|
||||
assert_eq!(
|
||||
client.streaming_assets_path(),
|
||||
@@ -147,10 +144,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_asset_bundles_path() {
|
||||
let client = GameClient::new(
|
||||
PathBuf::from("/game/BlueArchive_JP"),
|
||||
GameRegion::Japan
|
||||
);
|
||||
let client = GameClient::new(PathBuf::from("/game/BlueArchive_JP"), GameRegion::Japan);
|
||||
|
||||
assert_eq!(
|
||||
client.asset_bundles_path(),
|
||||
@@ -162,6 +156,9 @@ mod tests {
|
||||
fn test_discover_not_implemented() {
|
||||
let result = GameClient::discover();
|
||||
assert!(result.is_err());
|
||||
assert!(matches!(result.unwrap_err(), crate::Error::NotImplemented(_)));
|
||||
assert!(matches!(
|
||||
result.unwrap_err(),
|
||||
crate::Error::NotImplemented(_)
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user