Commit Graph

60 Commits

Author SHA1 Message Date
Dwedit 1987b74179 Fixed random filename generator, no longer resets to the first value each attempt. 2018-09-23 14:20:25 -05:00
twinaphex badac565da Take this out 2018-09-23 20:45:24 +02:00
Dwedit a129cffbd6 Fix the dirty input system badly mishandling IDs out of the range of 0-35.
Now the state array is dynamic, and can handle any size.  The initial size is 256 elements (0-255, fixes FBA).

An arbitrary limit of 65536 IDs is currently in there, intended to detect invalid arguments.
2018-09-23 11:37:33 -05:00
twinaphex 3d611a2673 Update runahead - get rid of FREE macro 2018-09-15 06:41:37 +02:00
Dwedit 821462409e Deterministic input for RunAhead, guaranteed to match the last polled input. 2018-08-26 00:22:19 -05:00
gvbr 0addd1aca4 Runahead: ensure prefixed second-instance temp directory on linux 2018-07-17 20:06:18 -07:00
twinaphex 3799a33efa Silence warnings 2018-06-21 08:31:08 +02:00
twinaphex fb2d27931d Fix some warnings 2018-06-20 16:21:53 +02:00
Dwedit adbc71ce46 Change bounds to a const variable
Add one more bounds check
2018-05-28 12:14:04 -05:00
Dwedit e8b381680a reformat spaces 2018-05-28 12:04:11 -05:00
Dwedit becb6dee16 Fix out of bounds access in dirty_input code 2018-05-28 12:01:18 -05:00
Dwedit 432b320775 Fix full-screen mode change breaking Secondary Core's environment variables
* RunAhead: Remove Environment Hook from primary core
* Modify core option manager to trigger setting the secondary core's dirty environment flag
* RunAhead: Make secondary core's hook support that change, so it can turn off the dirty environment flag after reading a setting.
2018-05-12 22:11:49 -05:00
Dwedit 6154a843e0 Runahead error messages
* Add error messages for: Core not having savestates, load/save state failure, secondary core create failure
* Added messages for us locale, can be localized elsewhere
* Add a configuration setting to hide the initial warning message for core not having savestates
* Small code changes and cleanup for secondary core
* Fixed typo "destory" in dirty input code
2018-05-09 19:08:16 -05:00
Brad Parker 99e4271f29 fix null dereference when there is no runahead save state list 2018-05-01 19:19:35 -04:00
Dwedit dd6eb92352 Two fixes for copy_load_info.c
* Additional check before copying data in clone_retro_game_info
* Sizes the dest string list in string_list_clone to capacity rather than size
2018-04-24 10:32:31 -05:00
Dwedit af87a19675 Fix a silly bug in the code that tries copying the dll to 30 random files (should not return true at the end) 2018-04-17 23:25:26 -05:00
twinaphex 1751f4a0af Make it possible to read bigger files by replacing ssize_t with int64_t
and size_t with uint64_t
2018-04-13 00:18:11 +02:00
Twinaphex 08a54e45f2 Get rid of a lot of implicit conversions 2018-04-09 15:56:45 +02:00
twinaphex 3a4d094277 MSVC buildfix 2018-04-08 23:13:20 +02:00
twinaphex 1ce19f9573 Include header 2018-04-08 20:26:47 +02:00
twinaphex 460182fc63 Update runahead headers 2018-04-08 20:25:43 +02:00
twinaphex c570d461af Cleanups 2018-04-08 02:01:37 +02:00
twinaphex d58c425e43 Cleanups 2018-04-08 01:56:06 +02:00
twinaphex 2ca52bd08c Remove memcpy_alloc 2018-04-08 01:41:41 +02:00
twinaphex 4f32eb9cc1 (runahead) Style nits - no more '== NULL' 2018-04-08 01:36:30 +02:00
twinaphex 8e4df27305 (runahead) Cleanups 2018-04-08 01:28:17 +02:00
twinaphex 9e07e1a57f (runahead) Buildfix 2018-04-08 01:20:55 +02:00
twinaphex 360bea85b9 (PS3) Silence more warnings 2018-04-08 01:09:31 +02:00
Dwedit cb74af60c9 one line typo 2018-04-06 20:14:29 -05:00
Dwedit ee0afec787 Fix build errors on machines without HAVE_DYNAMIC 2018-04-06 20:08:18 -05:00
Dwedit f37ed2f7e1 Move callback init calls to before set_controller_port_device calls. 2018-04-05 15:42:20 -05:00
Dwedit e42edbf032 Move Callback Init calls to after load content (fixes Mesen crashing) 2018-04-05 15:34:27 -05:00
Dwedit a275242aef C89 compliance and line spacing rules 2018-04-01 17:54:03 -05:00
Dwedit 78c8a9b197 Make RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE work on the secondary core 2018-04-01 17:34:54 -05:00
Dwedit 6b77a66298 get rid of the unnecessary typedef 2018-03-31 00:55:37 -05:00
Dwedit 15472eb184 Stop savestate transmission in netplay 2018-03-31 00:45:20 -05:00
Dwedit ec6d6e58d6 Fast Savestate and Hard Audio Disable flags 2018-03-30 20:35:52 -05:00
twinaphex ef039c2c08 Cleanups 2018-03-29 22:39:41 +02:00
Dwedit dd392dcdfb Remove malloc_zero, replace with calloc
Replace free_ptr with FREE macro
2018-03-29 13:22:20 -05:00
twinaphex d04d1c0214 (Runahead) Fix for mingw as suggested by Dwedit 2018-03-29 20:01:34 +02:00
twinaphex 25e99ba75b Cleanups 2018-03-29 18:41:19 +02:00
twinaphex 65909fd1db free_file no longer necessary 2018-03-29 18:36:53 +02:00
twinaphex 8703ad8374 Get rid of free_str 2018-03-29 18:29:25 +02:00
Twinaphex 2db0c21f52 Fix C11 typedef redefinition issues 2018-03-29 18:10:28 +02:00
twinaphex e85f11ea38 (runahead) Remove unused variable 2018-03-29 18:05:52 +02:00
twinaphex adb2274fc6 - Enable HAVE_RUNAHEAD for MSVC 2003
- Remove some unreferenced labels
2018-03-29 17:55:06 +02:00
twinaphex 0712c0ba99 Fix call to filestream_write to filestream_write_file 2018-03-29 17:45:25 +02:00
twinaphex 67c3fd88f4 Buildfixes - wrong function names were used 2018-03-29 17:35:28 +02:00
Dwedit cbc18c74ea resolve conflicts 2018-03-29 09:52:14 -05:00
Dwedit 77f2b7d326 Replace the file handling code from secondary_core.c with the file streams
Hide secondary instance menu item if dynamic libraries are not supported
Remove unlink_utf8 stuff
Fix a compiler warning
2018-03-29 09:37:35 -05:00