cleanup & format

This commit is contained in:
Lucent 2023-10-27 23:47:09 +02:00
parent c45fe707d2
commit 92ff4d3f28
2 changed files with 68 additions and 65 deletions

View file

@ -1,6 +1,4 @@
using System.Security.Cryptography;
using System.Text;
using System.Windows.Forms;
namespace SharpCreditsCrediter
{

View file

@ -33,9 +33,11 @@ namespace SharpCreditsCrediter
private string intToText(int value)
{
try {
try
{
return intToTextTable[value];
} catch(Exception)
}
catch (Exception)
{
return String.Format("{0:X2}", Convert.ToInt32(value));
}
@ -70,7 +72,8 @@ namespace SharpCreditsCrediter
if (gameCode == "AMTE")
{
this.isZM = false;
} else
}
else
{
this.isZM = true;
}
@ -149,7 +152,8 @@ namespace SharpCreditsCrediter
var currentLine = credits.ReadLine();
if (currentLine != null)
{
if (currentLine.Length > 38) {
if (currentLine.Length > 38)
{
currentLine = currentLine[..38];
}
@ -181,7 +185,8 @@ namespace SharpCreditsCrediter
return true;
}
return false;
} catch (Exception)
}
catch (Exception)
{
return false;
}