Commit graph

74 commits

Author SHA1 Message Date
Richard Goedeken
df69329d51 fixed warnings due to changes for win32 build. update makefile to reflect main.cpp file renamed to glitchmain.cpp 2013-06-01 09:27:33 -07:00
richard42
56f2b7ef85 1. Update msvc11 project file to visual studio 2012 (msvc11)
2. fixed warnings and errors in vs2012
2013-06-01 08:07:39 -07:00
Richard Goedeken
6cf1425a79 1. check Core API versions for Video Extension and Config to ensure compatibility (all video plugin should do this)
2. Update video extension API version to 3.0.0
   - add extra 0 to CoreVideo_SetVideoMode() call, to signify that this plugin does not support a resizable window
3. Update video plugin API version to 2.2.0, add ResizeVideoOutput() function which doesn't do anything
2013-05-26 23:02:01 -07:00
Sven Eckelmann
c0e97a854c Don't allow rdp_loadblock to write outside of tmem when doing the memory copy 2013-05-20 13:12:03 +02:00
Sven Eckelmann
4150e0be1e Correctly calculate swprintf max string size instead of buffer size 2013-05-19 11:53:52 +02:00
Sven Eckelmann
386a9abd9a Add support for windows msvcrt.dll's swprintf through mingw 2013-05-12 11:46:28 +02:00
Sven Eckelmann
409e289580 Allow to disable filter threading for systems without std::thread support 2013-05-12 10:50:26 +02:00
Sven Eckelmann
ca4ceb3c76 Disable (not working) texture dumping to reduce the conversion effort 2013-05-11 16:14:30 +02:00
Sven Eckelmann
fda53261bb Replace Boost::Thread dependency with standard C++ functionality 2013-05-11 15:34:49 +02:00
Sven Eckelmann
1e807cc2e5 Replace Boost::Format dependency with standard C++ functionality 2013-05-11 15:28:10 +02:00
Richard Goedeken
794226a274 fixed compiler warnings 2013-04-21 17:15:04 -07:00
Sven Eckelmann
d8bc55ce2c Remove warning about wxDynamicLibrary
The Glitch64 library is now part of glide64mk2 and it doesn't need to check the
symbols of an external library. Therefore, no wxDynamicLibrary is needed.
2013-03-28 10:59:10 +01:00
Sven Eckelmann
636e6d425b Allow to build without GlideHQ support
Some systems don't have the required boost support and would not be able to
compile glide64 without adding a lot of new dependencies to their build
environment.
2013-03-28 10:59:10 +01:00
Lioncash
f8b59f5825 Reduce GHQTexInfo struct size from 44 bytes to 40 bytes. 2013-03-27 09:51:43 -04:00
Sven Eckelmann
ba03bb58bf Fix printf-format length errors in UpdateScreen 2013-03-26 11:05:14 +01:00
Sven Eckelmann
4fc96fee08 Remove unused variables 2013-03-26 11:05:14 +01:00
Sven Eckelmann
370b984e94 Remove unused functions from HQ2x filters 2013-03-26 11:05:14 +01:00
Sven Eckelmann
27be987ca9 Use parentheses between '|' operations
GCC produces warnings when the statement is to confusing for the reader and
misinterpretations could happen. These can be avoided by adding parentheses to
clarify the statement.
2013-03-26 11:05:14 +01:00
Sven Eckelmann
2420cf460e Fix mupen64plus OSD by disabling fragment shaders
Glitch64 uses fragment shaders extensively to emulate combiners. These also
affect external parts in other components of the emulator. Disabling them
before returning to the emulator should fix for example the OSD.
2013-03-26 11:05:14 +01:00
Sven Eckelmann
9b8efcd05e Define cache path as $UserCachePath/glidehq/
The user cache path for mupen64plus is something different compared to the user
data path. On Unix systems it is stored in $HOME/.cache/mupen64plus/ and all
non-cache/non-config data is stored in $HOME/.local/share/mupen64plus.

