fix compimg command for win32
This commit is contained in:
4
main.c
4
main.c
@@ -243,7 +243,11 @@ int main(const int argc, char *argv[]) {
|
||||
char* command = (char*)malloc((54 + 3 * opt.o + strlen(filename))*sizeof(char)); // MSVC
|
||||
char argTransparent[3];
|
||||
if (opt.o == 0) sprintf(argTransparent, " -t");
|
||||
#ifdef _MSC_VER
|
||||
sprintf(command, "compimg.exe -ace -c%d -r0 -pt%s -emov -M%s +segments.txt", opt.c + 1, argTransparent, filename);
|
||||
#else
|
||||
sprintf(command, "./compimg.exe -ace -c%d -r0 -pt%s -emov -M%s +segments.txt", opt.c+1, argTransparent, filename);
|
||||
#endif
|
||||
if (system(command)) { printf("ERROR trying to run COMPIMG!\n"); return 0; }
|
||||
|
||||
printf("\n\n!!! DONE !!!\nYour avatar name is: %s%ds*%dh*%dv*.mov\n", filename, numFrames, piecesX, piecesY);
|
||||
|
||||
Reference in New Issue
Block a user