Text library compiles on OS X
This commit is contained in:
parent
6efe4383c2
commit
7b821afac0
18
dlls/src/text/build.sh
Executable file
18
dlls/src/text/build.sh
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CCOPTS="-I. -I/usr/local/include -I../include"
|
||||||
|
|
||||||
|
FILES="
|
||||||
|
text
|
||||||
|
"
|
||||||
|
|
||||||
|
OBJECTS=""
|
||||||
|
|
||||||
|
for FILE in $FILES; do
|
||||||
|
gcc -c $FILE.c $CCOPTS -o $FILE.o
|
||||||
|
OBJECTS+="$FILE.o "
|
||||||
|
done
|
||||||
|
|
||||||
|
gcc $OBJECTS -shared -o ../../bin/text.so -L/usr/local/lib -lSDL
|
||||||
|
|
||||||
|
#rm $OBJECTS
|
|
@ -222,7 +222,7 @@ int eDiv_WriteInt(FUNCTION_PARAMS)
|
||||||
fprintf( fichero , "valor: %i\n" , global("fps") ) ;
|
fprintf( fichero , "valor: %i\n" , global("fps") ) ;
|
||||||
fclose(fichero) ;
|
fclose(fichero) ;
|
||||||
|
|
||||||
itoa( fp->mem[ textos[i].offset_var ] , texto2 , 10 ) ;
|
sprintf(texto2, "%d", fp->mem[ textos[i].offset_var ]);
|
||||||
texto = texto2 ;
|
texto = texto2 ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -325,7 +325,7 @@ void frame(FUNCTION_PARAMS)
|
||||||
{
|
{
|
||||||
SDL_FreeSurface( textos[i].imagen ) ;
|
SDL_FreeSurface( textos[i].imagen ) ;
|
||||||
|
|
||||||
itoa( fp->mem[ textos[i].offset_var ] , texto2 , 10 ) ;
|
sprintf(texto2, "%d", fp->mem[ textos[i].offset_var ]);
|
||||||
texto = texto2 ;
|
texto = texto2 ;
|
||||||
|
|
||||||
/* Calculamos el ancho del fichero */
|
/* Calculamos el ancho del fichero */
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __EDIV_TEXT_H_
|
#ifndef __EDIV_TEXT_H_
|
||||||
#define __EDIV_TEXT_H_
|
#define __EDIV_TEXT_H_
|
||||||
|
|
||||||
int eDiv_LoadFnt(FUNCTION_PARMAS);
|
int eDiv_LoadFnt(FUNCTION_PARAMS);
|
||||||
int eDiv_Write(FUNCTION_PARAMS);
|
int eDiv_Write(FUNCTION_PARAMS);
|
||||||
int eDiv_WriteInt(FUNCTION_PARAMS);
|
int eDiv_WriteInt(FUNCTION_PARAMS);
|
||||||
int eDiv_MoveText(FUNCTION_PARAMS);
|
int eDiv_MoveText(FUNCTION_PARAMS);
|
||||||
|
|
Loading…
Reference in a new issue