added runtime patcher, added MemoryUtils, fixes

This commit is contained in:
kitbyte
2025-03-24 14:51:58 +02:00
parent 123307aed7
commit d3ff13a528
33 changed files with 1294 additions and 287 deletions
@@ -11,16 +11,19 @@ namespace WeModPatcher.View.MainWindow
public partial class MainWindow
{
public static MainWindow Instance;
public readonly MainWindowVm ViewModel;
public MainWindow()
{
InitializeComponent();
this.DataContext = new MainWindowVm(this);
this.ViewModel = new MainWindowVm(this);
this.DataContext = ViewModel;
VersionLabel.Text = Constants.Version.ToString();
Instance = this;
}
public void OpenPopup(object content, string title = null)
public void OpenPopup(FrameworkElement content, string title = null)
{
this.PopupHost.PopupContent = content;
PopupHost.Title.Text = title;