1
Fork 0

edited file for copying database from resources

This commit is contained in:
Jake Howard 2014-11-10 14:47:33 +00:00
parent ddfb14a269
commit 116f0979ef

View file

@ -18,13 +18,13 @@ namespace Saviour_Backup_System
private static void copyDatabase()
{
File.WriteAllBytes(@"\" + databaseName, Resources.saviour);
File.WriteAllBytes(@"" + databaseName, Resources.saviour); //copy file from resources to project file
}
internal static void init() {
if (!File.Exists(databaseName)) { //if the database doesnt exists (program hasnt been run before)
copyDatabase();
}
}
}