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
aliaspider
e63697dca7
(WIIU) fix net logger.
2018-01-04 17:21:16 +01:00
twinaphex
6c5d303a07
(Xbox OG) Fix Salamander build
2018-01-03 14:31:41 +01:00
meepingsnesroms
7ac985e9be
Add all xmb menu options to rgui and glui, 3ds warning fix, move start directory to top of load content
2018-01-01 10:38:16 -08:00
Twinaphex
0389bc64fe
Merge pull request #5997 from libretro/new_hid
...
New HID system (courtesy of gblues)
2017-12-30 15:30:03 +01:00
twinaphex
b788bf71bd
(3DS) Implement frontend rating - will return 6 for New 3DS/2DS,
...
and 3 for Old 3DS/2DS
2017-12-30 11:23:47 +01:00
gblues
192f5875b9
Simplify, add logging, revert some of the changes
...
== DETAILS
The old code was crashing; I did a minimalized branch and the crash
went away, so I'm bringing that over here. Meaning I'll have to
redo some of the other work I'd put in, but oh well.
(now watch it start crashing again)
== TESTING
Can confirm it builds. Wii U is busy ATM so I can't test.
2017-12-30 04:40:23 +01:00
gblues
1beba28d02
Only call HIDSetup/HidTeardown once
...
== DETAILS
I did a minimalist edit of the HID thread that stripped out all
HID* syscalls, and this stopped the crashing. I then re-added just
the HIDSetup() and HIDTeardown() calls, and the crash came back.
This smells like an OS bug. To work around it, I've put the
HIDSetup() and HIDTeardown() calls into the app init/shutdown
section, so they only get called once in the application lifetime
and not each time the input driver is initialized.
2017-12-30 04:40:15 +01:00
Nathan Strong
e80d99dbae
Delete controller_patcher; start on proper HID driver
...
== DETAILS
We discovered that the controller_patcher code was causing
the WiiU to intermittently crash when switching ROMs.
Changes:
- Completely extricates the controller_patcher code
- Create a skeleton wiiu_hid driver
- Wire up the build system to build/link it successfully
== TESTING
Has not been tested. Probably doesn't crash, since the
skeleton driver is just a copy of the null driver.
2017-12-30 04:38:57 +01:00
meepingsnesroms
d18ee7eaed
Fix new 3ds xl not being detected, others
...
Also fixes whitespace in makefile and platform_ctr.c and compiles with debug libctru when DEBUG=1
2017-12-29 19:30:54 -08:00
twinaphex
2768f639a2
Fix csnd corrupting dsp audio driver on failure, add 3dsx/smdh to
...
gitignore
2017-12-26 21:36:46 +01:00
Twinaphex
6fc71b6b55
Merge branch 'master' into master
2017-12-26 21:35:25 +01:00
meepingsnesroms
f8b9c8fa6d
Fix csnd corrupting dsp audio driver on failure, add 3dsx/smdh to gitignore
2017-12-26 05:31:51 -08:00
twinaphex
08d9ee9600
(PSP) Add thread support
2017-12-26 09:45:45 +01:00
twinaphex
3f281bb31f
Cleanups
2017-12-25 07:49:07 +01:00
twinaphex
513885d465
(PS3) Set up cheat dir/autoconfig dir
2017-12-20 16:11:59 +01:00
twinaphex
f6e9a624ca
(PS3) Add default dir for core download assets
2017-12-20 16:02:40 +01:00
Brad Parker
03970ddacd
Show BSD OSes in frontend OS info
2017-12-16 10:46:52 -05:00
twinaphex
c7c4b723d6
Move path_file_exists to filestream and do away with filestream
...
dependencies in file/file_path
2017-12-14 20:05:46 +01:00
gblues
6904101c44
Clean up trailing whitespace
...
== DETAILS
Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
Andrés
305cb6d647
fix OS identification ( #5880 )
2017-12-07 18:49:35 -05:00
Brad Parker
55b738a07a
implement frontend get_architecture() for windows
2017-12-07 16:32:13 -05:00
Brad Parker
fa7cd77d7d
win32: improve version reporting under System Information
2017-12-07 13:49:07 -05:00
Ash
e9a3088a79
[WiiU] Toolchain: Actually fix C++ constructors/destructors (oops!)
...
Looks like I temporarily forgot how external symbols work. Fixes
https://gbatemp.net/posts/7720955 ; hopefully we finally have C++ under
control.
2017-12-03 11:31:30 +11:00
Ash
bf3e256a43
[WiiU] Input: Make controller_patcher a compile-time option
...
As discussed in libretro#5357; controller_patcher is now optional. It's
off by default; though this could be changed with a simple makefile
tweak (ENABLE_CONTROLLER_PATCHER ?= 1, perhaps?)
To re-enable controller_patcher; append ENABLE_CONTROLLER_PATCHER=1 to
your usual make command.
controller_patcher was the only user of c++ constructors in the Wii U
port, so you'll need 26a006c
in your tree otherwise you will have a
blackscreen on startup.
2017-12-01 18:29:21 +11:00
Ash
26a006cfac
[WiiU] Toolchain: Fix C++ constructor/destructor handling
...
The old setup relied on there being at least one constructor *or* the
value of *__CTOR_LIST__ being NULL. Neither of these are guaranteed; and
having no C++ constructors actually resulted in a random value being
read (which passed the NULL check!). This new setup uses the
__CTOR_END__ symbol; which is a pointer to just after the end of the
list. When there are no constructors, it has the same value as
__CTOR_LIST__; so the while loop is never entered.
This fix also allows us to re-enable destructors; in case they're ever
needed.
2017-12-01 18:18:02 +11:00
Brad Parker
9aeddb781a
GlobalMemoryStatusEx only exists for 2000 and up
2017-11-29 19:33:39 -05:00
Justin Weiss
4069ddc926
Expand symlinks in default configuration paths for iOS devices
...
CFSearchPathForDirectoriesInDomains returns a path in /var, while
getenv(HOME) returns the same path in /private/var. /var is a symlink
to /private/var, but when config is generated, the difference in paths
means they won't be abbreviated correctly.
This change expands symlinks before filling in the default
directories, so those paths will match.
2017-11-22 20:07:27 -08:00
Francisco José García García
b975cb43a7
Change platform driver for vita
2017-11-14 19:49:50 +01:00
Ash
0d38612f4a
[WiiU] Various warning/format string fixes
...
All things from unsigned comparisons to missing initializers; we got it
here.
2017-11-04 20:37:30 +11:00
Roman Kalashnikov
cdc61bc206
Simplified condition in `while`
...
if `*ptr` value equals ' ', then condition `if(*ptr != '\0')` will always true
2017-10-28 20:56:04 +03:00
Brad Parker
3f27e5d7bb
CXX_BUILD fix
2017-10-23 21:48:38 -04:00
twinaphex
be5d3cb0ba
Convert platform_xdk.cpp to C
2017-10-03 04:36:43 +02:00
Alcaro
b97853a536
Rename STRING_REP_ULONG to STRING_REP_USIZE
2017-10-02 22:51:51 +02:00
twinaphex
550a140405
(Xbox) Silence warning
2017-09-13 04:35:57 +02:00
twinaphex
e193f7a22a
Style nits
2017-08-19 12:27:24 +02:00
twinaphex
822e2fd0d4
Put this around an HW_RVL ifdef
2017-08-19 12:13:03 +02:00
twinaphex
ae2435cf16
Silence some more C89_BUILD warnings
2017-08-12 18:15:26 +02:00
twinaphex
2f832d145f
Make DragAcceptFiles go through function pointer
2017-08-09 16:25:23 +02:00
radius
4387dd7c15
fix new android paths
2017-08-05 21:56:52 -05:00
radius
8bb3852944
update android platform driver
2017-08-05 14:52:16 -05:00
radius
a17e23dc6c
update win32 platform driver
2017-08-05 14:39:17 -05:00
Ash
40a4a5a733
[WiiU] Rewrite exception handler
2017-08-04 21:30:49 +10:00
twinaphex
b11620e1eb
Add retro_timers.h/retro_math.h
2017-06-28 04:41:38 +02:00
twinaphex
6aa99ebb37
Take out <sys/cdefs.h>
2017-06-21 05:02:03 +02:00
Charlton Head
e8976762a5
include command.h when !HAVE_MENU
2017-06-20 20:52:04 -05:00
twinaphex
f087419165
Rename platform_linux.c to platform_unix.c
2017-06-19 17:38:49 +02:00
twinaphex
6af5bd01bf
Merge retro_stat and file_path
2017-06-16 15:00:11 +02:00
Ash
7f5986e1d5
Rename Wii U log functions (conflict in DOSBox)
2017-06-15 15:20:58 +10:00
Brad Parker
d5a1ad0a73
android: delay loading of RetroActivity until after permissions are granted
2017-06-14 20:19:52 +00:00
Francisco José García García
c9d90ce1b6
(VITA) Add support for external usb if mounted
2017-06-05 08:52:20 +02:00
twinaphex
9f2c15c17c
(Frontend) Change MENU_SETTING_ACTION to FILE_TYPE_DIRECTORY
2017-05-26 16:45:28 +02:00
twinaphex
11641645b2
(platform_linux.c) Change these entries to FILE_TYPE_DIRECTORY
2017-05-26 16:34:34 +02:00
twinaphex
1d013b49c6
Update parse_drive_list
2017-05-26 16:17:14 +02:00
twinaphex
ecadf864c5
Fixed font selection
2017-05-26 15:57:18 +02:00
twinaphex
e2a6a7ad17
Add 'load_content' parameter to parse_drive_list
2017-05-26 15:52:38 +02:00
Twinaphex
37f74de732
(OSX) Buildfix
2017-05-24 20:19:48 +02:00
Fabio Ritrovato
341d1f9528
Fix default record output dir on Mac
2017-05-24 15:48:45 +01:00
aliaspider
39adab8cc1
execv call was missing in frontend_linux_exec.
2017-05-24 11:13:56 +01:00
radius
6f39d6da97
fix
2017-05-23 19:56:28 -05:00
radius
a98c2c38c0
update copyrights
2017-05-23 19:55:47 -05:00
twinaphex
b70b40969b
Set record output/config default dirs for Windows/Linux/Mac
2017-05-24 01:56:09 +02:00
twinaphex
907f0db4a3
(platform_linux.c) Style nits
2017-05-23 22:46:12 +02:00
twinaphex
bc64b7cd4e
Windows buildfix
2017-05-23 21:18:20 +02:00
twinaphex
d6b7bba069
Buildfix for PSP/Vita
2017-05-23 21:16:03 +02:00
twinaphex
1421d1da30
Use path_mkdir
2017-05-23 20:45:14 +02:00
twinaphex
7b1b137866
Buildfixes
2017-05-23 20:39:56 +02:00
twinaphex
ccba9635b6
Update the way default directories are handled
2017-05-23 19:43:58 +02:00
aliaspider
78e5b63b41
(WiiU) salamander fix.
2017-05-23 12:24:37 +01:00
aliaspider
934f7c58ba
(WiiU) enable networking.
2017-05-23 10:24:23 +01:00
aliaspider
801cc57e82
(WiiU) improve task scheduling.
2017-05-22 11:19:26 +01:00
radius
93a6426fe4
Radius TV ATV hack
2017-05-21 23:47:01 -05:00
aliaspider
ce61db1473
(WiiU) fix salamander build.
2017-05-20 21:34:50 +01:00
Maschell
7a2c09e9ce
[Wii U ] Proper order of the HID devices.
...
Added individual names for the HID devices.
2017-05-20 19:26:12 +02:00
Maschell
2ac91822c3
Merge remote-tracking branch 'refs/remotes/libretro/master' into wiiu_controller_patcher
2017-05-20 13:14:13 +02:00
twinaphex
59fb7700b8
Combine menu_driver.c and menu_display.c
2017-05-19 15:25:14 +02:00
twinaphex
b0398c1482
C89 build fixes
2017-05-19 03:34:53 +02:00
orbea
649205178f
Silence a -Wnonnull warning
2017-05-16 16:14:20 -07:00
twinaphex
126a5bf121
Use string_is_equal_fast/string_is_not_equal_fast
2017-05-16 04:00:37 +02:00
twinaphex
bf3188eac4
Combine runloop_ctl and rarch_ctl
2017-05-15 05:06:23 +02:00
twinaphex
80d9d1f143
Rewrite task_queue
2017-05-14 20:43:48 +02:00
Jean-André Santoni
ce9439e722
Display Lakka version in System Information
2017-05-13 13:12:15 +02:00
twinaphex
42ebe7a7ad
Merge runloop.c and retroarch.c
2017-05-11 09:11:46 +02:00
twinaphex
9dff2434ef
Fix some structurally dead code warnings
2017-05-09 20:54:03 +02:00
Maschell
4393e17ea7
[Wii U] Using the HID Controller as a own controller. Currently the stick only work when it's bind manually. Mapping from controller to retroarch input port may change when you attach a new device.
2017-05-08 21:46:34 +02:00
Maschell
e695d4e8ad
[WiiU] Initial controller patcher support (HID via USB and network)
...
- Reading config from sd cards currently broken
- Not implemeted as a driver, currently all devices will be mapped to the WiiU Gamepad driver
2017-05-08 12:24:06 +02:00
twinaphex
f75fbafeb2
Cleanups
2017-04-28 23:10:24 +02:00
twinaphex
35ac275f62
(OSX) Buildfix
2017-04-28 21:18:35 +02:00
twinaphex
ed53be7c81
Move all bool settings
2017-04-28 14:11:34 +02:00
twinaphex
cc095e56fc
Start refactoring bool variables
2017-04-28 00:53:20 +02:00
radius
95f172e3c7
add a few paths even if they are not set by JNI
2017-04-24 01:02:42 -05:00
twinaphex
aea00f1e00
Use memcmp instead of string_is_equal for more instances
2017-04-23 12:17:51 +02:00
twinaphex
6ebd4e139e
Rewrite more string_is_equal call invocations as memcmp
2017-04-22 08:51:16 +02:00
Francisco José García García
8568667481
Add threading.c
2017-04-05 19:35:45 +02:00
Brad Parker
b1e94e8215
android: add runtime permission checking for Android 6.0+
2017-03-20 05:25:05 +00:00
Brad Parker
c549f7e8d7
android: set XMB as default for Android TV devices
2017-03-10 22:17:05 -05:00
zeromus
e89706d251
fix win32 console logging to be better than ever and no longer slay msys windows ( fixes #4673 )
2017-02-24 18:42:19 -06:00
twinaphex
8206a751f0
Create task_push_load_content_from_cli
2017-02-21 16:59:48 +01:00
radius
742e45c6eb
attach to console if present, spawn our own otherwise
2017-02-15 22:25:17 -05:00
Twinaphex
2606218aa1
Silence implicit declaration warning
2017-01-30 17:35:00 +01:00
aliaspider
d40541c340
(WiiU) provide salamander's basename in
...
frontend_driver_get_salamander_basename.
2017-01-26 15:07:11 +01:00
aliaspider
292d4dd3da
(WiiU) fix a crash when using libfat with dkp r29.
2017-01-25 23:32:06 +01:00
aliaspider
8f88d8fb4d
(WiiU) implement the missing requirement for core loading: exec,
...
exitspawn, set_fork and salamander.
2017-01-25 19:52:31 +01:00
Brad Parker
57949227df
DOS: initial input/joypad driver
2017-01-24 00:55:58 -05:00
aliaspider
021b510452
(WiiU) refactors/cleanups.
2017-01-23 16:14:05 +01:00
aliaspider
ae0e519639
(Wii) buildfix for devkitPPC r29.
2017-01-23 16:01:53 +01:00
aliaspider
1601febabc
(WiiU) buildfix for devkitPPC r29.
...
- add wut headers and elf2rpl to source tree.
2017-01-23 16:01:53 +01:00
twinaphex
96c8ca5a09
Header update #1
2017-01-22 13:40:32 +01:00
twinaphex
9e063318da
(XDK360) Fix
2017-01-19 21:09:44 +01:00
twinaphex
057af3c310
(360) Another buildfix
2017-01-19 20:53:27 +01:00
Brad Parker
8e52d0af6c
Windows 98 buildfix
2017-01-18 02:02:32 -05:00
twinaphex
fa0aaf54f7
(PSP) update
2017-01-17 18:55:59 +01:00
twinaphex
7931436f5b
Apply xerpi diff
2017-01-17 18:12:23 +01:00
twinaphex
2849e2aa79
Get rid of some more configuration.h includes
2017-01-17 15:46:36 +01:00
ggf906
e9cff022fc
(VITA) Update to latest vitasdk
2017-01-17 11:43:12 +01:00
Brad Parker
e1f4db8081
Win2000 buildfixes
2017-01-16 20:41:08 -05:00
aliaspider
8cb692622a
(WiiU) add support for bluetooth controllers (Wiimote, nunchuk, classic
...
controller, wiiu pro controller).
2017-01-16 18:52:39 +01:00
Josh Palmer
ef205447df
QNX-specific default directory and file permission handling
2017-01-09 20:26:09 +00:00
twinaphex
9e309032d4
(platform_linux.c) Cleanup
2017-01-08 18:12:43 +01:00
twinaphex
52f9084665
(platform_linux.c) Cleanups
2017-01-08 17:57:13 +01:00
twinaphex
dd264f83d3
Silence more memcheck issues
2017-01-04 09:34:12 +01:00
Brad Parker
2b25704d63
fix battery charging status on linux
2017-01-03 15:40:01 -05:00
twinaphex
b13d069578
- Silence Coverity warning in platform_linux.c
...
- Don't do settings lookup when calling runloop_msg_queue_push
2017-01-03 18:47:34 +01:00
Brad Parker
ede267805d
fix memory leak in linux battery check
2017-01-02 22:16:00 -05:00
twinaphex
5d9934d4da
Remove buf variable
2016-12-31 07:59:28 +01:00
twinaphex
1d070aae93
Silence warnings; set default autoconfig dir
2016-12-25 19:28:44 +01:00
Brad Parker
0551e2dea8
move win32 check to frontend driver
2016-12-21 09:34:57 -05:00
Twinaphex
76c4a4f7a0
Merge pull request #4279 from sethk/macos_cleanup
...
macOS cleanup
2016-12-19 23:15:10 +01:00
twinaphex
3c7c667cf5
Get rid of some implicit memsets
2016-12-19 19:04:52 +01:00
Seth Kingsley
d79cdffe37
Don't set config path until open_default_config_file()
...
This allows overriding of the config with --config
2016-12-17 21:06:07 -08:00
Seth Kingsley
b1c6317ba5
Return non-zero from rarch_main() on failure
...
All platforms that test this check for != 0
2016-12-17 16:54:31 -08:00
FIX94
c0b023a1cf
(WiiU) added basic libiosuhax support
2016-12-17 18:42:04 +01:00
twinaphex
cbf26cfa2f
Fix statically linked RA again
2016-12-16 10:09:09 +01:00
twinaphex
296b52744d
Update remaining platform drivers
2016-12-13 01:45:01 +01:00
twinaphex
ba08a88643
(platform) Updates
2016-12-13 01:43:18 +01:00
twinaphex
32e230e98c
(win32) Update parse_drive_list
2016-12-13 01:37:37 +01:00
Twinaphex
ecf60f0ef3
(OSX) Buildfixes
2016-12-13 01:34:55 +01:00
twinaphex
fc73e82e43
Start making parseable drives work in Load Content
2016-12-13 01:34:53 +01:00
twinaphex
e2c4c25bf5
Add more MSVC 2003 compatibility ifdefs
2006-05-14 14:33:10 +02:00
twinaphex
43a1d528a6
Buildfix
2016-12-07 06:21:21 +01:00
twinaphex
032c414ac7
(platform_xdk) Add file_path_special.h
2016-12-07 06:20:40 +01:00
twinaphex
2a76acaf29
(platform_xdk.cpp) Add compat/strl.h header include
2016-12-07 06:19:05 +01:00
twinaphex
018a3328f5
(platform_xdk.cpp) Add verbosity.h header include
2016-12-07 06:18:06 +01:00
Brad Parker
e39031cbd0
revert rest of unicode changes
2016-12-03 00:15:29 -05:00
Brad Parker
f725b48555
starting to revert unicode changes
2016-12-03 00:15:29 -05:00
Brad Parker
3b8a81dd31
make existing hard-coded unicode calls switchable back to ansi
2016-12-02 14:34:29 -05:00
twinaphex
5e10dbf348
Move more runloop.h includes
2016-12-02 16:01:06 +01:00
twinaphex
f9e72b89e2
(platform_xdk.cpp) Buildfixes
2016-12-02 01:54:28 +01:00
Brad Parker
367dea6723
unicode-ify a couple other windows files, start changing function names to W version explicitly
2016-11-29 20:32:24 -05:00
Brad Parker
dc99713a9b
create unicode window on Windows
2016-11-29 14:34:37 -05:00