akkera 102
/
apuplay
SPC music playback tools for real snes apu
main.cpp
- Committer:
- akkera102
- Date:
- 2017-01-14
- Revision:
- 6:0e2e1c4d3c8f
- Parent:
- 5:37f42381cca9
File content as of revision 6:0e2e1c4d3c8f:
#include "mbed.h" #include "cmd.h" Serial pc(USBTX, USBRX); LocalFileSystem local("local"); int main(void) { DIR *d; struct dirent *p; char buf[64]; for(;;) { if((d = opendir("/local")) == NULL) { return -1; } while((p = readdir(d)) != NULL) { if(strstr(p->d_name, ".SPC") != NULL) { sprintf(buf, "/local/%s", p->d_name); cmd(buf); } } printf("All done.\n"); wait(1); closedir(d); } }