mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-22 02:21:27 -07:00
38 lines
1016 B
C#
38 lines
1016 B
C#
using System.Diagnostics;
|
|
using System.Windows.Input;
|
|
using Bloxstrap.Helpers;
|
|
using CommunityToolkit.Mvvm.Input;
|
|
|
|
namespace Bloxstrap.ViewModels
|
|
{
|
|
public class ModsViewModel
|
|
{
|
|
public ICommand OpenModsFolderCommand => new RelayCommand(OpenModsFolder);
|
|
|
|
public bool CanOpenModsFolder => !App.IsFirstRun;
|
|
|
|
private void OpenModsFolder()
|
|
{
|
|
Process.Start("explorer.exe", Directories.Modifications);
|
|
}
|
|
|
|
public bool OldDeathSoundEnabled
|
|
{
|
|
get => App.Settings.Prop.UseOldDeathSound;
|
|
set => App.Settings.Prop.UseOldDeathSound = value;
|
|
}
|
|
|
|
public bool OldMouseCursorEnabled
|
|
{
|
|
get => App.Settings.Prop.UseOldMouseCursor;
|
|
set => App.Settings.Prop.UseOldMouseCursor = value;
|
|
}
|
|
|
|
public bool DisableAppPatchEnabled
|
|
{
|
|
get => App.Settings.Prop.UseDisableAppPatch;
|
|
set => App.Settings.Prop.UseDisableAppPatch = value;
|
|
}
|
|
}
|
|
}
|