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

Add Beat Saber launch Button #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
316 changes: 171 additions & 145 deletions Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ private void applyButton_Click(object sender, EventArgs e) {
SetKv(ref acf, "StateFlags", "4");
SetKv(ref acf, "UpdateResult", "0");

// Enable launchButton after applying Manifest Update
launchButton.Enabled = true;

// Disable Autoupdate if its not already
if(checkBox1.Checked)
if (checkBox1.Checked)
SetKv(ref acf, "AutoUpdateBehavior", "0");

acf = Regex.Replace(acf, "(\"" + AppInfo.DEPOT_ID + "\".*?\"manifest\"\\s*?)\"[0-9]{19}\"", $"$1\"{textbox_manifest.Text}\"", RegexOptions.Singleline | RegexOptions.IgnoreCase);
Expand Down Expand Up @@ -132,5 +135,10 @@ private async void getManifestButton_Click(object sender, EventArgs e) {
getManifestButton.Enabled = true;
getManifestButton.Text = "Retrieve";
}

private void launchButton_Click(object sender, EventArgs e) {
LaunchUrl("steam://rungameid/620980");
this.Close();
}
}
}
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ static class Program {
/// </summary>
[STAThread]
static void Main() {
Debug.Listeners.Add(new TextWriterTraceListener(Console.Out));
Debug.Listeners.Add(new TextWriterTraceListener(Console.Out));
Debug.AutoFlush = true;
Debug.Indent();
Debug.WriteLine("Entering Main, starting Form");
Expand Down
Binary file modified SS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.