Repository navigation
Utility Classes
LDTchara edited this page Sep 23, 2026
·
2 revisions
Warning
This page documents KernelExtensions 0.6 and is no longer maintained. See the new documentation site: KernelExtensions docs (0.7 and later).
KernelExtensions provides a set of static utility classes for use by extension developers in their code.
- Path:
KernelExtensions.Utility.ActionHelper - Method:
ExecuteActionFile(OS os, string actionFilePath, string extensionRoot) - Purpose: Loads and executes an action file, unifying the action execution logic between
CustomTrialExeand the VM attack system.
- Path:
KernelExtensions.Utility.MusicPathResolver - Method:
ResolveMusicPath(string musicPath, string extensionRoot) - Purpose: Resolves a music string from configuration into a path recognised by
MusicManager.transitionToSong. Supports plain filenames, extension directories, DLC music, and vanilla music.
- Path:
KernelExtensions.Utility.SoundHelper - Method:
PlaySound(OS os, string soundPath, float volume, float pitch, float pan) - Purpose: Plays a WAV sound effect file from within the extension directory.
- Path:
KernelExtensions.Utility.FlowColorUtils - Methods:
GetFlowingRainbowColor(float position, float baseTime),HslToRgbSimple(double h, double s, double l) - Purpose: Provides time‑based flowing rainbow colour calculations, used for the main menu watermark and other dynamic rainbow colour needs.
KernelExtensions Wiki · GitHub Repository · Licensed under MIT