cleanup & format
This commit is contained in:
parent
c45fe707d2
commit
92ff4d3f28
2 changed files with 68 additions and 65 deletions
|
@ -1,6 +1,4 @@
|
|||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace SharpCreditsCrediter
|
||||
{
|
||||
|
|
15
ROMFile.cs
15
ROMFile.cs
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue