1
0
mirror of https://github.com/ScrelliCopter/VGM-Tools synced 2025-02-21 04:09:25 +11:00

move main to a new source file, update makefile to support multiple sources

This commit is contained in:
2019-10-02 12:26:12 +10:00
parent 47df3e2177
commit 2a654f25e8
3 changed files with 40 additions and 16 deletions

18
neotools/autoextract.c Normal file
View File

@@ -0,0 +1,18 @@
#include <stdio.h>
#include "neoadpcmextract.h"
int main(int argc, char** argv)
{
if (argc != 2)
return 1;
// Open file.
FILE* file = fopen(argv[1], "rb");
if (!file)
return 1;
int err = vgmExtractSamples(file);
fclose(file);
return err;
}