Skip to content

Commit 3025d7e

Browse files
committed
set eduke32 cache to 256MiB
1 parent 4279791 commit 3025d7e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/Ports/Ports/EDuke32/EDuke32.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ protected override void GetStartCampaignArgs(StringBuilder sb, IGame game, IAddo
104104
{
105105
//don't search for steam/gog installs
106106
sb.Append($@" -usecwd");
107+
sb.Append($@" -cachesize 262144"); //set cache to 256MiB
107108

108109
if (addon.MainDef is not null)
109110
{

src/Tests/CmdArguments/BloodCmdArgumentsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Tests.CmdArguments;
1111

1212
[Collection("Sync")]
13-
public class BloodLineArgumentsTests
13+
public class BloodCmdArgumentsTests
1414
{
1515
private readonly BloodGame _bloodGame;
1616
private readonly BloodCampaign _bloodCamp;
@@ -19,7 +19,7 @@ public class BloodLineArgumentsTests
1919

2020
private readonly AutoloadModsProvider _modsProvider;
2121

22-
public BloodLineArgumentsTests()
22+
public BloodCmdArgumentsTests()
2323
{
2424
_modsProvider = new(GameEnum.Blood);
2525

src/Tests/CmdArguments/DukeCmdArgumentsTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public void EDuke32Test()
298298
EDuke32 eduke32 = new();
299299

300300
var args = eduke32.GetStartGameArgs(_dukeGame, _dukeCamp, mods, true, true, 3);
301-
var expected = @$" -quick -nosetup -j ""{Directory.GetCurrentDirectory()}\Data\Duke3D\Mods"" -g ""enabled_mod.zip"" -mh ""ENABLED1.DEF"" -mh ""ENABLED2.DEF"" -mx ""ENABLED1.CON"" -mx ""ENABLED2.CON"" -g ""mod_incompatible_with_addon.zip"" -g ""incompatible_mod_with_compatible_version.zip"" -g ""dependant_mod.zip"" -g ""dependant_mod_with_compatible_version.zip"" -g ""feature_mod.zip"" -usecwd -h ""a"" -j ""D:\Games\Duke3D"" -addon 0 -s3";
301+
var expected = @$" -quick -nosetup -j ""{Directory.GetCurrentDirectory()}\Data\Duke3D\Mods"" -g ""enabled_mod.zip"" -mh ""ENABLED1.DEF"" -mh ""ENABLED2.DEF"" -mx ""ENABLED1.CON"" -mx ""ENABLED2.CON"" -g ""mod_incompatible_with_addon.zip"" -g ""incompatible_mod_with_compatible_version.zip"" -g ""dependant_mod.zip"" -g ""dependant_mod_with_compatible_version.zip"" -g ""feature_mod.zip"" -usecwd -cachesize 262144 -h ""a"" -j ""D:\Games\Duke3D"" -addon 0 -s3";
302302

303303
if (OperatingSystem.IsLinux())
304304
{
@@ -315,7 +315,7 @@ public void Eduke32WtTest()
315315
EDuke32 eduke32 = new();
316316

317317
var args = eduke32.GetStartGameArgs(_dukeGame, _dukeWtCamp, [], true, true);
318-
var expected = @$" -quick -nosetup -usecwd -h ""a"" -j ""D:\Games\DukeWT"" -addon 0 -j ""{Directory.GetCurrentDirectory()}\Data\Duke3D\Special\WTStopgap"" -gamegrp e32wt.grp";
318+
var expected = @$" -quick -nosetup -usecwd -cachesize 262144 -h ""a"" -j ""D:\Games\DukeWT"" -addon 0 -j ""{Directory.GetCurrentDirectory()}\Data\Duke3D\Special\WTStopgap"" -gamegrp e32wt.grp";
319319

320320
if (OperatingSystem.IsLinux())
321321
{
@@ -338,7 +338,7 @@ public void Eduke32VacaTest()
338338
EDuke32 eduke32 = new();
339339

340340
var args = eduke32.GetStartGameArgs(_dukeGame, _dukeVaca, mods, true, true);
341-
var expected = @$" -quick -nosetup -j ""{Directory.GetCurrentDirectory()}\Data\Duke3D\Mods"" -g ""enabled_mod.zip"" -mh ""ENABLED1.DEF"" -mh ""ENABLED2.DEF"" -mx ""ENABLED1.CON"" -mx ""ENABLED2.CON"" -g ""mod_requires_addon.zip"" -usecwd -h ""a"" -j ""D:\Games\Duke3D"" -addon 3";
341+
var expected = @$" -quick -nosetup -j ""{Directory.GetCurrentDirectory()}\Data\Duke3D\Mods"" -g ""enabled_mod.zip"" -mh ""ENABLED1.DEF"" -mh ""ENABLED2.DEF"" -mx ""ENABLED1.CON"" -mx ""ENABLED2.CON"" -g ""mod_requires_addon.zip"" -usecwd -cachesize 262144 -h ""a"" -j ""D:\Games\Duke3D"" -addon 3";
342342

343343
if (OperatingSystem.IsLinux())
344344
{
@@ -355,7 +355,7 @@ public void EdukeTCTest()
355355
EDuke32 eduke32 = new();
356356

357357
var args = eduke32.GetStartGameArgs(_dukeGame, _dukeTC, [], true, true);
358-
var expected = @$" -quick -nosetup -usecwd -h ""TC.DEF"" -mh ""TC1.DEF"" -mh ""TC2.DEF"" -j ""D:\Games\Duke3D"" -addon 3 -g ""{Directory.GetCurrentDirectory()}\Data\Duke3D\Campaigns\duke_tc.zip"" -x ""TC.CON"" -mx ""TC1.CON"" -mx ""TC2.CON""";
358+
var expected = @$" -quick -nosetup -usecwd -cachesize 262144 -h ""TC.DEF"" -mh ""TC1.DEF"" -mh ""TC2.DEF"" -j ""D:\Games\Duke3D"" -addon 3 -g ""{Directory.GetCurrentDirectory()}\Data\Duke3D\Campaigns\duke_tc.zip"" -x ""TC.CON"" -mx ""TC1.CON"" -mx ""TC2.CON""";
359359

360360
if (OperatingSystem.IsLinux())
361361
{

0 commit comments

Comments
 (0)