removed dfOpenGL, peopsxgl is now only built with --enable-opengl specified
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@23712 e17a0e51-4ae3-4d35-97c3-1a29b211df97
This commit is contained in:
parent
447f8fae23
commit
bdaffda275
|
@ -1,3 +1,10 @@
|
|||
June 16, 2009 Wei Mingzhi <weimingzhi@gmail.com>
|
||||
|
||||
* plugins/dfOpenGL: Removed experimental dfOpenGL plugin.
|
||||
* configure.ac: OpenGL plugin is only built with --enable-opengl.
|
||||
* Makefile.am: Likewise.
|
||||
* debian/rules: Added --enable-opengl to configure parameters.
|
||||
|
||||
June 11, 2009 Wei Mingzhi <weimingzhi@gmail.com>
|
||||
|
||||
* macosx/English.lproj/PCSX.nib/objects.nib: Added "Run ISO" function.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
SUBDIRS = data doc po libpcsxcore gui pixmaps plugins/dfinput plugins/dfsound plugins/dfxvideo plugins/dfcdrom plugins/peopsxgl
|
||||
SUBDIRS += $(DFOPENGL)
|
||||
SUBDIRS = data doc po libpcsxcore gui pixmaps plugins/dfinput plugins/dfsound plugins/dfxvideo plugins/dfcdrom
|
||||
SUBDIRS += $(PEOPSXGL)
|
||||
|
||||
EXTRA_DIST = AUTHORS COPYING INSTALL NEWS README ChangeLog ChangeLog.df
|
||||
|
|
|
@ -91,7 +91,6 @@ CPPFLAGS = @CPPFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DFOPENGL = @DFOPENGL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
|
@ -150,6 +149,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PEOPSXGL = @PEOPSXGL@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POSUB = @POSUB@
|
||||
RANLIB = @RANLIB@
|
||||
|
@ -219,8 +219,7 @@ top_build_prefix = @top_build_prefix@
|
|||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
SUBDIRS = data doc po libpcsxcore gui pixmaps plugins/dfinput \
|
||||
plugins/dfsound plugins/dfxvideo plugins/dfcdrom \
|
||||
plugins/peopsxgl $(DFOPENGL)
|
||||
plugins/dfsound plugins/dfxvideo plugins/dfcdrom $(PEOPSXGL)
|
||||
EXTRA_DIST = AUTHORS COPYING INSTALL NEWS README ChangeLog ChangeLog.df
|
||||
all: all-recursive
|
||||
|
||||
|
|
|
@ -795,7 +795,7 @@ ARCH_X86_TRUE
|
|||
NASM
|
||||
X86_NASM_FALSE
|
||||
X86_NASM_TRUE
|
||||
DFOPENGL
|
||||
PEOPSXGL
|
||||
ALSA_LIBS
|
||||
HAVE_ALSA_FALSE
|
||||
HAVE_ALSA_TRUE
|
||||
|
@ -958,7 +958,7 @@ enable_rpath
|
|||
with_libiconv_prefix
|
||||
with_libintl_prefix
|
||||
enable_alsa
|
||||
enable_dfopengl
|
||||
enable_opengl
|
||||
enable_dynarec
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
|
@ -1622,7 +1622,7 @@ Optional Features:
|
|||
--disable-nls do not use Native Language Support
|
||||
--disable-rpath do not hardcode runtime library paths
|
||||
--enable-alsa use ALSA sound output (default=no)
|
||||
--enable-dfopengl build experimental dfOpenGL plugin (default=no)
|
||||
--enable-opengl build OpenGL plugin (default=no)
|
||||
--enable-dynarec=... force selection of dynamic recompiler platform (x86, x86_64, ppc) (default: autodetect)
|
||||
|
||||
Optional Packages:
|
||||
|
@ -14168,7 +14168,7 @@ fi
|
|||
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files Makefile data/Makefile doc/Makefile libpcsxcore/Makefile gui/Makefile plugins/dfinput/Makefile plugins/dfsound/Makefile plugins/dfxvideo/Makefile plugins/peopsxgl/Makefile plugins/dfcdrom/Makefile pixmaps/Makefile po/Makefile.in"
|
||||
ac_config_files="$ac_config_files Makefile data/Makefile doc/Makefile libpcsxcore/Makefile gui/Makefile plugins/dfinput/Makefile plugins/dfsound/Makefile plugins/dfxvideo/Makefile plugins/dfcdrom/Makefile pixmaps/Makefile po/Makefile.in"
|
||||
|
||||
|
||||
saved_CFLAGS="$CFLAGS"
|
||||
|
@ -15180,15 +15180,18 @@ fi
|
|||
# AC_MSG_ERROR([unable to find xf86vmode headers])
|
||||
#fi
|
||||
|
||||
# Check whether --enable-dfopengl was given.
|
||||
if test "${enable_dfopengl+set}" = set; then
|
||||
enableval=$enable_dfopengl; BUILD_DFOPENGL="$enableval"
|
||||
# Check whether --enable-opengl was given.
|
||||
if test "${enable_opengl+set}" = set; then
|
||||
enableval=$enable_opengl; BUILD_OPENGL="$enableval"
|
||||
else
|
||||
BUILD_DFOPENGL="no"
|
||||
BUILD_OPENGL="no"
|
||||
fi
|
||||
|
||||
|
||||
if test "${ac_cv_header_GL_gl_h+set}" = set; then
|
||||
PEOPSXGL=""
|
||||
|
||||
if test "$BUILD_OPENGL" = "yes"; then
|
||||
if test "${ac_cv_header_GL_gl_h+set}" = set; then
|
||||
{ $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
|
||||
$as_echo_n "checking for GL/gl.h... " >&6; }
|
||||
if test "${ac_cv_header_GL_gl_h+set}" = set; then
|
||||
|
@ -15322,12 +15325,12 @@ else
|
|||
fi
|
||||
|
||||
|
||||
if test "x$have_gl" = xno; then
|
||||
{ { $as_echo "$as_me:$LINENO: error: unable to find OpenGL headers" >&5
|
||||
if test "x$have_gl" = xno; then
|
||||
{ { $as_echo "$as_me:$LINENO: error: unable to find OpenGL headers" >&5
|
||||
$as_echo "$as_me: error: unable to find OpenGL headers" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
if test "${ac_cv_header_GL_glx_h+set}" = set; then
|
||||
fi
|
||||
if test "${ac_cv_header_GL_glx_h+set}" = set; then
|
||||
{ $as_echo "$as_me:$LINENO: checking for GL/glx.h" >&5
|
||||
$as_echo_n "checking for GL/glx.h... " >&6; }
|
||||
if test "${ac_cv_header_GL_glx_h+set}" = set; then
|
||||
|
@ -15461,17 +15464,14 @@ else
|
|||
fi
|
||||
|
||||
|
||||
if test "x$have_glx" = xno; then
|
||||
{ { $as_echo "$as_me:$LINENO: error: unable to find GLX headers" >&5
|
||||
if test "x$have_glx" = xno; then
|
||||
{ { $as_echo "$as_me:$LINENO: error: unable to find GLX headers" >&5
|
||||
$as_echo "$as_me: error: unable to find GLX headers" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
fi
|
||||
PEOPSXGL="plugins/peopsxgl"
|
||||
|
||||
DFOPENGL=""
|
||||
if test "$BUILD_DFOPENGL" = "yes"; then
|
||||
DFOPENGL="plugins/dfOpenGL"
|
||||
|
||||
ac_config_files="$ac_config_files plugins/dfOpenGL/Makefile"
|
||||
ac_config_files="$ac_config_files plugins/peopsxgl/Makefile"
|
||||
|
||||
fi
|
||||
|
||||
|
@ -17092,11 +17092,10 @@ do
|
|||
"plugins/dfinput/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dfinput/Makefile" ;;
|
||||
"plugins/dfsound/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dfsound/Makefile" ;;
|
||||
"plugins/dfxvideo/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dfxvideo/Makefile" ;;
|
||||
"plugins/peopsxgl/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/peopsxgl/Makefile" ;;
|
||||
"plugins/dfcdrom/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dfcdrom/Makefile" ;;
|
||||
"pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
|
||||
"po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
|
||||
"plugins/dfOpenGL/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/dfOpenGL/Makefile" ;;
|
||||
"plugins/peopsxgl/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/peopsxgl/Makefile" ;;
|
||||
|
||||
*) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
||||
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
||||
|
|
32
configure.ac
32
configure.ac
|
@ -32,7 +32,7 @@ AC_SUBST(GTK2_LIBS)
|
|||
AC_SUBST(GLADE2_CFLAGS)
|
||||
AC_SUBST(GLADE2_LIBS)
|
||||
|
||||
AC_CONFIG_FILES([Makefile data/Makefile doc/Makefile libpcsxcore/Makefile gui/Makefile plugins/dfinput/Makefile plugins/dfsound/Makefile plugins/dfxvideo/Makefile plugins/peopsxgl/Makefile plugins/dfcdrom/Makefile pixmaps/Makefile po/Makefile.in])
|
||||
AC_CONFIG_FILES([Makefile data/Makefile doc/Makefile libpcsxcore/Makefile gui/Makefile plugins/dfinput/Makefile plugins/dfsound/Makefile plugins/dfxvideo/Makefile plugins/dfcdrom/Makefile pixmaps/Makefile po/Makefile.in])
|
||||
|
||||
dnl Check for -fno-dse option support
|
||||
saved_CFLAGS="$CFLAGS"
|
||||
|
@ -94,23 +94,23 @@ fi
|
|||
# AC_MSG_ERROR([unable to find xf86vmode headers])
|
||||
#fi
|
||||
|
||||
AC_ARG_ENABLE(dfopengl, [ --enable-dfopengl build experimental dfOpenGL plugin (default=no)],
|
||||
[ BUILD_DFOPENGL="$enableval" ],[ BUILD_DFOPENGL="no" ])
|
||||
AC_ARG_ENABLE(opengl, [ --enable-opengl build OpenGL plugin (default=no)],
|
||||
[ BUILD_OPENGL="$enableval" ],[ BUILD_OPENGL="no" ])
|
||||
|
||||
AC_CHECK_HEADER(GL/gl.h, have_gl=yes, have_gl=no)
|
||||
if test "x$have_gl" = xno; then
|
||||
AC_MSG_ERROR([unable to find OpenGL headers])
|
||||
fi
|
||||
AC_CHECK_HEADER(GL/glx.h, have_glx=yes, have_glx=no)
|
||||
if test "x$have_glx" = xno; then
|
||||
AC_MSG_ERROR([unable to find GLX headers])
|
||||
fi
|
||||
PEOPSXGL=""
|
||||
|
||||
DFOPENGL=""
|
||||
if test "$BUILD_DFOPENGL" = "yes"; then
|
||||
DFOPENGL="plugins/dfOpenGL"
|
||||
AC_SUBST(DFOPENGL)
|
||||
AC_CONFIG_FILES([plugins/dfOpenGL/Makefile])
|
||||
if test "$BUILD_OPENGL" = "yes"; then
|
||||
AC_CHECK_HEADER(GL/gl.h, have_gl=yes, have_gl=no)
|
||||
if test "x$have_gl" = xno; then
|
||||
AC_MSG_ERROR([unable to find OpenGL headers])
|
||||
fi
|
||||
AC_CHECK_HEADER(GL/glx.h, have_glx=yes, have_glx=no)
|
||||
if test "x$have_glx" = xno; then
|
||||
AC_MSG_ERROR([unable to find GLX headers])
|
||||
fi
|
||||
PEOPSXGL="plugins/peopsxgl"
|
||||
AC_SUBST(PEOPSXGL)
|
||||
AC_CONFIG_FILES([plugins/peopsxgl/Makefile])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(X86_NASM, false)
|
||||
|
|
|
@ -74,7 +74,6 @@ CPPFLAGS = @CPPFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DFOPENGL = @DFOPENGL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
|
@ -133,6 +132,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PEOPSXGL = @PEOPSXGL@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POSUB = @POSUB@
|
||||
RANLIB = @RANLIB@
|
||||
|
|
|
@ -21,7 +21,8 @@ CONFIGURE_PARAM = \
|
|||
--prefix=/usr \
|
||||
--bindir=/usr/games \
|
||||
--mandir=\$${prefix}/share/man \
|
||||
--infodir=\$${prefix}/share/info
|
||||
--infodir=\$${prefix}/share/info \
|
||||
--enable-opengl
|
||||
|
||||
config.status: configure
|
||||
dh_testdir
|
||||
|
|
|
@ -67,7 +67,6 @@ CPPFLAGS = @CPPFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DFOPENGL = @DFOPENGL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
|
@ -126,6 +125,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PEOPSXGL = @PEOPSXGL@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POSUB = @POSUB@
|
||||
RANLIB = @RANLIB@
|
||||
|
|
|
@ -88,7 +88,6 @@ CPPFLAGS = @CPPFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DFOPENGL = @DFOPENGL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
|
@ -147,6 +146,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PEOPSXGL = @PEOPSXGL@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POSUB = @POSUB@
|
||||
RANLIB = @RANLIB@
|
||||
|
|
|
@ -180,7 +180,6 @@ CPPFLAGS = @CPPFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DFOPENGL = @DFOPENGL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
|
@ -239,6 +238,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PEOPSXGL = @PEOPSXGL@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POSUB = @POSUB@
|
||||
RANLIB = @RANLIB@
|
||||
|
|
|
@ -74,7 +74,6 @@ CPPFLAGS = @CPPFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DFOPENGL = @DFOPENGL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
|
@ -133,6 +132,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PEOPSXGL = @PEOPSXGL@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POSUB = @POSUB@
|
||||
RANLIB = @RANLIB@
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
This plugin is based on (built around) gpuZenOpenGL by CitiZen X (1998).
|
||||
GPL'd by permission September 23, 2007.
|
||||
Many hints taken from Pete Bernert's GPL soft gpu plugin.
|
||||
|
||||
Stephen Chao <stephen@digitalnexus.org>
|
File diff suppressed because it is too large
Load Diff
|
@ -1 +0,0 @@
|
|||
bool SaveTGA(const char* filename, int width, int height, void* pdata);
|
|
@ -1,22 +0,0 @@
|
|||
INCLUDES = -DPIXMAPDIR=\"${datadir}/pixmaps/\" \
|
||||
-DLOCALE_DIR=\"${datadir}/locale/\" \
|
||||
-DDATADIR=\"${datadir}/psemu/\" \
|
||||
$(GTK2_CFLAGS) $(GLADE2_CFLAGS) -I/usr/X11R6/include \
|
||||
-I../../libpcsxcore -g -O0 -Wall -fPIC
|
||||
|
||||
bindir = @libdir@/games/psemu/
|
||||
libdir = @libdir@/games/psemu/
|
||||
|
||||
lib_LTLIBRARIES = libdfOpenGL.la
|
||||
|
||||
libdfOpenGL_la_SOURCES = GPU.c primitive_drawing.c fps.c gllog.c cfg.c
|
||||
libdfOpenGL_la_LDFLAGS = -module -avoid-version \
|
||||
-L/usr/X11R6/lib64 -L/usr/X11R6/lib -lX11 -lXxf86vm -lGL -lm
|
||||
|
||||
bin_PROGRAMS = cfgDFOpenGL
|
||||
cfgDFOpenGL_SOURCES = gpucfg-0.1df/main.c
|
||||
cfgDFOpenGL_LDADD = $(GTK2_LIBS) $(GLADE2_LIBS)
|
||||
|
||||
glade_DATA = gpucfg-0.1df/dfopengl.glade2
|
||||
gladedir = $(datadir)/psemu/
|
||||
EXTRA_DIST = $(glade_DATA)
|
|
@ -1,603 +0,0 @@
|
|||
# Makefile.in generated by automake 1.10.2 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
|
||||
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
bin_PROGRAMS = cfgDFOpenGL$(EXEEXT)
|
||||
subdir = plugins/dfOpenGL
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in AUTHORS TODO
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = $(top_builddir)/include/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
||||
am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
|
||||
"$(DESTDIR)$(gladedir)"
|
||||
libLTLIBRARIES_INSTALL = $(INSTALL)
|
||||
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||
libdfOpenGL_la_LIBADD =
|
||||
am_libdfOpenGL_la_OBJECTS = GPU.lo primitive_drawing.lo fps.lo \
|
||||
gllog.lo cfg.lo
|
||||
libdfOpenGL_la_OBJECTS = $(am_libdfOpenGL_la_OBJECTS)
|
||||
libdfOpenGL_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
$(libdfOpenGL_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
|
||||
PROGRAMS = $(bin_PROGRAMS)
|
||||
am_cfgDFOpenGL_OBJECTS = main.$(OBJEXT)
|
||||
cfgDFOpenGL_OBJECTS = $(am_cfgDFOpenGL_OBJECTS)
|
||||
am__DEPENDENCIES_1 =
|
||||
cfgDFOpenGL_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||
--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
|
||||
$(LDFLAGS) -o $@
|
||||
SOURCES = $(libdfOpenGL_la_SOURCES) $(cfgDFOpenGL_SOURCES)
|
||||
DIST_SOURCES = $(libdfOpenGL_la_SOURCES) $(cfgDFOpenGL_SOURCES)
|
||||
gladeDATA_INSTALL = $(INSTALL_DATA)
|
||||
DATA = $(glade_DATA)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ALSA_LIBS = @ALSA_LIBS@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCAS = @CCAS@
|
||||
CCASDEPMODE = @CCASDEPMODE@
|
||||
CCASFLAGS = @CCASFLAGS@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DFOPENGL = @DFOPENGL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
|
||||
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
|
||||
GLADE2_CFLAGS = @GLADE2_CFLAGS@
|
||||
GLADE2_LIBS = @GLADE2_LIBS@
|
||||
GLIB2_CFLAGS = @GLIB2_CFLAGS@
|
||||
GLIB2_LIBS = @GLIB2_LIBS@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
GMSGFMT_015 = @GMSGFMT_015@
|
||||
GREP = @GREP@
|
||||
GTK2_CFLAGS = @GTK2_CFLAGS@
|
||||
GTK2_LIBS = @GTK2_LIBS@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
INTLLIBS = @INTLLIBS@
|
||||
INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBICONV = @LIBICONV@
|
||||
LIBINTL = @LIBINTL@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBICONV = @LTLIBICONV@
|
||||
LTLIBINTL = @LTLIBINTL@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGFMT_015 = @MSGFMT_015@
|
||||
MSGMERGE = @MSGMERGE@
|
||||
NASM = @NASM@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POSUB = @POSUB@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
USE_NLS = @USE_NLS@
|
||||
VERSION = @VERSION@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
XGETTEXT_015 = @XGETTEXT_015@
|
||||
XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @libdir@/games/psemu/
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@/games/psemu/
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
lt_ECHO = @lt_ECHO@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target = @target@
|
||||
target_alias = @target_alias@
|
||||
target_cpu = @target_cpu@
|
||||
target_os = @target_os@
|
||||
target_vendor = @target_vendor@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
INCLUDES = -DPIXMAPDIR=\"${datadir}/pixmaps/\" \
|
||||
-DLOCALE_DIR=\"${datadir}/locale/\" \
|
||||
-DDATADIR=\"${datadir}/psemu/\" \
|
||||
$(GTK2_CFLAGS) $(GLADE2_CFLAGS) -I/usr/X11R6/include \
|
||||
-I../../libpcsxcore -g -O0 -Wall -fPIC
|
||||
|
||||
lib_LTLIBRARIES = libdfOpenGL.la
|
||||
libdfOpenGL_la_SOURCES = GPU.c primitive_drawing.c fps.c gllog.c cfg.c
|
||||
libdfOpenGL_la_LDFLAGS = -module -avoid-version \
|
||||
-L/usr/X11R6/lib64 -L/usr/X11R6/lib -lX11 -lXxf86vm -lGL -lm
|
||||
|
||||
cfgDFOpenGL_SOURCES = gpucfg-0.1df/main.c
|
||||
cfgDFOpenGL_LDADD = $(GTK2_LIBS) $(GLADE2_LIBS)
|
||||
glade_DATA = gpucfg-0.1df/dfopengl.glade2
|
||||
gladedir = $(datadir)/psemu/
|
||||
EXTRA_DIST = $(glade_DATA)
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .lo .o .obj
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/dfOpenGL/Makefile'; \
|
||||
cd $(top_srcdir) && \
|
||||
$(AUTOMAKE) --gnu plugins/dfOpenGL/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-libLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
p=$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
|
||||
done
|
||||
|
||||
clean-libLTLIBRARIES:
|
||||
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
||||
test "$$dir" != "$$p" || dir=.; \
|
||||
echo "rm -f \"$${dir}/so_locations\""; \
|
||||
rm -f "$${dir}/so_locations"; \
|
||||
done
|
||||
libdfOpenGL.la: $(libdfOpenGL_la_OBJECTS) $(libdfOpenGL_la_DEPENDENCIES)
|
||||
$(libdfOpenGL_la_LINK) -rpath $(libdir) $(libdfOpenGL_la_OBJECTS) $(libdfOpenGL_la_LIBADD) $(LIBS)
|
||||
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
|
||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
|
||||
if test -f $$p \
|
||||
|| test -f $$p1 \
|
||||
; then \
|
||||
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
|
||||
echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
|
||||
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-binPROGRAMS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
|
||||
echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(bindir)/$$f"; \
|
||||
done
|
||||
|
||||
clean-binPROGRAMS:
|
||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
|
||||
echo " rm -f $$p $$f"; \
|
||||
rm -f $$p $$f ; \
|
||||
done
|
||||
cfgDFOpenGL$(EXEEXT): $(cfgDFOpenGL_OBJECTS) $(cfgDFOpenGL_DEPENDENCIES)
|
||||
@rm -f cfgDFOpenGL$(EXEEXT)
|
||||
$(LINK) $(cfgDFOpenGL_OBJECTS) $(cfgDFOpenGL_LDADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GPU.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cfg.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fps.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gllog.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/primitive_drawing.Plo@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
|
||||
|
||||
.c.obj:
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||
|
||||
.c.lo:
|
||||
@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
main.o: gpucfg-0.1df/main.c
|
||||
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT main.o -MD -MP -MF $(DEPDIR)/main.Tpo -c -o main.o `test -f 'gpucfg-0.1df/main.c' || echo '$(srcdir)/'`gpucfg-0.1df/main.c
|
||||
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/main.Tpo $(DEPDIR)/main.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gpucfg-0.1df/main.c' object='main.o' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o main.o `test -f 'gpucfg-0.1df/main.c' || echo '$(srcdir)/'`gpucfg-0.1df/main.c
|
||||
|
||||
main.obj: gpucfg-0.1df/main.c
|
||||
@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT main.obj -MD -MP -MF $(DEPDIR)/main.Tpo -c -o main.obj `if test -f 'gpucfg-0.1df/main.c'; then $(CYGPATH_W) 'gpucfg-0.1df/main.c'; else $(CYGPATH_W) '$(srcdir)/gpucfg-0.1df/main.c'; fi`
|
||||
@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/main.Tpo $(DEPDIR)/main.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gpucfg-0.1df/main.c' object='main.obj' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o main.obj `if test -f 'gpucfg-0.1df/main.c'; then $(CYGPATH_W) 'gpucfg-0.1df/main.c'; else $(CYGPATH_W) '$(srcdir)/gpucfg-0.1df/main.c'; fi`
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
install-gladeDATA: $(glade_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(gladedir)" || $(MKDIR_P) "$(DESTDIR)$(gladedir)"
|
||||
@list='$(glade_DATA)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
f=$(am__strip_dir) \
|
||||
echo " $(gladeDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(gladedir)/$$f'"; \
|
||||
$(gladeDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(gladedir)/$$f"; \
|
||||
done
|
||||
|
||||
uninstall-gladeDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(glade_DATA)'; for p in $$list; do \
|
||||
f=$(am__strip_dir) \
|
||||
echo " rm -f '$(DESTDIR)$(gladedir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(gladedir)/$$f"; \
|
||||
done
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$tags $$unique; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
tags=; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$tags $$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& cd $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) $$here
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
||||
fi; \
|
||||
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA)
|
||||
install-binPROGRAMS: install-libLTLIBRARIES
|
||||
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(gladedir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
|
||||
clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am: install-gladeDATA
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-exec-am: install-binPROGRAMS install-libLTLIBRARIES
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-binPROGRAMS uninstall-gladeDATA \
|
||||
uninstall-libLTLIBRARIES
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
|
||||
clean-generic clean-libLTLIBRARIES clean-libtool ctags \
|
||||
distclean distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-binPROGRAMS \
|
||||
install-data install-data-am install-dvi install-dvi-am \
|
||||
install-exec install-exec-am install-gladeDATA install-html \
|
||||
install-html-am install-info install-info-am \
|
||||
install-libLTLIBRARIES install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags uninstall uninstall-am uninstall-binPROGRAMS \
|
||||
uninstall-gladeDATA uninstall-libLTLIBRARIES
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
|
@ -1,121 +0,0 @@
|
|||
/*
|
||||
PSEmu Plugin Developer Kit Header definition
|
||||
|
||||
(C)1998 Vision Thing
|
||||
|
||||
This file can be used only to develop PSEmu Plugins
|
||||
Other usage is highly prohibited.
|
||||
*/
|
||||
|
||||
|
||||
// IMPORTANT!!!
|
||||
// This file will be used by PSEmu version >= 1.0.3
|
||||
// so, please, develop Plugins w/o using this header file now
|
||||
// if you want to add return codes (any) just drop mail to
|
||||
// duddie@psemu.com
|
||||
|
||||
#ifndef _PSEMU_PLUGIN_DEFS_H
|
||||
#define _PSEMU_PLUGIN_DEFS_H
|
||||
|
||||
|
||||
// header version
|
||||
#define _PPDK_HEADER_VERSION 1
|
||||
|
||||
#define PLUGIN_VERSION 1
|
||||
|
||||
// plugin type returned by PSEgetLibType (types can be merged if plugin is multi type!)
|
||||
#define PSE_LT_CDR 1
|
||||
#define PSE_LT_GPU 2
|
||||
#define PSE_LT_SPU 4
|
||||
#define PSE_LT_PAD 8
|
||||
|
||||
|
||||
// every function in DLL if completed sucessfully should return this value
|
||||
#define PSE_ERR_SUCCESS 0
|
||||
// undefined error but fatal one, that kills all functionality
|
||||
#define PSE_ERR_FATAL -1
|
||||
|
||||
|
||||
// XXX_Init return values
|
||||
// Those return values apply to all libraries
|
||||
|
||||
// initialization went OK
|
||||
#define PSE_INIT_ERR_SUCCESS 0
|
||||
|
||||
// this driver is not configured
|
||||
#define PSE_INIT_ERR_NOTCONFIGURED -2
|
||||
|
||||
// this driver can not operate properly on this hardware or hardware is not detected
|
||||
#define PSE_INIT_ERR_NOHARDWARE -3
|
||||
|
||||
|
||||
/* GPU PlugIn */
|
||||
|
||||
|
||||
// GPU_Test return values
|
||||
|
||||
// sucess, everything configured, and went OK.
|
||||
#define PSE_GPU_ERR_SUCCESS 0
|
||||
|
||||
// this driver is not configured
|
||||
#define PSE_GPU_ERR_NOTCONFIGURED 1
|
||||
|
||||
|
||||
|
||||
// GPU_Query - will be implemented in v2
|
||||
/*
|
||||
typedef struct
|
||||
{
|
||||
unsigned long flags;
|
||||
unsigned long status;
|
||||
HWND window;
|
||||
unsigned char reserved[100];
|
||||
} gpuQueryS;
|
||||
*/
|
||||
// gpuQueryS.flags
|
||||
// this driver requests windowed mode,
|
||||
#define PSE_GPU_FLAGS_WINDOWED 1
|
||||
|
||||
// gpuQueryS.status
|
||||
// this driver cannot operate in this windowed mode
|
||||
#define PSE_GPU_STATUS_WINDOWWRONG 1
|
||||
|
||||
// GPU_Query End - will be implemented in v2
|
||||
|
||||
|
||||
/* CDR PlugIn */
|
||||
|
||||
// CDR_Test return values
|
||||
|
||||
// sucess, everything configured, and went OK.
|
||||
#define PSE_CDR_ERR_SUCCESS 0
|
||||
|
||||
// ERRORS
|
||||
#define PSE_CDR_ERR -40
|
||||
// this driver is not configured
|
||||
#define PSE_CDR_ERR_NOTCONFIGURED PSE_CDR_ERR - 0
|
||||
// if this driver is unable to read data from medium
|
||||
#define PSE_CDR_ERR_NOREAD PSE_CDR_ERR - 1
|
||||
|
||||
// WARNINGS
|
||||
#define PSE_CDR_WARN 40
|
||||
// if this driver emulates lame mode ie. can read only 2048 tracks and sector header is emulated
|
||||
// this might happen to CDROMS that do not support RAW mode reading - surelly it will kill many games
|
||||
#define PSE_CDR_WARN_LAMECD PSE_CDR_WARN + 0
|
||||
|
||||
|
||||
|
||||
|
||||
/* SPU PlugIn */
|
||||
|
||||
// retricted info (now!)
|
||||
|
||||
|
||||
|
||||
|
||||
/* PAD PlugIn */
|
||||
|
||||
// not yet finished
|
||||
|
||||
|
||||
#endif // _PSEMU_PLUGIN_DEFS_H
|
|
@ -1,31 +0,0 @@
|
|||
emulation:
|
||||
-opaque texture pixels
|
||||
-something better than my 0xfe alpha hack
|
||||
-finish implementing, not just sprite
|
||||
-masked drawing (silent hill)
|
||||
-subtractive blending?
|
||||
-VRAM read
|
||||
-texture mirroring
|
||||
-use software polygon clip test, not opengl clipping
|
||||
-Texture window: repeating instead of scaling - difficult!
|
||||
-lines, dots as 1 unit width rectangle
|
||||
-check for clut changes
|
||||
|
||||
optimization/features:
|
||||
-change 11bit gpu integers to union bitfields - probably won't help much, but hey, it'll be elegant :)
|
||||
-fix psx texture pixel co-ords so we can turn on bilinear filtering and antialiasing.
|
||||
-rewrite texturing
|
||||
-check vram uploads for updates to subtexture
|
||||
-rewrite (and fix) blending
|
||||
-render to texture for psx front/back buffer
|
||||
-implement black & STP pixels as stencil
|
||||
-needed for masked drawing anyway...
|
||||
-(would this also fix FF7 outlines when bilinear filtered textures are enabled?)
|
||||
-upscale textures
|
||||
-pixel shaders
|
||||
|
||||
Pcsx:
|
||||
-save states
|
||||
-fullscreen toggle
|
||||
-gui config
|
||||
-fps display
|
|
@ -1,112 +0,0 @@
|
|||
#include "cfg.h"
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
|
||||
extern GpuConfS gpuConfig;
|
||||
char * pConfigFile=NULL;
|
||||
|
||||
#define GetValue(name, var) \
|
||||
p = strstr(pB, name); \
|
||||
if (p != NULL) { \
|
||||
p+=strlen(name); \
|
||||
while ((*p == ' ') || (*p == '=')) p++; \
|
||||
if (*p != '\n') var = atoi(p); \
|
||||
}
|
||||
|
||||
void readconfig()
|
||||
{
|
||||
struct stat buf;
|
||||
FILE *in;char t[256];int len, size;
|
||||
char * pB, * p;
|
||||
|
||||
if(pConfigFile)
|
||||
strcpy(t,pConfigFile);
|
||||
else
|
||||
{
|
||||
strcpy(t,"dfopengl.cfg");
|
||||
in = fopen(t,"rb");
|
||||
if (!in)
|
||||
{
|
||||
strcpy(t,"cfg/dfopengl.cfg");
|
||||
in = fopen(t,"rb");
|
||||
if(!in) sprintf(t,"%s/.pcsx/plugins/dfopengl.cfg",getenv("HOME"));
|
||||
else fclose(in);
|
||||
}
|
||||
else fclose(in);
|
||||
}
|
||||
|
||||
if (stat(t, &buf) == -1) return;
|
||||
size = buf.st_size;
|
||||
|
||||
in = fopen(t,"rb");
|
||||
if (!in) return;
|
||||
|
||||
pB=(char *)malloc(size);
|
||||
memset(pB,0,size);
|
||||
|
||||
len = fread(pB, 1, size, in);
|
||||
fclose(in);
|
||||
|
||||
gpuConfig.bFullscreen=FALSE;
|
||||
gpuConfig.bBilinear=FALSE;
|
||||
gpuConfig.nMaxTextures=64;
|
||||
gpuConfig.bWireFrame=FALSE;
|
||||
gpuConfig.bAntialias=FALSE;
|
||||
gpuConfig.bClearScreen=FALSE;
|
||||
gpuConfig.FrameLimit=TRUE;
|
||||
gpuConfig.windowX=1024;
|
||||
gpuConfig.windowY=768;
|
||||
|
||||
GetValue("Fullscreen", gpuConfig.bFullscreen);
|
||||
GetValue("Bilinear", gpuConfig.bBilinear);
|
||||
GetValue("MaxTextures", gpuConfig.nMaxTextures);
|
||||
GetValue("Wireframe", gpuConfig.bWireFrame);
|
||||
GetValue("Antialias", gpuConfig.bAntialias);
|
||||
GetValue("Clearscreen", gpuConfig.bClearScreen);
|
||||
GetValue("FrameLimit", gpuConfig.FrameLimit);
|
||||
GetValue("windowX", gpuConfig.windowX);
|
||||
GetValue("windowY", gpuConfig.windowY);
|
||||
|
||||
|
||||
free(pB);
|
||||
|
||||
}
|
||||
|
||||
void writeconfig()
|
||||
{
|
||||
}
|
||||
|
||||
void ExecCfg(char *arg) {
|
||||
char cfg[256];
|
||||
struct stat buf;
|
||||
|
||||
strcpy(cfg, "./cfgDFOpenGL");
|
||||
if (stat(cfg, &buf) != -1) {
|
||||
strcat(cfg, " ");
|
||||
strcat(cfg, arg);
|
||||
system(cfg);
|
||||
return;
|
||||
}
|
||||
|
||||
strcpy(cfg, "./cfg/cfgDFOpenGL");
|
||||
if (stat(cfg, &buf) != -1) {
|
||||
strcat(cfg, " ");
|
||||
strcat(cfg, arg);
|
||||
system(cfg);
|
||||
return;
|
||||
}
|
||||
|
||||
sprintf(cfg, "%s/.pcsx/plugins/cfg/cfgDFOpenGL", getenv("HOME"));
|
||||
if (stat(cfg, &buf) != -1) {
|
||||
strcat(cfg, " ");
|
||||
strcat(cfg, arg);
|
||||
system(cfg);
|
||||
return;
|
||||
}
|
||||
|
||||
printf("ERROR: cfgDFOpenGL file not found!\n");
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
#ifndef _GPU_CFG_H_
|
||||
#define _GPU_CFG_H_
|
||||
|
||||
#include "gpu_i.h"
|
||||
|
||||
void readconfig(void);
|
||||
void writeconfig(void);
|
||||
|
||||
|
||||
#endif // _GPU_CFG_H_
|
|
@ -1,41 +0,0 @@
|
|||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#include "gpu_i.h"
|
||||
|
||||
static const double NTSC = 100000000/5994;
|
||||
static const double PAL = 100000000/5000;
|
||||
|
||||
static double lastvsync = 0;
|
||||
#define FRAMESAMPLES 10
|
||||
|
||||
double GetTime() //in microseconds
|
||||
{
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv, 0); // well, maybe there are better ways
|
||||
return (double)tv.tv_sec * 1000000 + tv.tv_usec; // to do that, but at least it works
|
||||
}
|
||||
|
||||
void waitforrealtime()
|
||||
{
|
||||
double currenttime,tickstogo;
|
||||
double target;
|
||||
|
||||
currenttime = GetTime();
|
||||
|
||||
if (currenttime < lastvsync + 1000000)
|
||||
target = lastvsync + (psxDisp.pal ? PAL : NTSC);
|
||||
else
|
||||
target = currenttime;
|
||||
|
||||
lastvsync = target;
|
||||
|
||||
while (currenttime < target)
|
||||
{
|
||||
tickstogo = target - currenttime;
|
||||
if (tickstogo >= 500.0f)
|
||||
{
|
||||
usleep((useconds_t)tickstogo-200); //usleep in microseconds
|
||||
}
|
||||
currenttime = GetTime();
|
||||
}
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
// comment next line and all gllog(xx,....) will go to gpulog.txt (enable logging)
|
||||
#define _COMMENTLOG
|
||||
|
||||
void gllog(int level, char *fmt,...)
|
||||
{
|
||||
#ifndef _COMMENTLOG
|
||||
static FILE *out=NULL;
|
||||
static char tmpbuf[200], tmpbufold[200];
|
||||
|
||||
static int repeatcount=0;
|
||||
|
||||
if(out==NULL)
|
||||
{
|
||||
// open output file !
|
||||
if((out=fopen("gpulog.txt","wb"))==NULL)exit(1);
|
||||
}
|
||||
// file already opened
|
||||
|
||||
va_list marker;
|
||||
va_start(marker,fmt);
|
||||
vsprintf(tmpbuf, fmt, marker );
|
||||
va_end(marker);
|
||||
|
||||
// we dont log the same line multiple times
|
||||
if(strcmp(tmpbufold,tmpbuf)==0)
|
||||
{
|
||||
repeatcount++;
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
// copy the new line to the old buffer
|
||||
strcpy(tmpbufold,tmpbuf);
|
||||
if(repeatcount>0)
|
||||
{
|
||||
fprintf(out,"Last message repeated %d times\n",repeatcount);
|
||||
repeatcount=0;
|
||||
}
|
||||
fprintf(out,"Level: %d msg: %s\n",level,tmpbuf);
|
||||
fflush(out);
|
||||
}
|
||||
#endif
|
||||
}
|
|
@ -1,208 +0,0 @@
|
|||
#ifndef _GPU_INTERNALS_H
|
||||
#define _GPU_INTERNALS_H
|
||||
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
#include <GL/glx.h>
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glext.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef GPU_INTERNALS_DEF
|
||||
#define GPUVAR_DEF
|
||||
#else
|
||||
#define GPUVAR_DEF extern
|
||||
#endif
|
||||
|
||||
typedef int bool;
|
||||
#define FALSE 0
|
||||
#define TRUE 1
|
||||
|
||||
typedef uint8_t u8;
|
||||
typedef uint16_t u16;
|
||||
typedef uint32_t u32;
|
||||
typedef uint64_t u64;
|
||||
|
||||
typedef int8_t s8;
|
||||
typedef int16_t s16;
|
||||
typedef int32_t s32;
|
||||
typedef int64_t s64;
|
||||
|
||||
void gllog(int level, char *fmt,...);
|
||||
|
||||
extern unsigned short lutBGR2RGB[65536];
|
||||
|
||||
extern unsigned short textBuf[];
|
||||
|
||||
extern int32_t GPUstatusRet;
|
||||
extern int32_t GPUInfoVals[16];
|
||||
|
||||
#define INFO_TW 0
|
||||
#define INFO_DRAWSTART 1
|
||||
#define INFO_DRAWEND 2
|
||||
#define INFO_DRAWOFF 3
|
||||
|
||||
#define GPUSTATUS_ODDLINES 0x80000000
|
||||
#define GPUSTATUS_DMABITS 0x60000000 // Two bits
|
||||
#define GPUSTATUS_READYFORCOMMANDS 0x10000000
|
||||
#define GPUSTATUS_READYFORVRAM 0x08000000
|
||||
#define GPUSTATUS_IDLE 0x04000000
|
||||
#define GPUSTATUS_DISPLAYDISABLED 0x00800000
|
||||
#define GPUSTATUS_INTERLACED 0x00400000
|
||||
#define GPUSTATUS_RGB24 0x00200000
|
||||
#define GPUSTATUS_PAL 0x00100000
|
||||
#define GPUSTATUS_DOUBLEHEIGHT 0x00080000
|
||||
#define GPUSTATUS_WIDTHBITS 0x00070000 // Three bits
|
||||
#define GPUSTATUS_MASKENABLED 0x00001000
|
||||
#define GPUSTATUS_MASKDRAWN 0x00000800
|
||||
#define GPUSTATUS_DRAWINGALLOWED 0x00000400
|
||||
#define GPUSTATUS_DITHER 0x00000200
|
||||
|
||||
#define GPUIsBusy (GPUstatusRet &= ~GPUSTATUS_IDLE)
|
||||
#define GPUIsIdle (GPUstatusRet |= GPUSTATUS_IDLE)
|
||||
|
||||
#define GPUIsNotReadyForCommands (GPUstatusRet &= ~GPUSTATUS_READYFORCOMMANDS)
|
||||
#define GPUIsReadyForCommands (GPUstatusRet |= GPUSTATUS_READYFORCOMMANDS)
|
||||
|
||||
extern unsigned char psxVub[];
|
||||
extern signed char *psxVsb;
|
||||
extern unsigned short *psxVuw;
|
||||
extern signed short *psxVsw;
|
||||
extern uint32_t *psxVul;
|
||||
extern int32_t *psxVsl;
|
||||
|
||||
|
||||
typedef struct {
|
||||
uint32_t x, y;
|
||||
uint32_t colormode;
|
||||
uint32_t abr; //alpha blending
|
||||
uint32_t mirror;
|
||||
} TextureState_t;
|
||||
|
||||
extern TextureState_t texinfo;
|
||||
|
||||
typedef struct VRAMLOADTTAG
|
||||
{
|
||||
short x;
|
||||
short y;
|
||||
short w;
|
||||
short h;
|
||||
short curx;
|
||||
short cury;
|
||||
uint32_t* extratarget;
|
||||
bool enabled;
|
||||
} VRAMLoad_t;
|
||||
|
||||
extern VRAMLoad_t vramWrite;
|
||||
|
||||
struct PSXDisplay_t {
|
||||
short modeX;
|
||||
short modeY;
|
||||
short startX;
|
||||
short startY;
|
||||
bool disabled;
|
||||
bool colordepth24;
|
||||
bool interlaced;
|
||||
bool pal;
|
||||
|
||||
//Has to do with television hsync & vsync?
|
||||
//1 Y line = 1 vtrace? (typical 16 to 256 (32 to 512))
|
||||
//X (typical 608 to 3168)
|
||||
short rangeX1;
|
||||
short rangeY1;
|
||||
short rangeX2;
|
||||
short rangeY2;
|
||||
|
||||
bool changed;
|
||||
};
|
||||
extern struct PSXDisplay_t psxDisp, oldpsxDisp;
|
||||
|
||||
struct PSXDraw_t {
|
||||
short offsetX;
|
||||
short offsetY;
|
||||
short clipX1;
|
||||
short clipX2;
|
||||
short clipY1;
|
||||
short clipY2;
|
||||
short texwinX1;
|
||||
short texwinY1;
|
||||
short texwinX2;
|
||||
short texwinY2;
|
||||
bool texwinenabled;
|
||||
bool enabled;
|
||||
bool setmask;
|
||||
bool testmask;
|
||||
};
|
||||
extern struct PSXDraw_t psxDraw;
|
||||
|
||||
extern short dispWidths[8];
|
||||
|
||||
extern int32_t dispLace;
|
||||
extern int32_t dispLaceNew;
|
||||
extern int32_t imageTransfer;
|
||||
extern int32_t drawLace;
|
||||
extern int32_t drawingLines;
|
||||
|
||||
extern short imTYc,imTXc,imTY,imTX;
|
||||
extern int32_t imSize;
|
||||
extern short imageX0,imageX1;
|
||||
extern short imageY0,imageY1;
|
||||
|
||||
|
||||
extern int32_t newTextX0,newTextX1,newTextX2,newTextX3;
|
||||
extern int32_t newTextY0,newTextY1,newTextY2,newTextY3;
|
||||
extern unsigned short textBuf[];
|
||||
|
||||
union uPointers{
|
||||
void *v;
|
||||
unsigned char *b;
|
||||
unsigned short *w;
|
||||
uint32_t *d;
|
||||
char *c;
|
||||
short *s;
|
||||
int32_t *l;
|
||||
};
|
||||
extern unsigned char psxVub[];
|
||||
extern signed char *psxVsb;
|
||||
extern unsigned short *psxVuw;
|
||||
extern signed short *psxVsw;
|
||||
extern uint32_t *psxVul;
|
||||
extern int32_t *psxVsl;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
bool bFullscreen;
|
||||
bool bBilinear;
|
||||
int nMaxTextures;
|
||||
bool bWireFrame;
|
||||
bool bAntialias;
|
||||
bool bClearScreen;
|
||||
bool FrameLimit;
|
||||
short windowX;
|
||||
short windowY;
|
||||
} GpuConfS;
|
||||
extern GpuConfS gpuConfig;
|
||||
|
||||
extern short windowX, windowY;
|
||||
|
||||
extern unsigned char texshade[256];
|
||||
extern uint32_t image[65536];
|
||||
extern uint32_t torgba[65536];
|
||||
|
||||
|
||||
struct texturecache{
|
||||
int32_t textAddrX;
|
||||
int32_t textAddrY;
|
||||
int32_t textTP;
|
||||
int32_t clutP;
|
||||
GLuint id;
|
||||
bool Update;
|
||||
};
|
||||
//#define maxtextures 32
|
||||
extern struct texturecache texture[64];
|
||||
extern GLuint xferTexture16;
|
||||
extern GLuint xferTexture24;
|
||||
extern GLuint nullid;
|
||||
#define nullclutP (1024*512+1)
|
||||
|
||||
|
||||
#endif // _GPU_INTERNALS_H
|
|
@ -1,272 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
||||
<!--Generated with glade3 3.1.5 on Sun Mar 16 17:26:02 2008 by hoshy@mobilbox-->
|
||||
<glade-interface>
|
||||
<widget class="GtkWindow" id="CfgWnd">
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox1">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="spacing">6</property>
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox2">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label1">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes"><b>OpenGL Configuration Options</b></property>
|
||||
<property name="use_markup">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkAlignment" id="alignment1">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="left_padding">12</property>
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox4">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkCheckButton" id="chk_fullscreen">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">Display Fullscreen</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkCheckButton" id="chk_bilinear">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">Bilinear</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox1">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label2">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">Maximum Textures</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkEntry" id="te_maxtextures">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkCheckButton" id="chk_wireframe">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">Wireframe</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">3</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkCheckButton" id="chk_antialias">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">Antialias</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">4</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkCheckButton" id="chk_clearscreen">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">Clearscreen</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">5</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkCheckButton" id="chk_framelimit">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">Framelimit</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">6</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox3">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label4">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">WindowX</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkEntry" id="te_windowX">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">7</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox4">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label5">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">WindowY</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkEntry" id="te_windowY">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">8</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
<child>
|
||||
<widget class="GtkHButtonBox" id="hbuttonbox1">
|
||||
<property name="visible">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||
<child>
|
||||
<widget class="GtkButton" id="btn_close">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<property name="label" translatable="yes">gtk-close</property>
|
||||
<property name="use_stock">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="padding">6</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="padding">6</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
</glade-interface>
|
|
@ -1,261 +0,0 @@
|
|||
#include <gtk/gtk.h>
|
||||
#include <glade/glade.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#define CONFIG_FILENAME "dfopengl.cfg"
|
||||
#define READBINARY "rb"
|
||||
#define WRITEBINARY "wb"
|
||||
|
||||
void on_config_clicked (GtkWidget *widget, gpointer user_data)
|
||||
{
|
||||
gtk_widget_destroy (widget);
|
||||
exit (0);
|
||||
}
|
||||
|
||||
void on_about_clicked (GtkWidget *widget, gpointer user_data)
|
||||
{
|
||||
gtk_widget_destroy (widget);
|
||||
exit (0);
|
||||
}
|
||||
|
||||
void SetCfgVal(char * pB,char * pE,int val)
|
||||
{
|
||||
char * p, *ps, *pC;char t[32];
|
||||
|
||||
sprintf(t,"%d",val);
|
||||
|
||||
p=strstr(pB,pE);
|
||||
if(p)
|
||||
{
|
||||
p=strstr(p,"=");
|
||||
if(!p) return;
|
||||
p++;
|
||||
while(*p && *p!='\n' && (*p<'0' || *p>'9')) p++;
|
||||
if(*p==0 || *p=='\n') return;
|
||||
ps=p;
|
||||
while(*p>='0' && *p<='9') p++;
|
||||
pC=(char *)malloc(32767);
|
||||
strcpy(pC,p);
|
||||
strcpy(ps,t);
|
||||
strcat(pB,pC);
|
||||
free(pC);
|
||||
}
|
||||
else
|
||||
{
|
||||
strcat(pB,pE);
|
||||
strcat(pB," = ");
|
||||
strcat(pB,t);
|
||||
strcat(pB,"\n");
|
||||
}
|
||||
}
|
||||
|
||||
void save_config (GtkWidget *widget, gpointer user_data)
|
||||
{
|
||||
GladeXML *xml;
|
||||
char cfg[255];
|
||||
FILE *in;
|
||||
int len, val;
|
||||
char *pB;
|
||||
|
||||
pB=(char *)malloc(32767);
|
||||
memset(pB,0,32767);
|
||||
|
||||
strcpy(cfg, CONFIG_FILENAME);
|
||||
|
||||
/* ADB TODO Why do we read this in just to replace it again? */
|
||||
in = fopen(cfg,READBINARY);
|
||||
if(in)
|
||||
{
|
||||
len = fread(pB, 1, 32767, in);
|
||||
fclose(in);
|
||||
}
|
||||
|
||||
xml = (GladeXML*) user_data;
|
||||
|
||||
val = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (glade_xml_get_widget (xml, "chk_fullscreen")));
|
||||
SetCfgVal(pB,"\nFullscreen",val);
|
||||
val = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (glade_xml_get_widget (xml, "chk_bilinear")));
|
||||
SetCfgVal(pB,"\nBilinear",val);
|
||||
val = atoi (gtk_entry_get_text (GTK_ENTRY (glade_xml_get_widget (xml, "te_maxtextures"))));
|
||||
SetCfgVal(pB,"\nMaxTextures",val);
|
||||
val = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (glade_xml_get_widget (xml, "chk_wireframe")));
|
||||
SetCfgVal(pB,"\nWireframe",val);
|
||||
val = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (glade_xml_get_widget (xml, "chk_antialias")));
|
||||
SetCfgVal(pB,"\nAntialias",val);
|
||||
val = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (glade_xml_get_widget (xml, "chk_clearscreen")));
|
||||
SetCfgVal(pB,"\nClearscreen",val);
|
||||
val = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (glade_xml_get_widget (xml, "chk_framelimit")));
|
||||
SetCfgVal(pB,"\nFrameLimit",val);
|
||||
val = atoi (gtk_entry_get_text (GTK_ENTRY (glade_xml_get_widget (xml, "te_windowX"))));
|
||||
SetCfgVal(pB,"\nwindowX",val);
|
||||
val = atoi (gtk_entry_get_text (GTK_ENTRY (glade_xml_get_widget (xml, "te_windowY"))));
|
||||
SetCfgVal(pB,"\nwindowY",val);
|
||||
|
||||
/* Write to the config file */
|
||||
if((in=fopen(cfg, WRITEBINARY))!=NULL) {
|
||||
fwrite(pB,strlen(pB),1,in);
|
||||
fclose(in);
|
||||
}
|
||||
free(pB);
|
||||
|
||||
gtk_widget_destroy (glade_xml_get_widget (xml, "CfgWnd"));
|
||||
|
||||
/* Close the window and exit control from the plugin */
|
||||
exit (0);
|
||||
}
|
||||
|
||||
/* This function checks for the value being outside the accepted range,
|
||||
and returns the appropriate boundary value */
|
||||
int set_limit (char *p, int len, int lower, int upper)
|
||||
{
|
||||
int val = 0;
|
||||
|
||||
if (p)
|
||||
val = atoi(p + len);
|
||||
/* printf("Checking for val %d greater than %d and lower than %d, ", val, lower, upper);*/
|
||||
if (val < lower)
|
||||
val = lower;
|
||||
if (val > upper)
|
||||
val = upper;
|
||||
/* printf ("val is now %d\n", val);*/
|
||||
return val;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
GtkWidget *widget;
|
||||
GladeXML *xml;
|
||||
FILE *in;
|
||||
char t[256];
|
||||
int len;
|
||||
char * pB, * p;
|
||||
char cfg[255];
|
||||
char tempstr[128];
|
||||
|
||||
if (argc!=2) {
|
||||
printf("Usage: cfgOpenGL {ABOUT | CFG}\n");
|
||||
return 0;
|
||||
}
|
||||
if(strcmp(argv[1],"CFG")!=0 && strcmp(argv[1],"ABOUT")!=0) {
|
||||
printf("Usage: cfgOpenGL {ABOUT | CFG}\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
gtk_set_locale ();
|
||||
gtk_init (&argc, &argv);
|
||||
|
||||
if (strcmp(argv[1], "ABOUT") == 0) {
|
||||
widget = gtk_about_dialog_new ();
|
||||
gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (widget), "PCSX OpenGL Video Plugin");
|
||||
gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (widget), "1.0");
|
||||
|
||||
g_signal_connect_data(GTK_OBJECT(widget), "response",
|
||||
GTK_SIGNAL_FUNC(on_about_clicked), NULL, NULL, G_CONNECT_AFTER);
|
||||
|
||||
gtk_widget_show (widget);
|
||||
gtk_main();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
xml = glade_xml_new(DATADIR "dfopengl.glade2", "CfgWnd", NULL);
|
||||
if (!xml) {
|
||||
g_warning("We could not load the interface!");
|
||||
return -1;
|
||||
}
|
||||
|
||||
strcpy(cfg, CONFIG_FILENAME);
|
||||
|
||||
in = fopen(cfg, READBINARY);
|
||||
if(in) {
|
||||
pB = (char *)malloc(32767);
|
||||
memset(pB, 0, 32767);
|
||||
len = fread(pB, 1, 32767, in);
|
||||
fclose(in);
|
||||
} else {
|
||||
pB = 0;
|
||||
printf("Couldn't find config file %s - creating new file\n", cfg);
|
||||
}
|
||||
|
||||
/* Set default values */
|
||||
int bFullscreen = FALSE;
|
||||
int bBilinear = FALSE;
|
||||
int nMaxTextures = 64;
|
||||
int bWireFrame = FALSE;
|
||||
int bAntialias = FALSE;
|
||||
int bClearScreen = FALSE;
|
||||
int bFrameLimit = TRUE;
|
||||
short nwindowX = 1024;
|
||||
short nwindowY = 768;
|
||||
|
||||
if (pB) {
|
||||
strcpy(t,"\nFullscreen");p=strstr(pB,t);if(p) {p=strstr(p,"=");len=1;}
|
||||
bFullscreen = set_limit (p, len, 0, 1);
|
||||
|
||||
strcpy(t,"\nBilinear");p=strstr(pB,t);if(p) {p=strstr(p,"=");len=1;}
|
||||
bBilinear = set_limit (p, len, 0, 1);
|
||||
|
||||
strcpy(t,"\nMaxTextures");p=strstr(pB,t);if(p) {p=strstr(p,"=");len=1;}
|
||||
nMaxTextures = set_limit (p, len, 0, 128); /* TODO - What should the limit be? */
|
||||
printf("Max Textures is %d\n", nMaxTextures);
|
||||
|
||||
strcpy(t,"\nWireframe");p=strstr(pB,t);if(p) {p=strstr(p,"=");len=1;}
|
||||
bWireFrame = set_limit (p, len, 0, 1);
|
||||
|
||||
strcpy(t,"\nAntialias");p=strstr(pB,t);if(p) {p=strstr(p,"=");len=1;}
|
||||
bAntialias = set_limit (p, len, 0, 1);
|
||||
|
||||
strcpy(t,"\nClearscreen");p=strstr(pB,t);if(p) {p=strstr(p,"=");len=1;}
|
||||
bClearScreen = set_limit (p, len, 0, 1);
|
||||
|
||||
strcpy(t,"\nFrameLimit");p=strstr(pB,t);if(p) {p=strstr(p,"=");len=1;}
|
||||
bFrameLimit = set_limit (p, len, 0, 1);
|
||||
|
||||
strcpy(t,"\nwindowX");p=strstr(pB,t);if(p) {p=strstr(p,"=");len=1;}
|
||||
nwindowX = set_limit (p, len, 0, 1600); /* TODO - limit ? */
|
||||
|
||||
strcpy(t,"\nwindowY");p=strstr(pB,t);if(p) {p=strstr(p,"=");len=1;}
|
||||
nwindowY = set_limit (p, len, 0, 1200); /* TODO - limit ? */
|
||||
|
||||
free(pB);
|
||||
}
|
||||
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (glade_xml_get_widget(xml, "chk_fullscreen")), bFullscreen);
|
||||
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (glade_xml_get_widget(xml, "chk_bilinear")), bBilinear);
|
||||
|
||||
snprintf (tempstr, 10, "%d", nMaxTextures);
|
||||
gtk_entry_set_text (GTK_ENTRY (glade_xml_get_widget(xml, "te_maxtextures")), tempstr);
|
||||
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (glade_xml_get_widget(xml, "chk_wireframe")), bWireFrame);
|
||||
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON (glade_xml_get_widget(xml, "chk_antialias")), bAntialias);
|
||||
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON (glade_xml_get_widget(xml, "chk_clearscreen")), bClearScreen);
|
||||
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON (glade_xml_get_widget(xml, "chk_framelimit")), bFrameLimit);
|
||||
|
||||
snprintf (tempstr, 10, "%d", nwindowX);
|
||||
gtk_entry_set_text (GTK_ENTRY (glade_xml_get_widget(xml, "te_windowX")), tempstr);
|
||||
|
||||
snprintf (tempstr, 10, "%d", nwindowY);
|
||||
gtk_entry_set_text (GTK_ENTRY (glade_xml_get_widget(xml, "te_windowY")), tempstr);
|
||||
|
||||
widget = glade_xml_get_widget(xml, "CfgWnd");
|
||||
g_signal_connect_data(GTK_OBJECT(widget), "delete_event",
|
||||
GTK_SIGNAL_FUNC(on_config_clicked), NULL, NULL, G_CONNECT_AFTER);
|
||||
gtk_widget_show_all (widget);
|
||||
|
||||
widget = glade_xml_get_widget(xml, "btn_close");
|
||||
g_signal_connect_data(GTK_OBJECT(widget), "clicked",
|
||||
GTK_SIGNAL_FUNC(save_config), xml, NULL, G_CONNECT_AFTER);
|
||||
|
||||
gtk_main ();
|
||||
return 0;
|
||||
}
|
|
@ -1,32 +0,0 @@
|
|||
CC = gcc
|
||||
LD = gcc
|
||||
|
||||
PLUGIN = libdfOpenGL.so
|
||||
OBJECTS = GPU.o primitive_drawing.o fps.o gllog.o
|
||||
#CFLAGS += `gtk-config --cflags`
|
||||
CFLAGS = -g -O0 -Wall -fPIC
|
||||
#CFGLIBS += `gtk-config --libs`
|
||||
LIBS += -L/usr/lib -lXxf86vm -lGL -lm
|
||||
|
||||
%.o : %.c
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
all: $(OBJECTS)
|
||||
$(LD) -fPIC $(OBJECTS) -g -shared -o $(PLUGIN) $(LIBS)
|
||||
|
||||
#cfg: ${CFGOBJS}
|
||||
# $(LD) $(CFGOBJS) -g -o $(CFG) $(CFGLIBS)
|
||||
|
||||
release: all
|
||||
strip $(PLUGIN)
|
||||
# strip $(CFG)
|
||||
# cp $(PLUGIN).$(NUMBER) ../$(PLUGIN).$(NUMBER)
|
||||
# cp $(CFG) ../$(CFG)
|
||||
|
||||
clean:
|
||||
rm -f *.o *.a *.so $(CFG)
|
||||
|
||||
|
||||
# Dependencies
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -1,3 +0,0 @@
|
|||
|
||||
extern unsigned char primTableC[256];
|
||||
extern void (*primTableJ[256])(unsigned char *);
|
|
@ -102,7 +102,6 @@ CPPFLAGS = @CPPFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DFOPENGL = @DFOPENGL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
|
@ -161,6 +160,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PEOPSXGL = @PEOPSXGL@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POSUB = @POSUB@
|
||||
RANLIB = @RANLIB@
|
||||
|
|
|
@ -105,7 +105,6 @@ CPPFLAGS = @CPPFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DFOPENGL = @DFOPENGL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
|
@ -164,6 +163,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PEOPSXGL = @PEOPSXGL@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POSUB = @POSUB@
|
||||
RANLIB = @RANLIB@
|
||||
|
|
|
@ -112,7 +112,6 @@ CPPFLAGS = @CPPFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DFOPENGL = @DFOPENGL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
|
@ -171,6 +170,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PEOPSXGL = @PEOPSXGL@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POSUB = @POSUB@
|
||||
RANLIB = @RANLIB@
|
||||
|
|
|
@ -112,7 +112,6 @@ CPPFLAGS = @CPPFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DFOPENGL = @DFOPENGL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
|
@ -171,6 +170,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PEOPSXGL = @PEOPSXGL@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POSUB = @POSUB@
|
||||
RANLIB = @RANLIB@
|
||||
|
|
|
@ -103,7 +103,6 @@ CPPFLAGS = @CPPFLAGS@
|
|||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DFOPENGL = @DFOPENGL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
|
@ -162,6 +161,7 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
|||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PEOPSXGL = @PEOPSXGL@
|
||||
PKG_CONFIG = @PKG_CONFIG@
|
||||
POSUB = @POSUB@
|
||||
RANLIB = @RANLIB@
|
||||
|
|
Loading…
Reference in New Issue