fix compimg command for win32

This commit is contained in:
2025-02-12 00:27:40 -06:00
parent 6e15b0ec59
commit 8ab9227b25

4
main.c
View File

@@ -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);