Commit Graph

41803 Commits

Author SHA1 Message Date
gblues 5894d0ef86 Remove all HID code from WiiU build via ifdef
== DETAILS
We're trying to track down the source of crashes when switching cores.
To rule out the HID code, this commit does the following:

- Wraps the library imports in an ifdef
- Wraps the object files in conditionals in Makefile.wiiu
- In wiiu_joypad, calls into the hidpad driver are wrapped in ifdef

== TESTING
This didn't solve the "System memory error" crash I've been experiencing.
But, maybe it will impact the other flavors of crashes others are seeing.
2018-01-07 20:26:24 -08:00
Twinaphex 27d671bd0a
Merge pull request #6064 from bkoropoff/builtin-flac
Fix building with built-in flac
2018-01-07 21:39:35 +01:00
twinaphex 5eb5ecac77 Update shader_hlsl.c 2018-01-07 21:34:39 +01:00
twinaphex 23ace06ca1 Cleanups 2018-01-07 20:55:00 +01:00
twinaphex acf9e41aae Start using d3dx_compile_shader 2018-01-07 20:47:35 +01:00
twinaphex 49ea8b950e Create d3dx_compile_shader 2018-01-07 20:32:43 +01:00
twinaphex 141f09ad2e Cleanups 2018-01-07 20:25:30 +01:00
twinaphex d3a4cc90c8 Cleanups - get rid of shader ifdefs 2018-01-07 20:21:08 +01:00
Brian Koropoff 4ad0a1214e Fix building with built-in flac
Not having HAVE_FLAC caused CHD support to be missing, etc.
This updates the logic to match how zlib is handled.
2018-01-07 10:48:09 -08:00
twinaphex 5ca618c8d6 Cleanups 2018-01-07 14:52:26 +01:00
twinaphex 8d7ea32e0d Add flag for debug D3D 2018-01-07 14:06:31 +01:00
twinaphex 1f0d57f5f2 (xdk360_fonts.cpp) Cleanups 2018-01-07 13:45:37 +01:00
twinaphex 58e6e2c025 Try to fix DEBUG path 2018-01-07 13:25:32 +01:00
twinaphex 0be4d7d178 Add free(file) 2018-01-07 13:13:21 +01:00
twinaphex 99699af36f (MSVC 2003) Add DEBUG 2018-01-07 12:21:01 +01:00
twinaphex e011329728 (D3D) Buildfix 2018-01-07 12:12:41 +01:00
vgmoose 890de0e79b allow joycons to work while attached 2018-01-07 12:10:28 +01:00
twinaphex fce097b892 (360) Buildfixes 2018-01-07 12:00:09 +01:00
twinaphex e90a71d9f5 Create d3dx_compile_shader_from_file 2018-01-07 11:52:32 +01:00
twinaphex 3ab8f017d9 Cleanups 2018-01-07 11:06:27 +01:00
twinaphex 88d1e455e3 Add code that allows for debug D3D 2018-01-07 10:46:53 +01:00
Twinaphex 8a6d5dbe91
Merge pull request #6063 from aliaspider/master
(WIIU) add a tool to convert slang shaders.
2018-01-07 09:06:29 +01:00
aliaspider 6b24663dd9 (WIIU) add more NULL check to *_free functions. 2018-01-07 03:45:41 +01:00
aliaspider 7cc34302f4 (WIIU) check for NULL in gfd_free 2018-01-07 03:40:03 +01:00
aliaspider 517a3f801f (WIIU) add a tool to convert slang shaders. 2018-01-07 03:26:14 +01:00
Twinaphex edd89c5ba3
Merge pull request #6061 from gblues/master
Add input validation to iosuhax
2018-01-07 00:06:05 +01:00
gblues f9b548492e Add input validation to iosuhax
== DETAILS

I believe this should (at least partially) resolve #6025.

In my own testing, I haven't been able to reproduce the DSI error,
but I have encountered the black-screen crashes and could reliably
(but not predictably) reproduce the crash by simply switching
between cores.

Looking at the DSI error, the crash occurs within iosuhax. So, I looked
at that code.. and basically none of the input pointers are validated.

