Table of Contents

Class VfsBootstrap

Namespace
PopcorningGuineaPig.Engine.Assets.Cecal
Assembly
PopcorningGuineaPig.Engine.dll

Probes the executable directory for a .cecal archive and constructs the correct runtime VFS stack. Called once by Init(int, int, int, string) so every subclass gets consistent initialization regardless of its Load override.

public static class VfsBootstrap
Inheritance
VfsBootstrap
Inherited Members

Methods

CreateDefault()

Archive filenames probed in order next to BaseDirectory: {exeName}.cecal → game.cecal → assets.cecal. When an archive is found, returns a CompositeVirtualFileSystem layering it over a loose-file fallback. When none is found, returns null — every asset loader has a null-VFS branch that preserves the engine's pre-Story-7.5 behavior byte-for-byte, so games that never adopt .cecal keep their exact legacy paths (native Raylib.LoadTexture, File.ReadAllText, etc.).

public static IVirtualFileSystem? CreateDefault()

Returns

IVirtualFileSystem