Files
MesenCE/UI/ViewModels/MovieRecordConfigViewModel.cs
SourMesen 40335ce735 UI: Update to Avalonia 12, .NET 10 and replace ReactiveUI with MVVM community toolkit (#142)
Also fixes DX11.0 support (for Win7 PCs that aren't fully updated), which stopped working after the recent variable refresh rate changes
2026-07-03 16:04:42 +09:00

28 lines
707 B
C#

using CommunityToolkit.Mvvm.ComponentModel;
using Mesen.Config;
using Mesen.Interop;
using Mesen.Utilities;
using System;
using System.IO;
namespace Mesen.ViewModels
{
public partial class MovieRecordConfigViewModel : ViewModelBase
{
[ObservableProperty] public partial string SavePath { get; set; }
[ObservableProperty] public partial MovieRecordConfig Config { get; set; }
public MovieRecordConfigViewModel()
{
Config = ConfigManager.Config.MovieRecord.Clone();
SavePath = Path.Join(ConfigManager.MovieFolder, EmuApi.GetRomInfo().GetRomName() + "." + FileDialogHelper.MesenMovieExt);
}
public void SaveConfig()
{
ConfigManager.Config.MovieRecord = Config.Clone();
}
}
}