From f78ad91a849122119eb17cf41164e6ffc8d068fe Mon Sep 17 00:00:00 2001 From: progre Date: Thu, 5 Oct 2023 19:49:37 +0900 Subject: [PATCH] v0.3.0 --- Cargo.lock | 22 +++++++++---------- Cargo.toml | 2 +- README.md | 6 ++--- junowen-lib/src/connection/peer_connection.rs | 3 +-- 4 files changed, 15 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 48598e1..0e6de2f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -973,7 +973,7 @@ dependencies = [ [[package]] name = "junowen" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "bytes", @@ -992,7 +992,7 @@ dependencies = [ [[package]] name = "junowen-lib" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "async-trait", @@ -1894,7 +1894,7 @@ dependencies = [ [[package]] name = "th19loader" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "sha3", @@ -1903,7 +1903,7 @@ dependencies = [ [[package]] name = "th19netdelayemulate" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "bytes", @@ -1914,7 +1914,7 @@ dependencies = [ [[package]] name = "th19onlinevsfix" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "junowen-lib", @@ -1923,7 +1923,7 @@ dependencies = [ [[package]] name = "th19padlight" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "junowen-lib", @@ -1932,7 +1932,7 @@ dependencies = [ [[package]] name = "th19replayplayer" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "bytes", @@ -1944,7 +1944,7 @@ dependencies = [ [[package]] name = "th19replayplayer-lib" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "bytes", @@ -1955,7 +1955,7 @@ dependencies = [ [[package]] name = "th19replayrecorder" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "bytes", @@ -1967,7 +1967,7 @@ dependencies = [ [[package]] name = "th19savesettingsseparately" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "junowen-lib", @@ -1976,7 +1976,7 @@ dependencies = [ [[package]] name = "th19seed" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "junowen-lib", diff --git a/Cargo.toml b/Cargo.toml index 41d6e35..4b2da5a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ default-members = ["junowen"] resolver = "2" [workspace.package] -version = "0.2.0" +version = "0.3.0" authors = ["Progre"] license = "GPL-3.0" diff --git a/README.md b/README.md index b4426ee..34dd0df 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# junowen +# Ju. N. Owen 東方獣王園の非公式オンライン対戦ツールです。 @@ -34,7 +34,7 @@ adonis や th075caster と同じような仕組みで動作します。 2. `********` という長い文字列が表示され、自動的にクリップボードに保存されるので、 この文字列を Discord 等を使って対戦相手に送信してください。 3. うまくいけば相手の入力の後、対戦が開始されます。 -4 ホストはゲーム中にもテンキーの0-9でディレイを変更できます。 +4 ホストはゲーム中にも数字キーの0-9でディレイを変更できます。 ### 補足 @@ -44,8 +44,6 @@ adonis や th075caster と同じような仕組みで動作します。 ## 現在の制約 - **対戦中にポーズをかけることはできません。** -- **ゲームパッドを接続せずに Keyboard Full を使用していると、** - **ローカル対戦と同様に自動的に Keyboard Left か Keyboard Right に変更されます。** - **ゲストからはセッションを終了することができません。** - 難易度選択はホストのみ行えます。 - 対戦相手の名前は表示されません。 diff --git a/junowen-lib/src/connection/peer_connection.rs b/junowen-lib/src/connection/peer_connection.rs index 72ede07..923fe06 100644 --- a/junowen-lib/src/connection/peer_connection.rs +++ b/junowen-lib/src/connection/peer_connection.rs @@ -115,7 +115,7 @@ impl Drop for PeerConnection { } } -const PROTOCOL: &str = "JUNOWEN/0.2"; +const PROTOCOL: &str = "JUNOWEN/0.3"; impl PeerConnection { pub async fn new() -> Result { @@ -244,7 +244,6 @@ impl PeerConnection { let mut data_channel = self.data_channel_rx.take().unwrap().await.unwrap(); data_channel.wait_for_open_data_channel().await; if data_channel.protocol() != PROTOCOL { - // TODO: ここでエラーを返すとコネクションがリークするかも bail!("unexpected protocol: {}", data_channel.protocol()); } Ok(data_channel)