mirror of
https://github.com/libretro/MesenCE.git
synced 2026-11-11 03:01:50 -10:00
Also fixes DX11.0 support (for Win7 PCs that aren't fully updated), which stopped working after the recent variable refresh rate changes
28 lines
707 B
C#
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();
|
|
}
|
|
}
|
|
}
|