Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zarlo committed May 7, 2024
1 parent 614fb63 commit c9a8b81
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 199 deletions.
2 changes: 1 addition & 1 deletion articles/Kernel/VFS.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ <h1 id="file-system">File System</h1>
<p>First, we should create and initialize an instance of the VFS, this will initialize the partition and files-system lists, as well as register the new VFS.
This is essential for using the VFS.</p>
<p>We start with creating a global CosmosVFS, this line should appear outside of any function, and before the BeforeRun() function.</p>
<pre><code class="lang-C#">Sys.FileSystem.CosmosVFS fs = new Cosmos.FileSystem.CosmosVFS();
<pre><code class="lang-C#">Sys.FileSystem.CosmosVFS fs = new Cosmos.System.FileSystem.CosmosVFS();
</code></pre>
<p>Next, we register our VFS at the VFS manager, this will initiate the VFS and make it usable, add this to your kernel's BeforeRun() function:</p>
<pre><code class="lang-C#">Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
Expand Down
Loading

0 comments on commit c9a8b81

Please sign in to comment.