Yikes.

This commit adds pointer sanity checking to all of the iosuhax code.

== TESTING

When I did a test build, I noticed two things:

1. No more black screen crashes!
2. In lieu of the crash, it looks like the network logging dies. RA itself
   seems to continue working just fine.
2018-01-06 14:59:48 -08:00
twinaphex df2a31b0e9 Create d3d pixel shader/vertex shader functions 2018-01-06 23:10:27 +01:00
twinaphex d7df6b3729 Create d3d_free_vertex_shader/d3d_free_pixel_shader 2018-01-06 22:57:44 +01:00
twinaphex e03e578212 Add d3d_set_pixel_shader 2018-01-06 22:49:36 +01:00
Andrés 7b040a52b6
Merge pull request #6059 from fr500/staging
make the hack less specific
2018-01-06 15:49:14 -05:00
twinaphex 9fe3271900 Add d3dxbuffer_release 2018-01-06 21:30:50 +01:00
twinaphex 9f6a97db76 Update 2018-01-06 21:10:30 +01:00
twinaphex d62ada458c Add D3DFVF_CUSTOMVERTEX for D3D9 2018-01-06 20:51:41 +01:00
twinaphex 942fd7102d Start getting HLSL compiling for PC 2018-01-06 20:48:17 +01:00
twinaphex ef05fd8a78 Cleanups 2018-01-06 19:51:29 +01:00
radius 3ee75e86c5 ake the hack less specific 2018-01-06 13:47:54 -05:00
twinaphex 553099abf1 Add d3d_check_device_type 2018-01-06 19:42:22 +01:00
Andrés cb41b5d7d9
Merge pull request #6043 from meepingsnesroms/master
Let developers define there own bannertool and makerom, add other 3ds binarys to gitignore
2018-01-06 13:06:39 -05:00
twinaphex 9b52164b00 Create d3d_get_adapter_display_mode 2018-01-06 16:10:05 +01:00
twinaphex 23437f27b4 Cleanups 2018-01-06 15:42:47 +01:00
twinaphex b42c92c619 Create d3d_is_windowed_enable 2018-01-06 15:32:02 +01:00
twinaphex 67220c358c Create d3d_get_color_format_front_buffer 2018-01-06 15:25:11 +01:00
twinaphex 7cc8040347 Create d3d_get_color_format 2018-01-06 15:18:02 +01:00
Twinaphex f2ec145cb7
Merge pull request #6058 from alfrix/comments
WiiU: C89 style comments
2018-01-06 14:02:57 +01:00
Alfredo Monclus bbd9a6566c WiiU: C89 style comments 2018-01-06 09:44:03 -03:00
twinaphex 8c20206afa Update 2018-01-06 12:35:00 +01:00
Twinaphex d4f5f3244a
Merge pull request #6057 from gblues/master
Fix the blocking call to HIDRead()
2018-01-06 12:26:03 +01:00
gblues 560a5f0a4f Fix the blocking call to HIDRead()
== DETAILS

TIL that the "max_packet_size_*" fields in the HIDDevice struct
are actually requirements, not maximums.

The reason HIDRead() was blocking was because the HIDWrite() that
sent the activation command was silently failing.

The reason HIDWrite() was silently failing was because I was using too
small of a buffer for the device.

In this case: the Wii U GC adapter, which has a "max" tx packet size of 5.

"max" is misleading. You actually have to write all 5 bytes.

Which means: copying the 1-byte buffer to the 5-byte buffer, and writing
the 5-byte buffer via HIDWrite().

So, in summary:

- Use correct semantics for HIDWrite() so that HIDRead() can work.
- Update the OSThread struct to reflect the current knowledge over at
  WUT. It's unlikely this was actually causing a problem, but never
  hurts to be more correct.

== TESTING
I temporarily enabled the call to log_buffer() and confirmed that the
GC adapter's state is successfully being read.
2018-01-05 23:12:42 -08:00
Twinaphex 74942551ff
Merge pull request #6052 from orbea/libchdr
Backport changes from libchdr upstream
2018-01-06 07:10:36 +01:00