Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathFileSystem.cs
More file actions
Latest commit
75 lines (67 loc) · 2.11 KB
/
Copy pathFileSystem.cs
File metadata and controls
75 lines (67 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
usingSystem;
usingSystem.Xml;
namespaceHacknet
{
// Token: 0x02000111 RID: 273
internalclassFileSystem
{
// Token: 0x0600066E RID: 1646 RVA: 0x0006A913 File Offset: 0x00068B13
publicFileSystem(boolempty)
{
}
// Token: 0x0600066F RID: 1647 RVA: 0x0006A920 File Offset: 0x00068B20
publicFileSystem()
{
this.root=newFolder("/");
this.root.folders.Add(newFolder("home"));
this.root.folders.Add(newFolder("log"));
this.root.folders.Add(newFolder("bin"));
this.root.folders.Add(newFolder("sys"));
this.generateSystemFiles();
}
// Token: 0x06000670 RID: 1648 RVA: 0x0006A9BC File Offset: 0x00068BBC
publicvoidgenerateSystemFiles()
{
Folderfolder=this.root.searchForFolder("sys");
folder.files.Add(newFileEntry(ThemeManager.getThemeDataString(OSTheme.HacknetTeal),"x-server.sys"));
folder.files.Add(newFileEntry(Computer.generateBinaryString(500),"os-config.sys"));
folder.files.Add(newFileEntry(Computer.generateBinaryString(500),"bootcfg.dll"));
folder.files.Add(newFileEntry(Computer.generateBinaryString(500),"netcfgx.dll"));
}
// Token: 0x06000671 RID: 1649 RVA: 0x0006AA58 File Offset: 0x00068C58
publicstringgetSaveString()
{
stringstr="<filesystem>\n";
str+=this.root.getSaveString();
returnstr+"</filesystem>\n";
}
// Token: 0x06000672 RID: 1650 RVA: 0x0006AA90 File Offset: 0x00068C90
publicstaticFileSystemload(XmlReaderreader)
{
FileSystemfileSystem=newFileSystem(true);
while(reader.Name!="filesystem")
{
reader.Read();
}
fileSystem.root=Folder.load(reader);
returnfileSystem;
}
// Token: 0x06000673 RID: 1651 RVA: 0x0006AAD4 File Offset: 0x00068CD4
publicstringTestEquals(objectobj)
{
FileSystemfileSystem=objasFileSystem;
if(fileSystem==null)
{
thrownewArgumentNullException();
}
returnthis.root.TestEqualsFolder(fileSystem.root);
}
// Token: 0x06000674 RID: 1652 RVA: 0x0006AB10 File Offset: 0x00068D10
publicoverrideintGetHashCode()
{
returnbase.GetHashCode();
}
// Token: 0x0400072C RID: 1836
publicFolderroot;
}
}