Lioncash
10f3d90f83
Make the base calculation in CheatsWindow simpler.
...
First and foremost this should test the checked state, not its direct value.
This should never have used multiplication at all. Seriously, what the hell?
The only values it would have given is true or false, so the only cases are 0*6 and 1*6.
2014-03-02 22:15:01 -05:00
Matthew Parlane
bd99e4a689
Merge pull request #126 from delroth/master
...
UnitTests: ensure the Binaries/Tests directory exists before linking.
2014-03-03 16:05:41 +13:00
Pierre Bourdon
177ef615d7
UnitTests: ensure the Binaries/Tests directory exists before linking.
2014-03-03 04:03:53 +01:00
Matthew Parlane
3d281593ba
Merge pull request #125 from delroth/master
...
Unittests: Always use GTest from Externals (recommended way from GTest FAQ).
2014-03-03 15:49:17 +13:00
Pierre Bourdon
9ea845310d
Unittests: Always use GTest from Externals (recommended way from GTest FAQ).
2014-03-03 03:38:46 +01:00
Matthew Parlane
2d6810be9f
Merge pull request #124 from delroth/master
...
Do not hard fail when running 'make unittests' without GTest.
2014-03-03 15:15:13 +13:00
Pierre Bourdon
2d71571be5
Do not hard fail when running 'make unittests' without GTest.
2014-03-03 03:12:58 +01:00
Matthew Parlane
6176424ac4
Merge pull request #119 from delroth/unittests
...
Add support for GTest based UnitTests
2014-03-03 14:53:24 +13:00
Lioncash
34b5a7871f
Rename the JIT function Default() to FallBackToInterpreter(). Communicates intent way better in terms of telling the reader what's going on.
...
Also did some minor cleanup in functions that used Default.
2014-03-02 19:59:20 -05:00
Pierre Bourdon
e7ae1fe9d8
Merge pull request #123 from lioncash/tas-bugfix
...
Fix a case where the wrong placeholders were being assigned for the up and down D-Pad buttons in the TAS dialog.
2014-03-03 01:01:59 +01:00
Lioncash
445d257641
Fix a case where the wrong placeholders were being assigned for the up and down D-Pad buttons in the TAS dialog.
2014-03-02 18:58:54 -05:00
Pierre Bourdon
a4ee187711
Tests: Add more MMIO tests as an example.
2014-03-03 00:25:41 +01:00
Pierre Bourdon
d4ed4adace
Add the infrastructure required to easily add unit tests and test it with a very simple test file.
2014-03-03 00:25:41 +01:00
Ryan Houdek
c028513285
Merge pull request #121 from lioncash/remove-clamp
...
Remove another clamp function laying in the codebase and replace it with the one in MathUtil.h.
2014-03-02 13:40:10 -06:00
Lioncash
13a007abed
Remove another clamp function laying in the codebase and replace it with the one in MathUtil.h.
2014-03-02 13:57:27 -05:00
Matthew Parlane
70b3749d4b
Merge pull request #109 from lioncash/file-io-clarifications
...
Eliminate the magic constants in the switch statement in WII_IPC_HLE_Device_FileIO.cpp's Seek function.
2014-03-02 18:29:48 +13:00
Pierre Bourdon
747021e0c8
CMake: detect GTest if it is installed
2014-03-02 04:15:33 +01:00
Tony Wasserka
c6c6d20014
videosoftware: Provide a more elaborate comment on the FifoPlayer support hack.
2014-03-01 18:52:19 +01:00
Scott Mansell
17231418ef
videosoftware: Added hack to bypass xfb just so fifoplayer works.
...
Fifoplayer depends on the old behaviour of videosoftware (and the other
hardware backends in non virtual/real xfb modes) where the framebuffer
gets rendered directly to the screen.
Really fifoplayer should call BeginFrame/EndFrame when it finished
rendering a frame, but adding this hack back in is simpler.
2014-03-01 18:45:24 +01:00
Lioncash
3bc082be52
Fix WII_SEEK_END seeking.
2014-02-28 19:56:42 -05:00
Pierre Bourdon
0942bdae1c
Merge pull request #116 from Tilka/misc_fixes_fix
...
Fix the Windows build (broken in 315a8ba
)
2014-03-01 01:36:32 +01:00
Tillmann Karras
7c93f2dc23
Fix the Windows build (broken in 315a8ba
)
2014-03-01 01:33:19 +01:00
Pierre Bourdon
bc844a168f
Merge pull request #100 from Tilka/misc_fixes
...
Misc fixes
2014-02-28 23:08:56 +01:00
Pierre Bourdon
1a7e3b3227
Merge pull request #80 from Tilka/dsp
...
DSP: add inline opcode documentation
2014-02-28 22:50:37 +01:00
Pierre Bourdon
c8a169ae6e
Merge pull request #115 from Parlane/polarssl_detect_support
...
Makes the detection of shared PolarSSL more inline with usage.
2014-02-28 22:43:51 +01:00
Tillmann Karras
892012dc02
Remove own round() implementation
...
1. It's not correct, it rounds x.5 down to x.
2. It is visible across the whole project (!).
3. VS2013 finally supports this:
http://msdn.microsoft.com/en-us/library/dn353646.aspx
http://msdn.microsoft.com/en-us/library/dn329049.aspx
2014-02-28 12:43:23 +01:00
Tillmann Karras
7a66a3ded1
ArmEmitter: make it more readable
2014-02-28 12:43:22 +01:00
Tillmann Karras
46e7c0657f
Crypto: small cleanup
2014-02-28 12:43:22 +01:00
Tillmann Karras
315a8ba1c0
Various changes suggested by cppcheck
...
- remove unused variables
- reduce the scope where it makes sense
- correct limits (did you know that strcat()'s last parameter does not
include the \0 that is always added?)
- set some free()'d pointers to NULL
2014-02-28 12:43:20 +01:00
Tillmann Karras
5f0a8008f4
Convert MemoryUtil.cpp to Unix-style line endings
2014-02-28 12:28:21 +01:00
Tillmann Karras
1a428de189
x64FPURoundMode: move things around a bit
2014-02-28 12:28:21 +01:00
Tillmann Karras
269e2aefa7
CMake: fix escaping in miniupnpc test
2014-02-28 12:28:20 +01:00
Tillmann Karras
6914eca167
Fix various warnings reported by clang
...
- mostly remove unused variables
- rename some generic JIT identifiers
2014-02-28 12:28:19 +01:00
Pierre Bourdon
ea34ae0a70
Merge pull request #113 from Parlane/fix_wifi
...
Randomise the mac address and store it in the config.
2014-02-28 11:25:29 +01:00
Matthew Parlane
c68cd3a8ea
Randomise the mac address and store it in the config.
...
This stops error 20115 when trying to go online.
2014-02-28 22:53:00 +13:00
Matthew Parlane
17ea34f617
Makes the detection of shared PolarSSL more inline with usage.
2014-02-28 20:12:37 +13:00
Pierre Bourdon
a3508823de
Merge pull request #112 from Parlane/fix_ssl_init
...
Initialise entropy correctly for ssl.
2014-02-28 00:51:09 +01:00
Tony Wasserka
1f5b3c928f
Merge pull request #108 from degasus/GLSLUtilShader
...
GLSL utility shader optimization
2014-02-27 22:38:37 +01:00
Matthew Parlane
e1ec4729b4
Initialise entropy correctly for ssl.
2014-02-27 21:46:14 +13:00
Matthew Parlane
698bf8f2d3
Merge pull request #110 from Tilka/polarssl1.3
...
CMake: remove USE_SHARED_POLARSSL_LIBRARY
2014-02-27 08:52:29 +13:00
degasus
f628695d31
comment fixes
2014-02-26 12:48:52 +01:00
Tony Wasserka
66d1f16f98
Merge pull request #107 from lioncash/tiny-cleanup
...
Tiny cleanup of WII_IPC_HLE.cpp.
2014-02-26 12:46:49 +01:00
degasus
aaaa5af0b2
remove (ATTR|VARY)(IN|OUT) macros
2014-02-26 11:37:29 +01:00
degasus
1d0b6a1156
Merge duplicate parts of sampler into header
2014-02-26 11:37:29 +01:00
degasus
11efa88157
calculate constant values on shader compilation
2014-02-26 11:37:29 +01:00
degasus
8a4aa8c1f5
Rewrite texture tiling implementation
...
inline halfxb
So we know which is the first pixel by masking.
inline xl
inline xb a bit
inline yl
inline uv1.x shift
remove likely wrong guessed ternary operator
add pixel layout comment
inline xel
optimize the shifts a bit
inline xb
optimize shifts in a second step
extract xb
rename all variables
calculate cache line by position.x
Revert 5115b459f40d53044cd7a858f52e6e876e1211b4 "optimize the shifts a bit"
It seems I was wrong, the other way is the more natural.
use x_virtual_position instead of uv1.x for x_offset_in_block
This looks more natural and the offset should be masked anyway.
substitude factor with cache_lines
move 32bit logic in a conditional block
2014-02-26 11:37:29 +01:00
degasus
bd3beeb184
TextureConverter: Use Log2() and shifts instead of multiplications/divisions
2014-02-26 11:37:29 +01:00
degasus
94da4e1aa2
MathUtil: Change Log2 return value to int
...
Log2(u64) can't be bigger than 63, so there is no need in forcing a 64 bit value.
So just using a common int seems more natural.
2014-02-26 11:37:28 +01:00
degasus
f99c8a0b70
merge common parts of encoding shaders
2014-02-26 11:37:28 +01:00
degasus
7f539b6033
ogl: optimize real xfb a bit
...
Both nvidia + mesa seems not to optimize x / (2**n) to x >> n, so we do it ourself.
2014-02-26 11:37:28 +01:00