Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if song then
- local songDir = song:GetSongDir();
- local dir = FILEMAN:GetDirListing(songDir);
- local fileToLoad = nil;
- for i=1,#dir do
- if string.find(dir[i],".sm") then
- fileToLoad = dir[i];
- self:Load(songDir..fileToLoad);
- end;
- end;
- else
- -- fallback crap for not having a song
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement