Skip to content

Commit

Permalink
fix: use vlq instead of u4 to for event action count
Browse files Browse the repository at this point in the history
  • Loading branch information
abheekda1 authored Jan 17, 2024
1 parent 5236898 commit ae72ad1
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions ksy/bnk.ksy
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ meta:
id: bnk
file-extension: bnk
endian: le
imports:
- vlq # https://formats.kaitai.io/vlq_base128_le/

seq:
- id: data
Expand Down Expand Up @@ -47,12 +49,14 @@ types:
type: u4
- id: id
type: u4
- id: blank1
contents: [00, 00, 00, 00]
- id: blank2
contents: [00, 00, 00, 00]
#- id: blank1
# contents: [00, 00, 00, 00]
#- id: blank2
# contents: [00, 00, 00, 00]
#- id: random
# size: length - 16
- id: random
size: length - 16
size: length - 8
# BKHD END

# DIDX BEGIN
Expand Down Expand Up @@ -252,11 +256,11 @@ types:
event:
seq:
- id: event_action_count
type: u4
type: vlq
- id: event_actions
type: u4
repeat: expr
repeat-expr: event_action_count
repeat-expr: event_action_count.value
audio_bus:
seq:
- id: parent_audio_bus_id
Expand Down Expand Up @@ -482,8 +486,10 @@ types:
seq:
- id: data
size: size
# HIRC END

enums:
# HIRC ENUM BEGIN
object_type:
1: settings
2: sound_effect_or_voice
Expand Down Expand Up @@ -550,4 +556,4 @@ enums:
3: random_continuous
4: sequence_step_new_path
5: random_step_new_path
# HIRC END
# HIRC ENUM END

0 comments on commit ae72ad1

Please sign in to comment.