public bool CheckFolders(CommandProcess process) { var missionFolder = process.computer.fileSystem.RootFile.GetFile("mission"); if (missionFolder == null || !missionFolder.IsFolder()) { process.Print("No mission daemon folder was found ! (Contact the admin of this node to create one as the mission board is useless without one)"); return(false); } var accountFile = missionFolder.GetFile("accounts.db"); if (accountFile == null) { process.Print("No accounts file was found ! (Contact the admin of this node to create one as the mission board is useless without one)"); return(false); } var missionFile = missionFolder.GetFile("missions.db"); if (accountFile == null) { process.Print("No missions file was found ! (Contact the admin of this node to create one as the mission board is useless without one)"); return(false); } return(true); }
public bool CheckFolders(CommandProcess process) { var bankFolder = process.computer.fileSystem.rootFile.GetFile("bank"); if (bankFolder == null || !bankFolder.IsFolder()) { process.Print("No bank daemon folder was found ! (Contact the admin of this node to create one as the bank is useless without one)"); return(false); } var accountFile = bankFolder.GetFile("accounts.db"); if (accountFile == null) { process.Print("No accounts file was found ! (Contact the admin of this node to create one as the bank is useless without one)"); return(false); } return(true); }