Made Nuclex.Support compileable on the XBox 360; added new XNA 3.0 project to compile Nuclex.Support on the XBox 360; added my own AssemblyLoadEventArgs implementation since the XBox 360 XNA framework doesn't provide it; other minor fixes so Nuclex.Support can cope with the XBox 360 XNA framework
git-svn-id: file:///srv/devel/repo-conversion/nusu@113 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
8f6616f79a
commit
0a483b4d44
19 changed files with 473 additions and 28 deletions
|
@ -182,10 +182,10 @@ namespace Nuclex.Support.Licensing {
|
|||
);
|
||||
|
||||
// Now build a nice, readable string from the decoded characters
|
||||
resultBuilder.Insert(5, '-');
|
||||
resultBuilder.Insert(11, '-');
|
||||
resultBuilder.Insert(17, '-');
|
||||
resultBuilder.Insert(23, '-');
|
||||
resultBuilder.Insert(5, keyDelimiter, 0, 1);
|
||||
resultBuilder.Insert(11, keyDelimiter, 0, 1);
|
||||
resultBuilder.Insert(17, keyDelimiter, 0, 1);
|
||||
resultBuilder.Insert(23, keyDelimiter, 0, 1);
|
||||
return resultBuilder.ToString();
|
||||
}
|
||||
|
||||
|
@ -215,6 +215,13 @@ namespace Nuclex.Support.Licensing {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>Character used to delimit each 5 digit group in a license key</summary>
|
||||
/// <remarks>
|
||||
/// Required to be a char array because the .NET Compact Framework only provides
|
||||
/// an overload for char[] in the StringBuilder.Insert() method.
|
||||
/// </remarks>
|
||||
private static char[] keyDelimiter = new char[] { '-' };
|
||||
|
||||
/// <summary>Table with the individual characters in a key</summary>
|
||||
private static readonly string codeTable =
|
||||
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue