diff options
author | yenatch <yenatch@gmail.com> | 2013-11-05 13:54:59 -0500 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-11-05 13:54:59 -0500 |
commit | f790933680e3a91706b323c87ec9cbd1cb984869 (patch) | |
tree | 9b1006b089b62c86dfb83710e209e9bca90bab46 | |
parent | fc34ecde0aa20c288c5a9eefef00955b30a4894c (diff) |
audio.py: pointer table generation
-rw-r--r-- | pokemontools/audio.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pokemontools/audio.py b/pokemontools/audio.py index 92bd3e3..25c41c7 100644 --- a/pokemontools/audio.py +++ b/pokemontools/audio.py @@ -267,10 +267,18 @@ def dump_crystal_music(): from song_names import song_names dump_sounds(0xe906e, song_names, os.path.join(conf.path, 'audio', 'music'), 'Music_') +def generate_crystal_music_pointers(): + from song_names import song_names + return '\n'.join('\tdbw BANK({0}), {0}'.format('Music_' + label) for label in song_names) + def dump_crystal_sfx(): from sfx_names import sfx_names dump_sounds(0xe927c, sfx_names, os.path.join(conf.path, 'audio', 'sfx'), 'Sfx_') +def generate_crystal_sfx_pointers(): + from sfx_names import sfx_names + return '\n'.join('\tdbw BANK({0}), {0}'.format('Sfx_' + label) for label in sfx_names) + if __name__ == '__main__': dump_crystal_music() |