Skip to content

Commit

Permalink
LoadMessage now open files too
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeeynamo committed Nov 16, 2019
1 parent 591b723 commit 90652a8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ private void SaveSystem()
//_barItems = SaveSystemEntry(_barItems, Ftst);
}

public void LoadMessage(string fileName) =>
File.OpenRead(fileName).Using(stream => LoadMessage(stream));

public void LoadMessage(Stream stream)
{
if (!_bucketService.LoadMessages(stream))
Expand Down

0 comments on commit 90652a8

Please sign in to comment.