-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from Myuuiii/cubase_beta
Cubase DAW
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, "") | ||
: ""; | ||
} | ||
} |