private static void LoadSfx(FileHandle file, string path, bool root = false) { if (file.Exists()) { path = $"{path}{file.Name}{(root ? "" : "/")}"; foreach (var sfx in file.ListFileHandles()) { if (sfx.Extension == ".xnb") { LoadSfx(sfx.NameWithoutExtension, path); } } foreach (var dir in file.ListDirectoryHandles()) { LoadSfx(dir, path); } } }