diff --git a/main.c b/main.c index fee2c00..39a6210 100644 --- a/main.c +++ b/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);