cosmetic changes.

This commit is contained in:
morkt
2014-09-08 07:36:20 +04:00
parent c5982da278
commit 5d4696de4c
4 changed files with 11 additions and 5 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,