mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
29 lines
700 B
C#
29 lines
700 B
C#
using Mesen.Config;
|
|
using Mesen.Interop;
|
|
using Mesen.Utilities;
|
|
using ReactiveUI;
|
|
using ReactiveUI.Fody.Helpers;
|
|
using System;
|
|
using System.IO;
|
|
using System.Reactive.Linq;
|
|
|
|
namespace Mesen.ViewModels
|
|
{
|
|
public class MovieRecordConfigViewModel : ViewModelBase
|
|
{
|
|
[Reactive] public string SavePath { get; set; }
|
|
[Reactive] public 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();
|
|
}
|
|
}
|
|
}
|