We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44fb2ab commit 201a20aCopy full SHA for 201a20a
src/wow.h
@@ -580,7 +580,28 @@ wow_system(char const *path)
580
581
return rval;
582
#else /* not win32 unicode */
583
+ #ifdef _WIN32
584
return system(path);
585
+ #else
586
+ // allow win32 paths on linux builds
587
+ if (strchr(path, '\\'))
588
+ {
589
+ char *tmp = strdup(path);
590
+ int rval;
591
+
592
+ for (char *c = tmp; *c; ++c)
593
+ if (*c == '\\')
594
+ *c = '/';
595
596
+ rval = system(tmp);
597
+ free(tmp);
598
+ return rval;
599
+ }
600
+ else
601
602
+ return system(path);
603
604
+ #endif
605
#endif
606
}
607
0 commit comments