From 8ab9227b25c6a04c9f2d1d66b7fb966a0744155f Mon Sep 17 00:00:00 2001 From: bonkmaykr Date: Wed, 12 Feb 2025 00:27:40 -0600 Subject: [PATCH] fix compimg command for win32 --- main.c | 4 ++++ 1 file changed, 4 insertions(+) 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);