mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[BaseFile] Set filename properly
This commit is contained in:
@@ -104,11 +104,11 @@ namespace SabreTools.Library.FileTypes
|
|||||||
/// <param name="filename">Name of the file to use</param>
|
/// <param name="filename">Name of the file to use</param>
|
||||||
public BaseFile(string filename)
|
public BaseFile(string filename)
|
||||||
{
|
{
|
||||||
|
this._filename = filename;
|
||||||
BaseFile temp = Utilities.GetFileInfo(_filename);
|
BaseFile temp = Utilities.GetFileInfo(_filename);
|
||||||
|
|
||||||
if (temp != null)
|
if (temp != null)
|
||||||
{
|
{
|
||||||
this._filename = temp.Filename;
|
|
||||||
this._parent = temp.Parent;
|
this._parent = temp.Parent;
|
||||||
this._date = temp.Date;
|
this._date = temp.Date;
|
||||||
this._crc = temp.CRC;
|
this._crc = temp.CRC;
|
||||||
@@ -129,7 +129,7 @@ namespace SabreTools.Library.FileTypes
|
|||||||
{
|
{
|
||||||
BaseFile temp = Utilities.GetStreamInfo(stream, stream.Length);
|
BaseFile temp = Utilities.GetStreamInfo(stream, stream.Length);
|
||||||
|
|
||||||
this._filename = temp.Filename;
|
this._filename = filename;
|
||||||
this._parent = temp.Parent;
|
this._parent = temp.Parent;
|
||||||
this._date = temp.Date;
|
this._date = temp.Date;
|
||||||
this._crc = temp.CRC;
|
this._crc = temp.CRC;
|
||||||
|
|||||||
Reference in New Issue
Block a user