changeset 2582:1616ad8fec1b

hm, non-working :)
author alex
date Tue, 30 Oct 2001 23:20:31 +0000
parents e94a20dec331
children 3dce775d82cb
files loader/qtx/qtxload.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/loader/qtx/qtxload.c	Tue Oct 30 23:17:35 2001 +0000
+++ b/loader/qtx/qtxload.c	Tue Oct 30 23:20:31 2001 +0000
@@ -1,3 +1,5 @@
+/* to compile: gcc -o qtxload qtxload.c ../libloader.a -lpthread -ldl -ggdb ../../cpudetect.o */
+
 #include <stdio.h>
 #include "qtxsdk/components.h"
 
@@ -21,7 +23,7 @@
     return(".");
 }
 
-main()
+main(int argc, char *argv[])
 {
     void *handler;
     void *dispatcher;
@@ -45,9 +47,9 @@
 
 	params = malloc(sizeof(struct ComponentParameters));
 
-	params->flags = 0;
+	params->flags = 2;
 	params->paramSize = sizeof(params);
-	params->what = 0x3f; /* probarly register :p */
+	params->what = atoi(argv[1]);
 	params->params[0] = 0x1984;
 	/* 0x1000100f will load QuickTime.qts */
 	/* 0x10001014 will use SendMessageA */
@@ -57,10 +59,11 @@
 	/* 0x1000102d is a dialog */
 	/* 0x10001032 returns 20001 => CDVersion */
 	/* 0x10001069 returns 8a */
+	/* 0x100010b4 probarly init ?? */
 	printf("params: flags: %d, paramSize: %d, what: %d\n",
 	    params->flags, params->paramSize, params->what);
 	printf("params[0] = %x\n", params->params[0]);
-	ret = dispatcher_func(&params, globals);
+	ret = dispatcher_func(params, globals);
 	printf("CDComponentDispatch(%p, %p) => %x\n",
 	    &params, globals, ret);
 	free(globals);