mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-04 13:57:39 +00:00
SteamController: Use Roslyn Scripting to compile UserProfiles
- This looks into `UserProfiles/` and compiles user profiles - This exposes a very minimal scripting interface as defined by `Dynamic.Globals`
This commit is contained in:
parent
b24ae302b1
commit
e5debff45b
8 changed files with 504 additions and 11 deletions
|
|
@ -10,12 +10,25 @@ namespace SteamController.Profiles
|
|||
public bool IsDone { get; set; }
|
||||
}
|
||||
|
||||
public event Action<string[]> ErrorsChanged;
|
||||
|
||||
public virtual String Name { get; set; } = "";
|
||||
public virtual bool Visible { get; set; } = true;
|
||||
public virtual bool IsDesktop { get; set; }
|
||||
public virtual string[]? Errors { get; set; }
|
||||
|
||||
public abstract bool Selected(Context context);
|
||||
|
||||
public abstract Status Run(Context context);
|
||||
|
||||
public Profile()
|
||||
{
|
||||
ErrorsChanged += delegate { };
|
||||
}
|
||||
|
||||
protected void OnErrorsChanged()
|
||||
{
|
||||
ErrorsChanged(this.Errors ?? new string[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue