icinfo: Compile the IcInfo program as a command-line app.
This commit is contained in:
parent
29295e98e6
commit
15bcb63bca
|
@ -1,6 +1,6 @@
|
|||
EXTRADEFS = -DWINE_NO_UNICODE_MACROS
|
||||
MODULE = icinfo.exe
|
||||
APPMODE = -mwindows
|
||||
APPMODE = -mconsole
|
||||
IMPORTS = msvfw32
|
||||
|
||||
C_SRCS = icinfo.c
|
||||
|
|
|
@ -23,15 +23,21 @@
|
|||
#include "vfw.h"
|
||||
|
||||
|
||||
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int n=0,doabout=0,doconfigure=0;
|
||||
int i, n=0,doabout=0,doconfigure=0;
|
||||
char buf[128],type[5],handler[5];
|
||||
|
||||
if (strstr(cmdline,"-about"))
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (!strcmp(argv[i], "-about"))
|
||||
doabout = 1;
|
||||
if (strstr(cmdline,"-configure"))
|
||||
else if (!strcmp(argv[i], "-configure"))
|
||||
doconfigure = 1;
|
||||
else {
|
||||
printf("Unknown option: %s\n", argv[i]);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
printf("Currently installed Video Compressors:\n");
|
||||
while (1) {
|
||||
|
|
Loading…
Reference in New Issue