The Windows+single user centric view of the original GlideHQ made it store its
cache in the local plugins directory in a special folder called "cache". This
is not available anymore and therefore the user cache directory is used
instead. A subfolder called "glidehq" is used to avoid collisions with non
GlideHQ compatible data.
2013-02-09 01:22:35 +01:00
Sven Eckelmann
f77b3d2cbb Don't crash when calculating CRC for small images
The original Rice CRC algorithm always assumes an image size of at least 4
bytes per image. This is not a valid assumption and causes invalid memory
access when the byte width of an image is smaller. Avoiding the calculation of
the CRC in this situation seems to be a better choice.
2013-02-09 01:22:35 +01:00
Sven Eckelmann
be0a027273 Use generic _mm_loadu_ps instead of GCC specific __builtin_ia32_loadups 2013-02-09 01:22:35 +01:00
Sven Eckelmann
a1b0c70492 Remove space from filename to avoid confusion of build tools 2013-02-09 01:22:35 +01:00
Sven Eckelmann
091e673367 Remove unsupported internationalization files 2013-02-09 01:22:35 +01:00
Sven Eckelmann
f5b51d2b1d Move license files to doc 2013-02-09 01:22:34 +01:00
Sven Eckelmann
5b6e3a06ae Rename all visible Glide64 strings to Glide64mk2
The glide64 plugin for mupen64plus is available at the same time as the
glide64mk2 video plugin. Both support different features and use different
configuration options. A clear distinction is necessary to avoid confusion by
the users.
2013-02-09 01:22:34 +01:00
Sven Eckelmann
90cea5f84c Remove switchable asm implementations used during the port to C 2013-02-09 01:22:34 +01:00
wahrhaft
dcea75e4d0 merge from fixes branch 2013-01-31 22:48:19 -05:00
wahrhaft
0754b8c9e8 Fix screenshot and OSD, attempt vsync
Some copyright blocks added
2013-01-31 22:37:05 -05:00
Sven Eckelmann
f02918a3cf Use SDL for time keeping to allow compilation under windows 2013-01-30 10:27:33 +01:00
Sven Eckelmann
4e806684d5 Speed up texture loading by reducing status updates
The status updates are limited by the amount of frames which can be rendered.
Showing a status update for each hires texture limits also the loading of them.
This gets even more problematic when vsync is enabled.

Now only every 0.25 seconds a status update is made. This is enough to keep the
user a feeling what is happening and still utilize the CPU and the I/O enough.
2013-01-29 18:42:40 +01:00
Sven Eckelmann
fee00e194a Warn the user about the failed load of the memory texture cache 2013-01-27 11:56:57 +01:00
Sven Eckelmann
87dfe91ac2 Fix loading of non-png hires textures 2013-01-27 11:41:51 +01:00
Sven Eckelmann
8639dae9b6 Warn the user about the failed load of the texture cache 2013-01-26 15:35:20 +01:00
Riley Labrecque
c548a237da Added support for MSVC10 2013-01-25 10:37:44 +01:00
Riley Labrecque
1bafbac4b8 Replaced pthread with SDL_sem 2013-01-25 10:37:44 +01:00
Sven Eckelmann
21344deaee Reduce GCC specific code 2013-01-23 21:10:47 +01:00
Sven Eckelmann
165a934f5f Fix boost::filesystem usage for MinGW 2013-01-23 21:10:43 +01:00
Sven Eckelmann
d89c631691 Fix build with libpng 1.5 2013-01-23 21:10:39 +01:00
Sven Eckelmann
e3be3eac09 Remove unused dxdiag.h without open source compatible license 2013-01-21 20:15:09 +01:00
Sven Eckelmann
c8100ca159 Resize displayed image with window size 2013-01-21 19:50:01 +01:00
Sven Eckelmann
552a199dfc Use the user hires_texture path as search path for GlideHQ 2013-01-21 00:24:25 +01:00
Sven Eckelmann
eea0898588 Don't access random memory in TxFilter constructor 2013-01-21 00:12:24 +01:00
Sven Eckelmann
5688f54526 Readd SoftLocker which was dropped during the initial port
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 projects/unix/Makefile |    8 ++++++++
 src/Glide64/Gfx #1.3.h |    2 ++
 src/Glide64/Main.cpp   |    2 ++
 src/Glide64/rdp.cpp    |   25 +++++++++++--------------
 4 files changed, 23 insertions(+), 14 deletions(-)
2013-01-20 23:13:10 +01:00
Sven Eckelmann
4b8f78d2a8 Fix generation of DP interrupts 2013-01-20 22:54:30 +01:00
Sven Eckelmann
5eafb55104 Compile with TEXTURE_FILTER support
The support for TEXTURE_FILTER is the start to get GlideHQ working. Remaining
work items are:
* Setting the correct path for HighRes textures
* Config support for ghq_fltr
* Config support for ghq_cmpr
* Config support for ghq_enht
* Config support for ghq_hirs
* Fixing random crashes
2013-01-20 22:26:48 +01:00
Sven Eckelmann
debcb5b25d Allow to compile GlideHQ as part of mupen64plus-video-glide64mk2 2013-01-20 21:01:54 +01:00
npepinpe
079ffaeb19 Force Glitch64 to recognize OSX using __APPLE__ instead of macintosh 2013-01-20 16:57:18 +01:00
Sven Eckelmann
3b8d826964 Fix build under MinGW 2013-01-20 13:00:00 +01:00
Sven Eckelmann
590064bfad Fix NO_ASM load16bRGBA implementation 2013-01-20 03:00:16 +01:00