mirror of
https://github.com/sp-tarkov/assembly-tool.git
synced 2025-02-13 06:30:44 -05:00
Minor changes
This commit is contained in:
parent
0e801e56d0
commit
c16b803119
@ -60,23 +60,18 @@ internal class Remapper
|
|||||||
{
|
{
|
||||||
foreach (var type in DataProvider.ModuleDefinition.Types)
|
foreach (var type in DataProvider.ModuleDefinition.Types)
|
||||||
{
|
{
|
||||||
var result = ScoreType(type, mapping);
|
var _ = FindMatch(type, mapping);
|
||||||
|
|
||||||
if (result is not EMatchResult.NoMatch)
|
|
||||||
{
|
|
||||||
//Logger.LogDebug($"Remap [{type.Name} : {mapping.NewTypeName}] failed with reason {result}", silent: true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Score the type against the remap checking against all remap properties
|
/// Find a match result
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="type">Type to score</param>
|
/// <param name="type">Type to score</param>
|
||||||
/// <param name="remap">Remap to check against</param>
|
/// <param name="remap">Remap to check against</param>
|
||||||
/// <param name="parentTypeName"></param>
|
/// <param name="parentTypeName"></param>
|
||||||
/// <returns>Failure reason or none if matched</returns>
|
/// <returns>EMatchResult</returns>
|
||||||
private EMatchResult ScoreType(TypeDefinition type, RemapModel remap)
|
private EMatchResult FindMatch(TypeDefinition type, RemapModel remap)
|
||||||
{
|
{
|
||||||
// Handle Direct Remaps by strict naming first bypasses everything else
|
// Handle Direct Remaps by strict naming first bypasses everything else
|
||||||
if (remap.UseForceRename)
|
if (remap.UseForceRename)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user