Skip to content

Commit

Permalink
v2.01, fixed mod downloading and DLL autoextractor
Browse files Browse the repository at this point in the history
  • Loading branch information
Clef-0 committed Jul 20, 2023
1 parent 54a93c2 commit 058e6d1
Show file tree
Hide file tree
Showing 134 changed files with 99 additions and 953 deletions.
Binary file not shown.
File renamed without changes.
Binary file added .vs/FMM2/v17/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion FMM2/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>
Binary file added FMM2/FMM2 - Shortcut.lnk
Binary file not shown.
9 changes: 1 addition & 8 deletions FMM2/FMM2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<OutputType>WinExe</OutputType>
<RootNamespace>FMM2</RootNamespace>
<AssemblyName>FMM</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
Expand Down Expand Up @@ -228,11 +228,4 @@
<SplashScreen Include="FMM.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Fody.2.0.0\build\dotnet\Fody.targets" Condition="Exists('..\packages\Fody.2.0.0\build\dotnet\Fody.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Fody.2.0.0\build\dotnet\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.2.0.0\build\dotnet\Fody.targets'))" />
</Target>
</Project>
4 changes: 3 additions & 1 deletion FMM2/LoadFMMLanguage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ private void loadFMMLang()
{
using (new FileStream("FMM_Lang.ini", FileMode.CreateNew)) { }
}
catch { }
catch {
MessageBox.Show("Couldn't create FMM_Lang.ini file.");
}
}


Expand Down
2 changes: 1 addition & 1 deletion FMM2/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:FMM2"
mc:Ignorable="d"
Title="Foundation Mod Manager v2.00 Kandinsky" Height="670" Width="800" Loaded="Window_Loaded" DataContext="{Binding RelativeSource={RelativeSource Self}}" Closing="Window_Closing">
Title="Foundation Mod Manager v2.01 Longest" Height="670" Width="800" Loaded="Window_Loaded" DataContext="{Binding RelativeSource={RelativeSource Self}}" Closing="Window_Closing">
<Window.Background>
<SolidColorBrush Color="{DynamicResource {x:Static SystemColors.ControlColorKey}}"/>
</Window.Background>
Expand Down
17 changes: 11 additions & 6 deletions FMM2/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,13 @@ public MainWindow()
//servers = new ObservableCollection<Server>();
myModsList.ItemsSource = mMods;
downloadableModsList.ItemsSource = dMods;

// maybe some day?
//PropertyGroupDescription groupDescription = new PropertyGroupDescription("Author");
//CollectionView view = (CollectionView)CollectionViewSource.GetDefaultView(downloadableModsList.ItemsSource);
//view.GroupDescriptions.Add(groupDescription);


//myMapsList.ItemsSource = mMaps;
//downloadableMapsList.ItemsSource = dMaps;
//myGametypesList.ItemsSource = mGametypes;
Expand All @@ -652,7 +659,6 @@ public MainWindow()
private void Window_Loaded(object sender, RoutedEventArgs e)
{
initialiseAssembly();
loadFMMLang();
bool doNotInit = false;
#if !DEBUG
if (!File.Exists("mtndew.dll"))
Expand All @@ -663,9 +669,9 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
}
#endif

if (!File.Exists(Path.Combine("FMM", "lib", "INIFileParser.dll")))
if (!doNotInit)
{
if (!doNotInit)
if (!File.Exists(Path.Combine("FMM", "lib", "INIFileParser.dll")))
{
doNotInit = true;
ExtractDLLs();
Expand All @@ -684,10 +690,9 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
MessageBox.Show(Application.Current.MainWindow, faileddeploy, this.Title, MessageBoxButton.OK, MessageBoxImage.Error);
}
}
}

if (!doNotInit)
{
loadFMMLang();

new ListViewDragDropManager<Mod>(myModsList);

modsTabs.Margin = new Thickness { Bottom = 0, Left = 0, Right = 0, Top = menu.ActualHeight };
Expand Down
6 changes: 3 additions & 3 deletions FMM2/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Foundation Mod Manager")]
[assembly: AssemblyCopyright("Copyright © Clef 2017")]
[assembly: AssemblyCopyright("Copyright © Clef 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: AssemblyVersion("2.0.1.0")]
[assembly: AssemblyFileVersion("2.0.1.0")]
2 changes: 1 addition & 1 deletion FMM2/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion FMM2/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed FMM2/bin/x86/Release/FMM.exe
Binary file not shown.
6 changes: 0 additions & 6 deletions FMM2/bin/x86/Release/FMM.exe.config

This file was deleted.

5 changes: 0 additions & 5 deletions FMM2/bin/x86/Release/FMM.ini

This file was deleted.

Binary file removed FMM2/bin/x86/Release/FMM.pdb
Binary file not shown.
Binary file removed FMM2/bin/x86/Release/FMM.zip
Binary file not shown.
Binary file removed FMM2/bin/x86/Release/FMM/lib/INIFileParser.dll
Binary file not shown.
Binary file removed FMM2/bin/x86/Release/FMM/lib/Newtonsoft.Json.dll
Binary file not shown.
Binary file removed FMM2/bin/x86/Release/FMM/lib/SharpSvn.UI.dll
Binary file not shown.
Binary file removed FMM2/bin/x86/Release/FMM/lib/SharpSvn.dll
Binary file not shown.
8 changes: 0 additions & 8 deletions FMM2/bin/x86/Release/FMM/temp/Airglow.ini

This file was deleted.

12 changes: 0 additions & 12 deletions FMM2/bin/x86/Release/FMM/temp/CenteredCrosshairs.ini

This file was deleted.

11 changes: 0 additions & 11 deletions FMM2/bin/x86/Release/FMM/temp/ClefMagSkins.ini

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/DMRCrosshairFix.ini

This file was deleted.

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/EnhancedForge-PUB.ini

This file was deleted.

14 changes: 0 additions & 14 deletions FMM2/bin/x86/Release/FMM/temp/FlatGrass.ini

This file was deleted.

10 changes: 0 additions & 10 deletions FMM2/bin/x86/Release/FMM/temp/FlatWeapFix.ini

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/Grunt_Birthday_Party.ini

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/Guardium.ini

This file was deleted.

6 changes: 0 additions & 6 deletions FMM2/bin/x86/Release/FMM/temp/H2ABR.ini

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/H3AR.ini

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/H3BR.ini

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/H3Bea.ini

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/H3Flak.ini

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/H3Mag.ini

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/H3RL.ini

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/H3SMG.ini

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/H3SPL.ini

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/H3Sho.ini

This file was deleted.

9 changes: 0 additions & 9 deletions FMM2/bin/x86/Release/FMM/temp/H3Sni.ini

This file was deleted.

12 changes: 0 additions & 12 deletions FMM2/bin/x86/Release/FMM/temp/HUD.ini

This file was deleted.

10 changes: 0 additions & 10 deletions FMM2/bin/x86/Release/FMM/temp/Halo 3 HUD.ini

This file was deleted.

Loading

0 comments on commit 058e6d1

Please sign in to comment.