Skip to content

Commit

Permalink
Merge pull request #11 from Myuuiii/cubase_beta
Browse files Browse the repository at this point in the history
Cubase DAW
  • Loading branch information
Myuuiii authored Mar 31, 2024
2 parents f348515 + f10074f commit dedeaa1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions DAWPresence/DAWs/Cubase13.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System.Diagnostics;

namespace DAWPresence.DAWs;

public class Cubase13 : Daw
{
public Cubase13()
{
ProcessName = "Cubase13";
DisplayName = "Cubase 13";
ImageKey = "image";
ApplicationId = "1223993322243362898";
WindowTrim = "Cubase Pro Project - ";
TitleOffset = 0;
}

public override string GetProjectNameFromProcessWindow()
{
Process? process = GetProcess();
if (process is null) return "";
string title = process.MainWindowTitle;
return title.Contains(WindowTrim)
? title.Replace(WindowTrim, "")
: "";
}
}

0 comments on commit dedeaa1

Please sign in to comment.