cosmetic changes.

This commit is contained in:
morkt
2014-08-31 18:49:42 +04:00
parent f06396f1e3
commit 06e651d43b
5 changed files with 16 additions and 14 deletions

View File

@@ -174,12 +174,15 @@ namespace GameRes.Formats.Kogado
try
{
string name = Path.GetFileNameWithoutExtension (entry.Name);
string ext = Path.GetExtension (entry.Name).TrimStart ('.').ToLowerInvariant();
string ext = Path.GetExtension (entry.Name);
byte[] name_buf = new byte[0x15];
byte[] ext_buf = new byte[3];
encoding.GetBytes (name, 0, name.Length, name_buf, 0);
if (!string.IsNullOrEmpty (ext))
{
ext = ext.TrimStart ('.').ToLowerInvariant();
encoding.GetBytes (ext, 0, ext.Length, ext_buf, 0);
}
var out_entry = new OutputEntry
{
Name = entry.Name,