Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented Discord's GameSDK #32

Merged
merged 1 commit into from
Apr 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Qsor.Deploy/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ private static void Main()
Directory.CreateDirectory("releases");

var stagingDirectory = currentDirectory.GetStorageForDirectory("staging");
var currentDate = DateTime.Now.ToString("yyyy.MMdd.");
var currentDate = DateTime.Now.ToString("yyyy.Mdd.");

currentDate = currentDate.Replace(".0", ".");
currentDate += currentDirectory.GetDirectories("releases").Count(s => s.Contains(currentDate));

var releaseDirectory = currentDirectory.GetStorageForDirectory($"./releases/App-{currentDate}");
Expand Down Expand Up @@ -84,7 +83,7 @@ private static void Main()
if (Path.GetFileName(a).StartsWith('.'))
continue;

Console.WriteLine("- Pushing asset {a}...");
Console.WriteLine($"- Pushing asset {a}...");
var upload = new WebRequest(assetUploadUrl, Path.GetFileName(a))
{
Method = HttpMethod.Post,
Expand Down
3 changes: 1 addition & 2 deletions Qsor.Desktop/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Diagnostics;
using System.Threading.Tasks;
using System.Threading.Tasks;
using osu.Framework;
using osu.Framework.Development;
using Qsor.Desktop.Updater;
Expand Down
10 changes: 10 additions & 0 deletions Qsor.Game/Discord/GameSDK/ActivityManager.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Discord
{
public partial class ActivityManager
{
public void RegisterCommand()
{
RegisterCommand(null);
}
}
}
7 changes: 7 additions & 0 deletions Qsor.Game/Discord/GameSDK/Constants.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Discord
{
static class Constants
{
public const string DllName = "discord_game_sdk";
}
}
Loading