Check file existance

This commit is contained in:
ShabOl 2023-11-25 23:27:05 +04:00
parent ae6e3cac02
commit 2306f8b82c

View File

@ -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")