Skip to content

Commit

Permalink
Added KOFXV Steam support
Browse files Browse the repository at this point in the history
  • Loading branch information
TekkaGB committed Feb 17, 2022
1 parent 4306981 commit 6c7033d
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 9 deletions.
Binary file added Unverum/Assets/Icons/KOFXV.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion Unverum/FeedGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public enum GameFilter
ToA,
DS,
IM,
SMTV
SMTV,
KOFXV
}
public enum FeedFilter
{
Expand Down Expand Up @@ -147,6 +148,9 @@ private static string GenerateUrl(int page, GameFilter game, TypeFilter type, Fe
case GameFilter.SMTV:
url += "14768&";
break;
case GameFilter.KOFXV:
url += "15769&";
break;
}
}
else if (category.ID != null)
Expand Down Expand Up @@ -189,6 +193,9 @@ private static string GenerateUrl(int page, GameFilter game, TypeFilter type, Fe
case GameFilter.SMTV:
url += "14768&";
break;
case GameFilter.KOFXV:
url += "15769&";
break;
}
}
// Consistent args
Expand Down
9 changes: 6 additions & 3 deletions Unverum/ModUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public async static void CheckForUpdates(string path, MainWindow main)
main.LaunchButton.IsEnabled = true;
main.OpenModsButton.IsEnabled = true;
main.UpdateButton.IsEnabled = true;
main.LauncherOptionsBox.IsEnabled = true;
if (!Global.config.CurrentGame.Equals("Dragon Ball FighterZ", StringComparison.InvariantCultureIgnoreCase))
main.LauncherOptionsBox.IsEnabled = true;
return;
}
List<GameBananaAPIV4> response = new List<GameBananaAPIV4>();
Expand All @@ -123,7 +124,8 @@ public async static void CheckForUpdates(string path, MainWindow main)
main.LaunchButton.IsEnabled = true;
main.OpenModsButton.IsEnabled = true;
main.UpdateButton.IsEnabled = true;
main.LauncherOptionsBox.IsEnabled = true;
if (!Global.config.CurrentGame.Equals("Dragon Ball FighterZ", StringComparison.InvariantCultureIgnoreCase))
main.LauncherOptionsBox.IsEnabled = true;
return;
}
}
Expand Down Expand Up @@ -158,7 +160,8 @@ public async static void CheckForUpdates(string path, MainWindow main)
main.LaunchButton.IsEnabled = true;
main.OpenModsButton.IsEnabled = true;
main.UpdateButton.IsEnabled = true;
main.LauncherOptionsBox.IsEnabled = true;
if (!Global.config.CurrentGame.Equals("Dragon Ball FighterZ", StringComparison.InvariantCultureIgnoreCase))
main.LauncherOptionsBox.IsEnabled = true;
main.Activate();
}
private static void ReportUpdateProgress(DownloadProgress progress)
Expand Down
2 changes: 1 addition & 1 deletion Unverum/Setup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public static bool SMTV(bool emu)
openFolder.EnsurePathExists = true;
openFolder.EnsureValidNames = true;
openFolder.Multiselect = false;
openFolder.Title = "Select Mod Folder (NA: 010063b012dc6000, EU: 0100B870126CE000, JP: 01006BD0095F4000, HK/TW: 010038D0133C2000, KR: 0100FB70133C0000)";
openFolder.Title = "Select Mod Folder (NA: 010063B012DC6000, EU: 0100B870126CE000, JP: 01006BD0095F4000, HK/TW: 010038D0133C2000, KR: 0100FB70133C0000)";
var selected = true;
Application.Current.Dispatcher.Invoke(() =>
{
Expand Down
12 changes: 12 additions & 0 deletions Unverum/UI/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,12 @@
<TextBlock Text="Shin Megami Tensei V" VerticalAlignment="Center" FontWeight="Medium"/>
</StackPanel>
</ComboBoxItem>
<ComboBoxItem>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Image Source="../Assets/Icons/KOFXV.jpg" Width="27" Margin="4,0,10,0"/>
<TextBlock Text="The King of Fighters XV" VerticalAlignment="Center" FontWeight="Medium"/>
</StackPanel>
</ComboBoxItem>
</ComboBox>
<Button FontSize="18" FontWeight="Medium" Name="ConfigButton" Margin="10,0,10,0" Height="35" HorizontalAlignment="Stretch" VerticalAlignment="Center" Grid.Column="1" Content="Setup" Background="#181818" BorderBrush="#252525" Foreground="#f2f2f2" Click="Setup_Click" />
<Button FontSize="18" FontWeight="Medium" Name="LaunchButton" Margin="0,0,10,0" Height="35" VerticalAlignment="Center" HorizontalAlignment="Stretch" Grid.Column="2" Content="Launch" Background="#181818" BorderBrush="#252525" Foreground="#f2f2f2" Click="Launch_Click"/>
Expand Down Expand Up @@ -777,6 +783,12 @@
<TextBlock Text="Shin Megami Tensei V" VerticalAlignment="Center" FontWeight="Medium"/>
</StackPanel>
</ComboBoxItem>
<ComboBoxItem>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Image Source="../Assets/Icons/KOFXV.jpg" Width="27" Margin="4,0,10,0"/>
<TextBlock Text="The King of Fighters XV" VerticalAlignment="Center" FontWeight="Medium"/>
</StackPanel>
</ComboBoxItem>
</ComboBox>
<ComboBox Margin="5,0,0,0" Grid.Column="1" IsEnabled="False" Name="FilterBox" Height="35" MinWidth="130" HorizontalAlignment="Stretch" FontSize="18" FontWeight="Medium" SelectionChanged="FilterSelectionChanged"/>
<ComboBox Margin="5,0,0,0" Grid.Column="2" IsEnabled="False" FontWeight="Medium" FontSize="18" Name="TypeBox" Height="35" HorizontalAlignment="Stretch" MinWidth="100" SelectionChanged="TypeFilterSelectionChanged">
Expand Down
16 changes: 13 additions & 3 deletions Unverum/UI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ private bool SetupGame()
return Setup.Generic("StarlitSeason.exe", "StarlitSeason", @"C:\Program Files (x86)\Steam\steamapps\common\StarlitSeason\StarlitSeason.exe");
case GameFilter.SMTV:
return Setup.SMTV(emu);
case GameFilter.KOFXV:
return Setup.Generic("KOFXV.exe", "KOFXV", @"C:\Program Files (x86)\Steam\steamapps\common\THE KING OF FIGHTERS XV\KOFXV_Steam.exe");
}
return false;
}
Expand Down Expand Up @@ -361,7 +363,8 @@ private async void Launch_Click(object sender, RoutedEventArgs e)
OpenModsButton.IsEnabled = true;
UpdateButton.IsEnabled = true;
GameBox.IsEnabled = true;
LauncherOptionsBox.IsEnabled = true;
if (!Global.config.CurrentGame.Equals("Dragon Ball FighterZ", StringComparison.InvariantCultureIgnoreCase))
LauncherOptionsBox.IsEnabled = true;
return;
}
ModGrid.IsEnabled = true;
Expand All @@ -370,7 +373,8 @@ private async void Launch_Click(object sender, RoutedEventArgs e)
OpenModsButton.IsEnabled = true;
UpdateButton.IsEnabled = true;
GameBox.IsEnabled = true;
LauncherOptionsBox.IsEnabled = true;
if (!Global.config.CurrentGame.Equals("Dragon Ball FighterZ", StringComparison.InvariantCultureIgnoreCase))
LauncherOptionsBox.IsEnabled = true;
}
else
{
Expand Down Expand Up @@ -453,6 +457,9 @@ private async void Launch_Click(object sender, RoutedEventArgs e)
case GameFilter.IM:
id = "1046480";
break;
case GameFilter.KOFXV:
id = "1498570";
break;
}
path = epic ? $"com.epicgames.launcher://apps/{id}?action=launch&silent=true" : $"steam://rungameid/{id}";
}
Expand Down Expand Up @@ -511,6 +518,9 @@ private void GameBanana_Click(object sender, RoutedEventArgs e)
case GameFilter.SMTV:
id = "14768";
break;
case GameFilter.KOFXV:
id = "15769";
break;
}
try
{
Expand Down Expand Up @@ -1189,7 +1199,7 @@ private async void InitializeBrowser()
{
ErrorPanel.Visibility = Visibility.Collapsed;
// Initialize categories and games
var gameIDS = new string[] { "6246", "11605", "8897", "11534", "7019", "9219", "12028", "13821", "14246", "14247", "14768" };
var gameIDS = new string[] { "6246", "11605", "8897", "11534", "7019", "9219", "12028", "13821", "14246", "14247", "14768", "15769" };
var types = new string[] { "Mod", "Wip", "Sound" };
var gameCounter = 0;
foreach (var gameID in gameIDS)
Expand Down
4 changes: 3 additions & 1 deletion Unverum/Unverum.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<UseWPF>true</UseWPF>
<ApplicationIcon>Assets\unverum.ico</ApplicationIcon>
<AssemblyName>Unverum</AssemblyName>
<AssemblyVersion>1.5.2.0</AssemblyVersion>
<AssemblyVersion>1.6.0.0</AssemblyVersion>
</PropertyGroup>

<ItemGroup>
Expand All @@ -18,6 +18,7 @@
<None Remove="Assets\Icons\im.png" />
<None Remove="Assets\Icons\jf.png" />
<None Remove="Assets\Icons\kh3.png" />
<None Remove="Assets\Icons\KOFXV.jpg" />
<None Remove="Assets\Icons\mhoj2.png" />
<None Remove="Assets\Icons\smtv.png" />
<None Remove="Assets\Icons\sn.png" />
Expand Down Expand Up @@ -63,6 +64,7 @@
<Resource Include="Assets\Icons\im.png" />
<Resource Include="Assets\Icons\jf.png" />
<Resource Include="Assets\Icons\kh3.png" />
<Resource Include="Assets\Icons\KOFXV.jpg" />
<Resource Include="Assets\Icons\mhoj2.png" />
<Resource Include="Assets\Icons\smtv.png" />
<Resource Include="Assets\Icons\sn.png" />
Expand Down

0 comments on commit 6c7033d

Please sign in to comment.