Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LibraryNameVariation.cs
Go to the documentation of this file.
2
4
5internal struct LibraryNameVariation
6{
7 public string Prefix;
8
9 public string Suffix;
10
11 public LibraryNameVariation(string prefix, string suffix)
12 {
13 Prefix = prefix;
14 Suffix = suffix;
15 }
16
18 {
19 yield return new LibraryNameVariation(string.Empty, string.Empty);
20 if (isRelativePath && (!forOSLoader || (libName.Contains('.') && !libName.EndsWith('.'))) && !libName.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) && !libName.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
21 {
22 yield return new LibraryNameVariation(string.Empty, ".dll");
23 }
24 }
25}
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
LibraryNameVariation(string prefix, string suffix)
static IEnumerable< LibraryNameVariation > DetermineLibraryNameVariations(string libName, bool isRelativePath, bool forOSLoader=false)