X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fgraphics%2FFreetype.c;fp=src%2Forg%2Fibex%2Fgraphics%2FFreetype.c;h=f65f5c85af4a538bdcec0fd7c17c9e1eaf816d78;hb=8e190fb0ff508ccf4962bbfbf8295a431805c12b;hp=2a1c798f858f58d4c085e875eba625fa28325f96;hpb=4daeeb4119b901d53b44913c86f8af3ce67db925;p=org.ibex.core.git diff --git a/src/org/ibex/graphics/Freetype.c b/src/org/ibex/graphics/Freetype.c index 2a1c798..f65f5c8 100644 --- a/src/org/ibex/graphics/Freetype.c +++ b/src/org/ibex/graphics/Freetype.c @@ -3,6 +3,8 @@ #include #include +char *user_info[1024]; + /* NOTE: _user_info is defined in crt0.c. It points to a 4096 byte block of memory that contains 1024 32-bit values that can be set with the setUserInfo() method of MIPSEmu. @@ -34,8 +36,6 @@ */ -extern char *user_info[1024]; - #define FT_Check(expr) do { \ if((expr) != 0) { \ errprint(#expr " failed\n"); \ @@ -105,3 +105,12 @@ if (old_glyph_index != -1) { } old_glyph_index = glyph_index; */ + + +extern int mspack_main(); +int main(int argc, char **argv) { + if(argc < 1) return 1; + if(strcmp(argv[0],"mspack")==0) return mspack_main(); + if(strcmp(argv[0],"freetype")==0) return freetype_main(); + return 1; +}