mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Rename and better document
This commit is contained in:
@@ -255,8 +255,8 @@ JOIN checksums
|
|||||||
// If we're in a merged mode, merge and then resort by the correct parameters
|
// If we're in a merged mode, merge and then resort by the correct parameters
|
||||||
if (merged)
|
if (merged)
|
||||||
{
|
{
|
||||||
roms = Sort.Merge(roms, true);
|
roms = Sorting.RomMerge(roms, true);
|
||||||
Sort.RomSort(roms, _norename);
|
Sorting.RomSort(roms, _norename);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now check rename within games
|
// Now check rename within games
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
<Compile Include="Output.cs" />
|
<Compile Include="Output.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Remapping.cs" />
|
<Compile Include="Remapping.cs" />
|
||||||
<Compile Include="Sort.cs" />
|
<Compile Include="Sorting.cs" />
|
||||||
<Compile Include="Structs.cs" />
|
<Compile Include="Structs.cs" />
|
||||||
<Compile Include="Style.cs" />
|
<Compile Include="Style.cs" />
|
||||||
<Compile Include="Build.cs" />
|
<Compile Include="Build.cs" />
|
||||||
|
|||||||
@@ -3,9 +3,15 @@ using System.Collections.Generic;
|
|||||||
|
|
||||||
namespace SabreTools.Helper
|
namespace SabreTools.Helper
|
||||||
{
|
{
|
||||||
public class Sort
|
public class Sorting
|
||||||
{
|
{
|
||||||
public static List<RomData> Merge(List<RomData> inroms, bool presorted = false)
|
/// <summary>
|
||||||
|
/// Merge an arbitrary set of ROMs based on the supplied information
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="inroms">List of RomData objects representing the roms to be merged</param>
|
||||||
|
/// <param name="presorted">True if the list should be considered pre-sorted (default false)</param>
|
||||||
|
/// <returns>A List of RomData objects representing the merged roms</returns>
|
||||||
|
public static List<RomData> RomMerge(List<RomData> inroms, bool presorted = false)
|
||||||
{
|
{
|
||||||
List<RomData> outroms = new List<RomData>();
|
List<RomData> outroms = new List<RomData>();
|
||||||
|
|
||||||
Reference in New Issue
Block a user