Skip to content

Commit

Permalink
Merge pull request #31 from denpadokei/bug-fix
Browse files Browse the repository at this point in the history
ルートURL変更
  • Loading branch information
denpadokei authored Apr 5, 2022
2 parents 42d497c + 7a8c141 commit 6ae2a68
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions SyncSaber/Installers/SyncSaberInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ public class SyncSaberInstaller : MonoInstaller
{
public override void InstallBindings()
{
this.Container.BindInterfacesAndSelfTo<SyncSaber>().FromNewComponentOnNewGameObject().AsSingle();
this.Container.BindInterfacesAndSelfTo<SyncSaberController>().FromNewComponentAsViewController().AsSingle().NonLazy();
this.Container.BindInterfacesAndSelfTo<SyncSaberController>().FromNewComponentOnNewGameObject().AsSingle();
this.Container.BindInterfacesAndSelfTo<NotificationViewController>().FromNewComponentAsViewController().AsSingle().NonLazy();
this.Container.BindInterfacesAndSelfTo<SongListUtil>().AsCached();
}
}
Expand Down
2 changes: 1 addition & 1 deletion SyncSaber/NetWorks/WebClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static WebClient()
{
client = new HttpClient()
{
Timeout = new TimeSpan(0, 0, 30)
Timeout = new TimeSpan(0, 0, 15)
};
client.DefaultRequestHeaders.UserAgent.TryParseAdd($"SyncSaber/{Assembly.GetExecutingAssembly().GetName().Version}");
}
Expand Down
4 changes: 2 additions & 2 deletions SyncSaber/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.1")]
[assembly: AssemblyFileVersion("4.0.1")]
[assembly: AssemblyVersion("4.0.2")]
[assembly: AssemblyFileVersion("4.0.2")]
8 changes: 4 additions & 4 deletions SyncSaber/SyncSaber.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,17 @@
<Compile Include="SimpleJSON\SimpleJSON.cs" />
<Compile Include="SongListUtil.cs" />
<Compile Include="Statics\Enums.cs" />
<Compile Include="SyncSaber.cs" />
<Compile Include="SyncSaberController.cs" />
<Compile Include="UI\SettingViewController.cs" />
<Compile Include="Utilities\Utility.cs" />
<Compile Include="Views\SyncSaberController.cs" />
<Compile Include="Views\NotificationViewController.cs" />
</ItemGroup>
<ItemGroup>
<None Include="BuildTargets.targets" />
<EmbeddedResource Include="UI\SettingView.bsml" />
<EmbeddedResource Include="UI\SyncSaber.bsml" />
<EmbeddedResource Include="Views\SyncSaberController.bsml">
<DependentUpon>SyncSaberController.cs</DependentUpon>
<EmbeddedResource Include="Views\NotificationViewController.bsml">
<DependentUpon>NotificationViewController.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions SyncSaber/SyncSaber.cs → SyncSaber/SyncSaberController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace SyncSaber
{
public class SyncSaber : MonoBehaviour, ISyncSaber
public class SyncSaberController : MonoBehaviour, ISyncSaber
{
private static SemaphoreSlim _semaphoreSlim;
private System.Timers.Timer SyncTimer { get; set; }
Expand All @@ -48,7 +48,7 @@ public class SyncSaber : MonoBehaviour, ISyncSaber
private readonly DiContainer _diContainer;
[Inject]
private readonly SongListUtil utils;
public const string ROOT_BEATSAVER_URL = "https://beatsaver.com/api";
public const string ROOT_BEATSAVER_URL = "https://api.beatsaver.com";
public const string DOWNLOAD_URL = "https://cdn.beatsaver.com";
public const string ROOT_BEASTSABER_URL = "https://bsaber.com/wp-json/bsaber-api/songs";

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace SyncSaber.Views
{
[HotReload]
internal class SyncSaberController : BSMLAutomaticViewController, IInitializable
internal class NotificationViewController : BSMLAutomaticViewController, IInitializable
{
/// <summary>説明 を取得、設定</summary>
private string notificationText_;
Expand Down
2 changes: 1 addition & 1 deletion SyncSaber/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "SyncSaber",
"name": "SyncSaber",
"author": "denpadokei",
"version": "4.0.1",
"version": "4.0.2",
"description": "",
"gameVersion": "1.19.0",
"dependsOn": {
Expand Down

0 comments on commit 6ae2a68

Please sign in to comment.