Check file existance
This commit is contained in:
parent
ae6e3cac02
commit
2306f8b82c
@ -80,6 +80,9 @@ namespace AirBomber.Generics
|
||||
|
||||
public bool LoadData(string FileName)
|
||||
{
|
||||
if (!File.Exists(FileName))
|
||||
return false;
|
||||
|
||||
using (StreamReader reader = new StreamReader(FileName))
|
||||
{
|
||||
if (reader.ReadLine() != "BomberStorage")
|
||||
|
Loading…
Reference in New Issue
Block a user