Skip to content

Commit

Permalink
Rename the Interpreter project to Engine and adjust all namespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
huguesv committed Nov 13, 2024
1 parent ef34e53 commit 78b0cdc
Show file tree
Hide file tree
Showing 226 changed files with 372 additions and 411 deletions.
8 changes: 4 additions & 4 deletions src/AgiPlayer.sln
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31019.35
# Visual Studio Version 17
VisualStudioVersion = 17.12.35506.116 d17.12
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Woohoo.Agi.Interpreter", "Woohoo.Agi.Interpreter\Woohoo.Agi.Interpreter.csproj", "{BA23E0E2-17B6-40DE-83E7-FA0C3B0F6176}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Woohoo.Agi.Engine", "Woohoo.Agi.Engine\Woohoo.Agi.Engine.csproj", "{BA23E0E2-17B6-40DE-83E7-FA0C3B0F6176}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Woohoo.Agi.Interpreter.UnitTest", "Woohoo.Agi.Interpreter.UnitTest\Woohoo.Agi.Interpreter.UnitTest.csproj", "{885A2FFF-D23E-46FA-B6DD-B172D60F275E}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Woohoo.Agi.Engine.UnitTest", "Woohoo.Agi.Engine.UnitTest\Woohoo.Agi.Engine.UnitTest.csproj", "{885A2FFF-D23E-46FA-B6DD-B172D60F275E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Woohoo.Agi.Player", "Woohoo.Agi.Player\Woohoo.Agi.Player.csproj", "{BF1EFBAF-D0C5-48B6-83CF-6E7238D52029}"
EndProject
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Common.AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[assembly: AssemblyCompany("Hugues Valois")]
[assembly: AssemblyProduct("Agi Player")]
[assembly: AssemblyCopyright("2003-2021")]
[assembly: AssemblyCopyright("2003-2024")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.1.0.0")]
Expand Down
1 change: 0 additions & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="MSTest.TestAdapter" Version="3.6.3" />
<PackageVersion Include="MSTest.TestFramework" Version="3.6.3" />
<PackageVersion Include="SharpZipLib" Version="1.4.2" />
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

namespace Woohoo.Agi.Interpreter.UnitTest;
namespace Woohoo.Agi.Engine.UnitTest.Interpreter;

using Woohoo.Agi.Resources;
using Woohoo.Agi.Engine.Interpreter;
using Woohoo.Agi.Engine.Resources;

[TestClass]
public class KernelUnitTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

namespace Woohoo.Agi.Interpreter.UnitTest;
namespace Woohoo.Agi.Engine.UnitTest.Interpreter;

using Woohoo.Agi.Interpreter;
using Woohoo.Agi.Resources;
using Woohoo.Agi.Engine.Interpreter;
using Woohoo.Agi.Engine.Resources;

[TestClass]
public class ParserUnitTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

namespace Woohoo.Agi.Interpreter.UnitTest;
namespace Woohoo.Agi.Engine.UnitTest.Interpreter;

using Woohoo.Agi.Interpreter;
using Woohoo.Agi.Engine.Interpreter;

[TestClass]
public class PriorityTableUnitTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

namespace Woohoo.Agi.Interpreter.UnitTest;
namespace Woohoo.Agi.Engine.UnitTest.Interpreter;

using Woohoo.Agi.Interpreter;
using Woohoo.Agi.Resources;
using Woohoo.Agi.Engine.Interpreter;
using Woohoo.Agi.Engine.Resources;

[TestClass]
public class ResourceManagerUnitTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

namespace Woohoo.Agi.Interpreter.UnitTest;
namespace Woohoo.Agi.Engine.UnitTest.Interpreter;

using Woohoo.Agi.Interpreter;
using Woohoo.Agi.Engine.Interpreter;

[TestClass]
public class StringUtilityUnitTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

namespace Woohoo.Agi.Resources.Serialization.UnitTest;
namespace Woohoo.Agi.Engine.UnitTest.Resources.Serialization;

using Woohoo.Agi.Engine.Resources.Serialization;

[TestClass]
public class LzwDecompressUnitTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

namespace Woohoo.Agi.Resources.Serialization.UnitTest;
namespace Woohoo.Agi.Engine.UnitTest.Resources.Serialization;

using Woohoo.Agi.Resources.Serialization;
using Woohoo.Agi.Engine.Resources.Serialization;

[TestClass]
public class PictureCompressionUnitTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

namespace Woohoo.Agi.Resources.Serialization.UnitTest;
namespace Woohoo.Agi.Engine.UnitTest.Resources.Serialization;

using Woohoo.Agi.Engine.Resources.Serialization;

[TestClass]
public class RleCompressionUnitTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Copyright (c) Hugues Valois. All rights reserved.
// Licensed under the X11 license. See LICENSE in the project root for license information.

namespace Woohoo.Agi.Resources.Serialization.UnitTest;
namespace Woohoo.Agi.Engine.UnitTest.Resources.Serialization;

using Woohoo.Agi.Engine.Resources.Serialization;

[TestClass]
public class XorTransformUnitTest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Woohoo.Agi.Interpreter\Woohoo.Agi.Interpreter.csproj" />
<ProjectReference Include="..\Woohoo.Agi.Engine\Woohoo.Agi.Engine.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

#nullable enable

namespace Woohoo.Agi.Detection;

using Woohoo.Agi.Interpreter;
namespace Woohoo.Agi.Engine.Detection;

/// <summary>
/// Game library database.
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

#nullable enable

namespace Woohoo.Agi.Detection;

using Woohoo.Agi.Interpreter;
namespace Woohoo.Agi.Engine.Detection;

/// <summary>
/// Game detection algorithm which uses an XML game information file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

#nullable enable

namespace Woohoo.Agi.Detection;

using Woohoo.Agi.Interpreter;
namespace Woohoo.Agi.Engine.Detection;

/// <summary>
/// Game detection algorithm which uses the file names only.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

#nullable enable

namespace Woohoo.Agi.Detection;

using Woohoo.Agi.Interpreter;
namespace Woohoo.Agi.Engine.Detection;

/// <summary>
/// Game detection algorithm which uses MD5 checksum to identify
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

#nullable enable

namespace Woohoo.Agi.Detection;

using Woohoo.Agi.Interpreter;
namespace Woohoo.Agi.Engine.Detection;

/// <summary>
/// Game detection algorithm which uses a text file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#nullable enable

namespace Woohoo.Agi.Detection;
namespace Woohoo.Agi.Engine.Detection;

/// <summary>
/// Game information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

#nullable enable

namespace Woohoo.Agi.Detection;

using Woohoo.Agi.Interpreter;
namespace Woohoo.Agi.Engine.Detection;

/// <summary>
/// Game detection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#nullable enable

namespace Woohoo.Agi.Detection;
namespace Woohoo.Agi.Engine.Detection;

/// <summary>
/// Result from game detection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

#nullable enable

namespace Woohoo.Agi.Detection;

using Woohoo.Agi.Interpreter;
namespace Woohoo.Agi.Engine.Detection;

/// <summary>
/// CRC file information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#nullable enable

namespace Woohoo.Agi.Detection;
namespace Woohoo.Agi.Engine.Detection;

/// <summary>
/// Collection of FileCrc objects.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@

#nullable enable

namespace Woohoo.Agi.Detection;

using Woohoo.Agi.Interpreter;
using Woohoo.Agi.Resources.Serialization;
namespace Woohoo.Agi.Engine.Detection;

public class GameFinder
{
Expand Down Expand Up @@ -64,7 +61,7 @@ public static GameStartInfo[] FindGames(GameDetector detector, string folder, bo
var result = detector.Detect(container);
if (result is not null)
{
string id = ResourceLoader.GetGameId(container);
string id = container.GetGameId();

startInfo = new GameStartInfo(container, id, result.Platform, result.Interpreter, result.Name ?? string.Empty, result.Version ?? string.Empty);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#nullable enable

namespace Woohoo.Agi.Detection;
namespace Woohoo.Agi.Engine.Detection;

internal static class GameInfoParser
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

#nullable enable

namespace Woohoo.Agi.Detection;

using Woohoo.Agi.Interpreter;
namespace Woohoo.Agi.Engine.Detection;

/// <summary>
/// Game detection algorithm interface.
Expand Down

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

File renamed without changes.
Loading

0 comments on commit 78b0cdc

Please sign in to comment.