public void registerAsDefaultBootDaemon() { if (!comp.AllowsDefaultBootModule) { return; } var fileEntry = comp.files.root.searchForFolder("sys") .searchForFile(ComputerTypeInfo.getDefaultBootDaemonFilename(this)); if (fileEntry != null) { if (!(fileEntry.data != "[Locked]")) { return; } fileEntry.data = name; } else { comp.files.root.searchForFolder("sys") .files.Add(new FileEntry(name, ComputerTypeInfo.getDefaultBootDaemonFilename(this))); } }
public void registerAsDefaultBootDaemon() { if (!this.comp.AllowsDefaultBootModule) { return; } FileEntry fileEntry = this.comp.files.root.searchForFolder("sys").searchForFile(ComputerTypeInfo.getDefaultBootDaemonFilename((object)this)); if (fileEntry != null) { if (fileEntry.data != "[Locked]") { fileEntry.data = LocaleTerms.Loc(this.name); } } else { this.comp.files.root.searchForFolder("sys").files.Add(new FileEntry(LocaleTerms.Loc(this.name), ComputerTypeInfo.getDefaultBootDaemonFilename((object)this))); } }