Skip to content

Commit fa9e133

Browse files
authored
Add files via upload
1 parent 08c3767 commit fa9e133

12 files changed

Lines changed: 1746 additions & 473 deletions

File tree

SharpMonoInjector.Console/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private static void Main(string[] args)
1717

1818
if (!IsElevated)
1919
{
20-
System.Console.WriteLine("\r\nSharpMonoInjector 2.6 TheHolyOneZ Edition\r\n\r\nWARNING: You are running this in an unpriveleged process, try from an Elevated Command Prompt.\r\n");
20+
System.Console.WriteLine("\r\nSharpMonoInjector 2.7 TheHolyOneZ Edition\r\n\r\nWARNING: You are running this in an unpriveleged process, try from an Elevated Command Prompt.\r\n");
2121
System.Console.WriteLine("\t As an alternative, right-click Game .exe and uncheck the Compatibility\r\n\t setting 'Run this program as Administrator'.\r\n\r\n");
2222
//System.Console.ReadKey();
2323
//return;
@@ -70,7 +70,7 @@ private static void Main(string[] args)
7070
private static void PrintHelp()
7171
{
7272
const string help =
73-
"SharpMonoInjector 2.6 TheHolyOneZ Edition\r\n\r\n" +
73+
"SharpMonoInjector 2.7 TheHolyOneZ Edition\r\n\r\n" +
7474
"Usage:\r\n" +
7575
"smi.exe <inject/eject> <options>\r\n\r\n" +
7676
"Options:\r\n" +
224 KB
Binary file not shown.
224 KB
Binary file not shown.
200 KB
Binary file not shown.

SharpMonoInjector.Gui/SharpMonoInjector.Gui.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
<SubType>Designer</SubType>
7070
<Generator>MSBuild:Compile</Generator>
7171
</Page>
72+
<Page Include="Views\ChooseBepInExWindow.xaml">
73+
<Generator>MSBuild:Compile</Generator>
74+
<SubType>Designer</SubType>
75+
</Page>
7276
<Page Include="Views\LogViewerWindow.xaml">
7377
<Generator>MSBuild:Compile</Generator>
7478
<SubType>Designer</SubType>
@@ -104,11 +108,15 @@
104108
<Compile Include="Services\ConfigurationService.cs" />
105109
<Compile Include="Services\LoggingService.cs" />
106110
<Compile Include="Services\ProcessMonitorService.cs" />
111+
<Compile Include="ViewModels\ChooseBepInExViewModel.cs" />
107112
<Compile Include="ViewModels\LogViewerViewModel.cs" />
108113
<Compile Include="ViewModels\MainWindowViewModel.cs" />
109114
<Compile Include="ViewModels\RelayCommand.cs" />
110115
<Compile Include="ViewModels\SelectProfileViewModel.cs" />
111116
<Compile Include="ViewModels\ViewModel.cs" />
117+
<Compile Include="Views\ChooseBepInExWindow.xaml.cs">
118+
<DependentUpon>ChooseBepInExWindow.xaml</DependentUpon>
119+
</Compile>
112120
<Compile Include="Views\LogViewerWindow.xaml.cs">
113121
<DependentUpon>LogViewerWindow.xaml</DependentUpon>
114122
</Compile>
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
using SharpMonoInjector.Gui.ViewModels;
2+
3+
namespace SharpMonoInjector.Gui.ViewModels
4+
{
5+
public class ChooseBepInExViewModel : ViewModel
6+
{
7+
private BepInExType _selectedType;
8+
private string _gameName;
9+
private string _standardPath;
10+
private string _modManagerPath;
11+
12+
public ChooseBepInExViewModel(string gameName, string standardPath, string modManagerPath)
13+
{
14+
_gameName = gameName;
15+
_standardPath = standardPath;
16+
_modManagerPath = modManagerPath;
17+
_selectedType = BepInExType.Standard;
18+
}
19+
20+
public BepInExType SelectedType
21+
{
22+
get => _selectedType;
23+
set => Set(ref _selectedType, value);
24+
}
25+
26+
public string GameName
27+
{
28+
get => _gameName;
29+
set => Set(ref _gameName, value);
30+
}
31+
32+
public string StandardPath
33+
{
34+
get => _standardPath;
35+
set => Set(ref _standardPath, value);
36+
}
37+
38+
public string ModManagerPath
39+
{
40+
get => _modManagerPath;
41+
set => Set(ref _modManagerPath, value);
42+
}
43+
44+
public bool IsStandardSelected
45+
{
46+
get => _selectedType == BepInExType.Standard;
47+
set
48+
{
49+
if (value) SelectedType = BepInExType.Standard;
50+
}
51+
}
52+
53+
public bool IsModManagerSelected
54+
{
55+
get => _selectedType == BepInExType.ModManager;
56+
set
57+
{
58+
if (value) SelectedType = BepInExType.ModManager;
59+
}
60+
}
61+
}
62+
}

0 commit comments

Comments
 (0)