Advertisement
ZoriaRPG

MIDI Title Length Cause

Nov 1st, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. //Found it
  2. const char *custommidilist(int index, int *list_size)
  3. {
  4.     if(index>=0)
  5.     {
  6.         bound(index,0,MAXCUSTOMMIDIS_ZQ-1);
  7.         sprintf(number_str_buf,"%3d - %s",index+(number_list_zero?0:1),customtunes[index].data?customtunes[index].title:"(Empty)");
  8.         return number_str_buf;
  9.     }
  10.    
  11.     *list_size=number_list_size;
  12.     return NULL;
  13. }
  14. //number_str_buf is length 32.
  15. //So 26 + the "XXX - " preceding it is 32.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement