Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.4.0 #77

Open
wants to merge 59 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
f4d59c6
Fix EA Desktop implementation
Nutzzz Jan 30, 2023
c6dde2f
Update to 1.3.1, add references to Rockstar
Nutzzz Jan 30, 2023
ae4b456
Add Game Jolt platform
Nutzzz Feb 4, 2023
7a2756c
Merge branch 'master' of https://github.com/Nutzzz/GLC
Nutzzz Feb 4, 2023
34e32da
Add "Client" to "Game Jolt" description
Nutzzz Feb 4, 2023
7d65831
Add Humble App platform
Nutzzz Feb 6, 2023
3987bb8
Comment out Humble image download for now
Nutzzz Feb 6, 2023
9360048
Humble fixes
Nutzzz Feb 16, 2023
2545bc5
More Humble fixes
Nutzzz Feb 17, 2023
fb83442
Squashed 'PureOrigin.API/' content from commit 15eb190
Nutzzz Feb 19, 2023
e42d115
Merge commit 'fb83442edf9d559f7cb6800881ba17313a34fe59' as 'PureOrigi…
Nutzzz Feb 19, 2023
2d32e78
Update .NET targets, and change OriginInternalUser.DOB field to a string
Nutzzz Feb 19, 2023
68b1dde
Add dependency and reference to PureOrigin.API subtree
Nutzzz Feb 19, 2023
586f2b4
Fix reversed logic bug in glc-games.json version test
Nutzzz Mar 8, 2023
9a90ef4
Humble fixes
Nutzzz Mar 8, 2023
7205785
Merge branch 'master' of https://github.com/Nutzzz/GLC
Nutzzz Feb 8, 2024
13c8b7c
Add option to use itch client to launch games
Nutzzz Feb 8, 2024
33f7d2b
Update dependencies; also copyright and version number
Nutzzz Feb 8, 2024
ec7529d
Update substring syntax
Nutzzz Feb 8, 2024
2a8b712
Merge remote-tracking branch 'upstream/master'
Nutzzz Feb 9, 2024
1328efd
Switch to GameCollector package for IPlatform.GetGames()
Nutzzz Feb 13, 2024
bffa0af
Use local GameCollector
Nutzzz Feb 13, 2024
b476ec4
Roll back System.Data.SQLite (see Nutzzz/GameCollector#14), update ot…
Nutzzz Feb 13, 2024
f5e8496
Merge branch 'gamecollector' into gamecollector-wip
Nutzzz Feb 13, 2024
2010948
Update GameCollector to 4.2.0.4
Nutzzz Feb 14, 2024
39a85ec
Add IconUrl from GameCollector metadata to get auto-download of Custo…
Nutzzz Feb 14, 2024
b2d5ca7
Add argument names to boolean arguments
Nutzzz Feb 15, 2024
4eca834
Merge branch 'gamecollector' into gamecollector-wip
Nutzzz Feb 16, 2024
350fa12
Update GameCollector to 4.2.0.5
Nutzzz Feb 16, 2024
dfdcd29
Don't include DLC
Nutzzz Feb 16, 2024
86948ce
Update GameCollector to 4.2.0.5
Nutzzz Feb 16, 2024
11a181c
Add Steam API key
Nutzzz Mar 5, 2024
1365059
Merge branch 'gamecollector' into gamecollector-wip
Nutzzz Mar 5, 2024
669fc2a
Use GameCollector's baseOnly parameter rather than checking for null …
Nutzzz Mar 6, 2024
c88ed61
Merge branch 'gamecollector' into gamecollector-wip
Nutzzz Mar 6, 2024
2825dba
Add IconUrl from GameCollector metadata to get auto-download of Custo…
Nutzzz Feb 14, 2024
170377c
Don't include DLC
Nutzzz Feb 16, 2024
07d1fa0
Add argument names to boolean arguments
Nutzzz Feb 15, 2024
4b3cee9
Add Steam API key
Nutzzz Mar 5, 2024
77071ec
Update GameCollector to 4.2.0.8
Nutzzz Mar 6, 2024
9c6337d
Merge branch 'gamecollector' into gamecollector-wip
Nutzzz Apr 17, 2024
3b3381e
Add Steam API key
Nutzzz Mar 5, 2024
6d5b9d9
Update GameCollector to 4.2.0.8
Nutzzz Feb 16, 2024
38f2134
Merge branch 'gamecollector' into gamecollector-wip
Nutzzz Apr 17, 2024
dfe15a6
Merge branch 'gamecollector'
Nutzzz Apr 17, 2024
5ec904d
Update dependencies and remove unused dependencies
Nutzzz Apr 17, 2024
4fc4d87
Delete commented-out sections removed because of GameCollector
Nutzzz Apr 17, 2024
fb2ef49
Add ability to only get installed games and/or also get non-game soft…
Nutzzz Apr 17, 2024
73e5064
Add RobotCache icon
Nutzzz Apr 17, 2024
245ca12
Some syntax simplifications
Nutzzz Apr 24, 2024
5d9eae2
Update dependencies
Nutzzz Jul 2, 2024
f22e03d
Try to ensure we're getting the file extension rather than a website TLD
Nutzzz Jul 2, 2024
f9a18fc
Update GameCollector to 4.2.3.2
Nutzzz Jul 2, 2024
89e90ac
Merge branch 'gamecollector'
Nutzzz Jul 3, 2024
d35f404
Make the other GameCollector Settings optional
Nutzzz Jul 3, 2024
63ed1ef
Update GameCollector to v4.2.4-1
Nutzzz Jul 9, 2024
c71f2f5
Update dependencies, remove PureOrigin.API
Nutzzz Jul 12, 2024
884421f
Update README.md
Nutzzz Jul 12, 2024
d4846bb
Update README.md
Nutzzz Jul 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0-windows10.0.17763.0</TargetFramework>
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<OutputType>Exe</OutputType>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<StartupObject>DataConversionTool.Program</StartupObject>
<AssemblyVersion>1.2.0.0</AssemblyVersion>
<FileVersion>1.2.0.0</FileVersion>
<AssemblyVersion>1.4.0.0</AssemblyVersion>
<FileVersion>1.4.0.0</FileVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version="0.3.326103">
<PackageReference Include="Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version="0.4.421302">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
21 changes: 0 additions & 21 deletions GameLauncher_Console/GameLauncher_Console.sln
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
VisualStudioVersion = 17.4.33122.133
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GameLauncher_Console", "GameLauncher_Console\GameLauncher_Console.csproj", "{4EBCEF5B-1A8A-42FB-81DB-446A14ED15D1}"
ProjectSection(ProjectDependencies) = postProject
{D149C871-27ED-4307-BE1F-E5FB55C2BB45} = {D149C871-27ED-4307-BE1F-E5FB55C2BB45}
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTest", "UnitTest\UnitTest.csproj", "{FBEDF6E1-33EC-4B48-B44F-0CC2CE8585BF}"
ProjectSection(ProjectDependencies) = postProject
Expand All @@ -24,12 +21,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
..\README.md = ..\README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PureOrigin.API", "PureOrigin.API", "{EF2BF649-24D0-4307-9D49-4FA96259C214}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PureOrigin.API", "..\PureOrigin.API\Src\PureOrigin.API\PureOrigin.API.csproj", "{D149C871-27ED-4307-BE1F-E5FB55C2BB45}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PureOrigin.API.Tests", "..\PureOrigin.API\Src\PureOrigin.API.Tests\PureOrigin.API.Tests.csproj", "{AFD1FA2C-F2BF-43D3-91FB-225BF1021543}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -48,22 +39,10 @@ Global
{92A97D68-92B7-4348-9275-BC3E9D0E8941}.Debug|Any CPU.Build.0 = Debug|Any CPU
{92A97D68-92B7-4348-9275-BC3E9D0E8941}.Release|Any CPU.ActiveCfg = Release|Any CPU
{92A97D68-92B7-4348-9275-BC3E9D0E8941}.Release|Any CPU.Build.0 = Release|Any CPU
{D149C871-27ED-4307-BE1F-E5FB55C2BB45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D149C871-27ED-4307-BE1F-E5FB55C2BB45}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D149C871-27ED-4307-BE1F-E5FB55C2BB45}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D149C871-27ED-4307-BE1F-E5FB55C2BB45}.Release|Any CPU.Build.0 = Release|Any CPU
{AFD1FA2C-F2BF-43D3-91FB-225BF1021543}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AFD1FA2C-F2BF-43D3-91FB-225BF1021543}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AFD1FA2C-F2BF-43D3-91FB-225BF1021543}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AFD1FA2C-F2BF-43D3-91FB-225BF1021543}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{D149C871-27ED-4307-BE1F-E5FB55C2BB45} = {EF2BF649-24D0-4307-9D49-4FA96259C214}
{AFD1FA2C-F2BF-43D3-91FB-225BF1021543} = {EF2BF649-24D0-4307-9D49-4FA96259C214}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {90858D12-1823-4AAB-91A4-04758C95F911}
EndGlobalSection
Expand Down
17 changes: 16 additions & 1 deletion GameLauncher_Console/GameLauncher_Console/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,18 @@
<setting name="flag_do_not_show_settings_in_platform_list" serializeAs="String">
<value>True</value>
</setting>
<setting name="flag_do_not_scan_dlc" serializeAs="String">
<value>True</value>
</setting>
<setting name="flag_do_not_scan_nongame_software" serializeAs="String">
<value>True</value>
</setting>
<setting name="flag_do_not_scan_not_installed_games" serializeAs="String">
<value>False</value>
</setting>
<setting name="flag_do_not_scan_unowned_games" serializeAs="String">
<value>True</value>
</setting>
<setting name="flag_only_scan_custom_games" serializeAs="String">
<value>False</value>
</setting>
Expand Down Expand Up @@ -145,7 +154,10 @@
</setting>
<setting name="flag_use_humble_launcher" serializeAs="String">
<value>True</value>
</setting>
</setting>
<setting name="flag_use_itch_launcher" serializeAs="String">
<value>True</value>
</setting>
<setting name="flag_use_legendary_for_epic" serializeAs="String">
<value>False</value>
</setting>
Expand Down Expand Up @@ -176,6 +188,9 @@
<setting name="num_steam_id" serializeAs="String">
<value>0</value>
</setting>
<setting name="text_steam_apikey" serializeAs="String">
<value></value>
</setting>
<setting name="text_oculus_username" serializeAs="String">
<value></value>
</setting>
Expand Down
23 changes: 20 additions & 3 deletions GameLauncher_Console/GameLauncher_Console/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
using System.Configuration;
using System.Diagnostics;
using System.Linq;
using System.Runtime.Versioning;

//using System.Runtime.InteropServices;
//using System.Text;
using System.Windows.Forms;
Expand Down Expand Up @@ -110,7 +112,10 @@ public struct Hotkeys
public ConsoleKey tagsCK2;
public ConsoleKey downloadCK1;
public ConsoleKey downloadCK2;
public ConsoleKey allimgCK1;
public ConsoleKey allimgCK2;
}

public struct Colours
{
public ConsoleColor bgCC;
Expand Down Expand Up @@ -154,7 +159,10 @@ public struct Colours
public const string CFG_USELITE = "flag_colour_light_mode_is_default";
public const string CFG_USEALL = "flag_always_show_all_games";
public const string CFG_NOCFG = "flag_do_not_show_settings_in_platform_list"; // TODO
public const string CFG_INSTONLY = "flag_do_not_scan_not_installed_games"; // TODO
public const string CFG_BASEONLY = "flag_do_not_scan_dlc";
public const string CFG_GAMEONLY = "flag_do_not_scan_nongame_software";
public const string CFG_INSTONLY = "flag_do_not_scan_not_installed_games";
public const string CFG_OWNONLY = "flag_do_not_scan_unowned_games";
public const string CFG_USECUST = "flag_only_scan_custom_games";
public const string CFG_USETEXT = "flag_text_use_custom_text_values";
public const string CFG_IMGBORD = "flag_image_draw_border_characters";
Expand All @@ -167,6 +175,7 @@ public struct Colours
public const string CFG_USEEGL = "flag_use_epic_launcher";
public const string CFG_USEGAL = "flag_use_gog_galaxy_launcher";
public const string CFG_USEHUM = "flag_use_humble_launcher";
public const string CFG_USEITC = "flag_use_itch_launcher";
public const string CFG_USELEG = "flag_use_legendary_for_epic";
#if DEBUG
public const string CFG_UWPLIST = "list_show_uwp_titles";
Expand All @@ -180,6 +189,7 @@ public struct Colours
public const string CFG_IMGPOS = "num_selected_image_y_location_percent";
public const string CFG_COLSIZE = "num_grid_text_min_column_characters";
public const string CFG_STEAMID = "num_steam_id";
public const string CFG_STEAMAPI = "text_steam_apikey";
public const string CFG_OCULUSID = "text_oculus_username";
public const string CFG_ORIGINID = "text_ea_email";
public const string CFG_ORIGINPW = "base64_ea_password";
Expand Down Expand Up @@ -273,6 +283,8 @@ public struct Colours
public const string CFG_KEYRATEDN2 = "key_rating_down_2";
public const string CFG_KEYDLIMG1 = "key_download_image_1";
public const string CFG_KEYDLIMG2 = "key_download_image_2";
public const string CFG_KEYDLALL1 = "key_download_all_images_1";
public const string CFG_KEYDLALL2 = "key_download_all_images_2";
public const string CFG_PATHLEG = "path_legendary_exe";
public const string CFG_TXTMAINT = "text_main_menu_title";
public const string CFG_TXTCFGT = "text_settings_title";
Expand Down Expand Up @@ -555,7 +567,8 @@ static string GetCharsFromKeys(Keys keys, bool shift, bool altGr)
/// <returns>Value of the translated key or original key if not found</returns>
public static string KeyToUSFormat(string strCKeyName)
{
if (InputLanguage.CurrentInputLanguage.LayoutName == "US")
if (OperatingSystem.IsWindowsVersionAtLeast(6, 1) &&
InputLanguage.CurrentInputLanguage.LayoutName == "US")
{
switch (strCKeyName)
{
Expand Down Expand Up @@ -595,8 +608,12 @@ public static string KeyToUSFormat(string strCKeyName)
/// <returns>Value of the translated key or original key if not found</returns>
public static string ShortenKeyName(string strCKeyName)
{
if (InputLanguage.CurrentInputLanguage.LayoutName == "US")
if (OperatingSystem.IsWindowsVersionAtLeast(6, 1) &&
InputLanguage.CurrentInputLanguage.LayoutName == "US")
{
strCKeyName = KeyToUSFormat(strCKeyName);
}

switch (strCKeyName)
{
case "Backspace":
Expand Down
41 changes: 24 additions & 17 deletions GameLauncher_Console/GameLauncher_Console/ConsoleHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public CConsoleHelper(int nColumnCount, int nSpacing, int nPaging) //, ConsoleSt
/// </summary>
public enum DockSelection
{
cSel_downloadAll = -26,
cSel_Tags = -25,
cSel_raiseRating = -24,
cSel_lowerRating = -23,
Expand Down Expand Up @@ -269,14 +270,14 @@ public int DisplayCfg(CConfig.ConfigVolatile cfgv, CConfig.Hotkeys keys, CConfig
{
if (m_ConsoleState == ConsoleState.cState_Insert)
{
code = HandleInsertMenu(nStartY, nStopY, cfgv, cols, true, false, ref game, options.ToArray());
code = HandleInsertMenu(nStartY, nStopY, cfgv, cols, setup: true, browse: false, ref game, options.ToArray());
if (code > -1)
CDock.m_nCurrentSelection = code;
CLogger.LogDebug("HandleInsertMenu:{0},{1}", code, CDock.m_nCurrentSelection);
}
else //if (m_ConsoleState == ConsoleState.cState_Navigate)
{
code = HandleNavigationMenu(nStartY, nStopY, cfgv, keys, cols, true, false, ref game, options.ToArray());
code = HandleNavigationMenu(nStartY, nStopY, cfgv, keys, cols, setup: true, browse: false, ref game, options.ToArray());
CLogger.LogDebug("HandleNavigationMenu:{0},{1}", code, CDock.m_nCurrentSelection);
if (options.Count < 2)
CDock.m_nCurrentSelection = -1;
Expand Down Expand Up @@ -412,14 +413,14 @@ public int DisplayFS(CConfig.ConfigVolatile cfgv, CConfig.Hotkeys keys, CConfig.
{
if (m_ConsoleState == ConsoleState.cState_Insert)
{
code = HandleInsertMenu(nStartY, nStopY, cfgv, cols, false, true, ref game, options.ToArray());
code = HandleInsertMenu(nStartY, nStopY, cfgv, cols, setup: false, browse: true, ref game, options.ToArray());
if (code > -1)
CDock.m_nCurrentSelection = code;
CLogger.LogDebug("HandleInsertMenu:{0},{1}", code, CDock.m_nCurrentSelection);
}
else //if (m_ConsoleState == ConsoleState.cState_Navigate)
{
code = HandleNavigationMenu(nStartY, nStopY, cfgv, keys, cols, false, true, ref game, options.ToArray());
code = HandleNavigationMenu(nStartY, nStopY, cfgv, keys, cols, setup: false, browse: true, ref game, options.ToArray());
CLogger.LogDebug("HandleNavigationMenu:{0},{1}", code, CDock.m_nCurrentSelection);
if (options.Count < 2)
CDock.m_nCurrentSelection = -1;
Expand Down Expand Up @@ -501,21 +502,21 @@ public int DisplayMenu(CConfig.ConfigVolatile cfgv, CConfig.Hotkeys keys, CConfi
Console.Clear();

DrawMenuTitle(cols);
if (IsSelectionValid(CDock.m_nSelectedPlatform, options.Length)) DrawInstruct(cols, true);
else DrawInstruct(cols, false);
if (IsSelectionValid(CDock.m_nSelectedPlatform, options.Length)) DrawInstruct(cols, subMenu: true);
else DrawInstruct(cols, subMenu: false);
int nStartY = Console.CursorTop + CDock.INSTRUCT_CUSHION;
int nStopY = CDock.INPUT_BOTTOM_CUSHION + CDock.INPUT_ITEM_CUSHION;

do
{
if (m_ConsoleState == ConsoleState.cState_Insert)
{
code = HandleInsertMenu(nStartY, nStopY, cfgv, cols, false, false, ref game, options);
code = HandleInsertMenu(nStartY, nStopY, cfgv, cols, setup: false, browse: false, ref game, options);
CLogger.LogDebug("HandleInsertMenu:{0},{1}", code, CDock.m_nCurrentSelection);
}
else //if (m_ConsoleState == ConsoleState.cState_Navigate)
{
code = HandleNavigationMenu(nStartY, nStopY, cfgv, keys, cols, false, false, ref game, options);
code = HandleNavigationMenu(nStartY, nStopY, cfgv, keys, cols, setup: false, browse: false, ref game, options);
CLogger.LogDebug("HandleNavigationMenu:{0},{1}", code, CDock.m_nCurrentSelection);
}
if (code == (int)DockSelection.cSel_Exit ||
Expand Down Expand Up @@ -666,10 +667,10 @@ public int HandleNavigationMenu(int nStartY, int nStopY, CConfig.ConfigVolatile
{
CGame selectedGame = GetPlatformGame((GamePlatform)CDock.m_nSelectedPlatform, CDock.m_nCurrentSelection);
if (selectedGame != null)
CConsoleImage.ShowImage(CDock.m_nCurrentSelection, selectedGame.Title, selectedGame.Icon, false, CDock.sizeImage, CDock.locImage, imageColour);
CConsoleImage.ShowImage(CDock.m_nCurrentSelection, selectedGame.Title, selectedGame.Icon, bPlatform: false, CDock.sizeImage, CDock.locImage, imageColour);
}
else
CConsoleImage.ShowImage(CDock.m_nCurrentSelection, options[CDock.m_nCurrentSelection], options[CDock.m_nCurrentSelection], true, CDock.sizeImage, CDock.locImage, imageColour);
CConsoleImage.ShowImage(CDock.m_nCurrentSelection, options[CDock.m_nCurrentSelection], options[CDock.m_nCurrentSelection], bPlatform: true, CDock.sizeImage, CDock.locImage, imageColour);
}
});
}
Expand Down Expand Up @@ -841,6 +842,9 @@ public int HandleNavigationMenu(int nStartY, int nStopY, CConfig.ConfigVolatile
else if (key == keys.scanCK1 || key == keys.scanCK2)
return (int)DockSelection.cSel_Rescan; // Rescan the registry and the 'CustomGames' folder for new games

else if (key == keys.allimgCK1 || key == keys.allimgCK2)
return (int)DockSelection.cSel_downloadAll; // Rescan the registry and the 'CustomGames' folder for new games

} while (key != keys.selectCK1 && key != keys.selectCK2);

return (int)DockSelection.cSel_Default;
Expand Down Expand Up @@ -963,6 +967,9 @@ public int HandleInsertMenu(int nStartY, int nStopY, CConfig.ConfigVolatile cfgv
else if (strInput.Equals("/icon", CDock.IGNORE_CASE))
return (int)DockSelection.cSel_Image;

else if (strInput.Equals("/allicon", CDock.IGNORE_CASE))
return (int)DockSelection.cSel_downloadAll;

else if (strInput.Equals("/sort", CDock.IGNORE_CASE))
return (int)DockSelection.cSel_Sort;

Expand Down Expand Up @@ -1060,7 +1067,7 @@ public void DrawInfoBar(string selection, CConfig.Colours cols)
}
else
{
selection = selection.Substring(0, selection.IndexOf(": "));
selection = selection[..selection.IndexOf(": ")];
leftSide = string.Format("{0} {1} {0}", CDock.SEPARATOR_SYMBOL, selection);
}
Console.WriteLine(leftSide + rightSide.PadLeft(Console.WindowWidth - leftSide.Length - 1));
Expand All @@ -1082,10 +1089,10 @@ public void DrawIcon(int nY, int nItem, string strItem, ConsoleColor? iconColour
if (CDock.m_nSelectedPlatform > -1)
{
CGame selectedGame = GetPlatformGame((GamePlatform)CDock.m_nSelectedPlatform, nItem);
CConsoleImage.ShowImage(CDock.m_nCurrentSelection, selectedGame.Title, selectedGame.Icon, false, CDock.sizeIcon, iconPosition, iconColour);
CConsoleImage.ShowImage(CDock.m_nCurrentSelection, selectedGame.Title, selectedGame.Icon, bPlatform: false, CDock.sizeIcon, iconPosition, iconColour);
}
else
CConsoleImage.ShowImage(CDock.m_nCurrentSelection, strItem, strItem, true, CDock.sizeIcon, iconPosition, iconColour);
CConsoleImage.ShowImage(CDock.m_nCurrentSelection, strItem, strItem, bPlatform: true, CDock.sizeIcon, iconPosition, iconColour);
});
}

Expand Down Expand Up @@ -1129,7 +1136,7 @@ public void DrawGridMenu(int nCursorPosition, int nPage, int nStartY, int nStopY
else
CDock.SetFgColour(cols.entryCC, cols.entryLtCC);
}
Console.WriteLine(itemList[i].Substring(0, Math.Min(itemList[i].Length, m_nSpacingPerLine - CDock.COLUMN_CUSHION)));
Console.WriteLine(itemList[i][..Math.Min(itemList[i].Length, m_nSpacingPerLine - CDock.COLUMN_CUSHION)]);
CDock.SetBgColour(cols.bgCC, cols.bgLtCC);
CDock.SetFgColour(cols.entryCC, cols.entryLtCC);
}
Expand Down Expand Up @@ -1351,7 +1358,7 @@ public void UpdateMenu(int nPreviousSelection, int nPage, int nListStartX, int n
if (m_MenuType == MenuType.cType_List)
Console.Write(strCurrentOption);
else if (m_ConsoleState == ConsoleState.cState_Navigate) // if (m_MenuType == MenuType.cType_Grid &&
Console.Write(strCurrentOption.Substring(0, Math.Min(strCurrentOption.Length, m_nSpacingPerLine - CDock.COLUMN_CUSHION)));
Console.Write(strCurrentOption[..Math.Min(strCurrentOption.Length, m_nSpacingPerLine - CDock.COLUMN_CUSHION)]);
if (!(bool)CConfig.GetConfigBool(CConfig.CFG_NOPAGE) && !(m_MenuType == MenuType.cType_List && (ushort)CConfig.GetConfigNum(CConfig.CFG_ICONSIZE) > 0))
DrawInfoBar(strCurrentOption, cols);

Expand Down Expand Up @@ -1393,7 +1400,7 @@ public void UpdateMenu(int nPreviousSelection, int nPage, int nListStartX, int n
}
}
else
Console.Write(strPreviousOption.Substring(0, Math.Min(strPreviousOption.Length, m_nSpacingPerLine - CDock.COLUMN_CUSHION)));
Console.Write(strPreviousOption[..Math.Min(strPreviousOption.Length, m_nSpacingPerLine - CDock.COLUMN_CUSHION)]);
}
catch (Exception e)
{
Expand Down Expand Up @@ -1440,7 +1447,7 @@ public static void MakeShortcut(string title, string path, string icon, string l
// save it
IPersistFile file = (IPersistFile)link;
if (Directory.Exists(location))
file.Save(Path.Combine(location, title + ".LNK"), false);
file.Save(Path.Combine(location, title + ".LNK"), fRemember: false);
}
catch (Exception e)
{
Expand Down
Loading