Commit graph

967 commits

Author SHA1 Message Date
Ilari Liusvaara
80016575cd Lua: Clean up callback code 2012-10-20 10:45:56 +03:00
Ilari Liusvaara
a8d9a1eb7c Split lua_render_context into library/ 2012-10-20 09:11:07 +03:00
Ilari Liusvaara
eba2e73608 Gambatte: Fold port0 and port1 together 2012-10-19 22:20:10 +03:00
Ilari Liusvaara
35eac9aaf4 Don't poll for / write non-valid control indices 2012-10-19 21:40:40 +03:00
Ilari Liusvaara
5795288660 Extern references in library/controller-data.hpp are no-no 2012-10-19 20:44:19 +03:00
Ilari Liusvaara
9a8c9377b2 Allow multiple types of controllers on one port 2012-10-19 20:32:18 +03:00
Ilari Liusvaara
bccb745a93 Have core-specific code build the legacy PCID maps 2012-10-19 19:53:15 +03:00
Ilari Liusvaara
aac0cd9a2c Move reset handling to cores
This removes special cases from movie code.
2012-10-17 14:35:36 +03:00
Ilari Liusvaara
8057c14d55 Avoid spurious polls arising from DRDY of nonexistent tuples
When asked for DRDY on unknown tuple, always answer True to avoid spurious
subframes.
2012-10-17 12:36:19 +03:00
Ilari Liusvaara
14f9c58b31 Some movie code cleaning up
- Remove the commented debug prints
- Only increment poll count for RESET at most once
- Indexes 1, 2 and 3 do not need to special-cased in propagation.
2012-10-17 12:34:29 +03:00
Ilari Liusvaara
bbba76105c Have cores generate controller index maps
The cores have much better knowledge about how the index maps should
be constructed than the core code.

Also, this moves any backward compat hacks to cores that need those.
2012-10-17 09:32:51 +03:00
Ilari Liusvaara
4c66744a14 Merge branch 'rr1-maint'
Conflicts:
	src/core/gambatte.cpp
2012-10-17 00:21:14 +03:00
Ilari Liusvaara
5b6314c196 Gambatte: Always use legacy lag counting 2012-10-17 00:18:07 +03:00
Ilari Liusvaara
872e83b7d3 Merge branch 'rr1-maint' 2012-10-17 00:15:04 +03:00
Ilari Liusvaara
bd6242cdce Revert "Refactor porttype_info into library/ (as port_type)"
This reverts commit 5bae541b8b.

This commit is just messed up (lacks a file), so revert it.
2012-10-17 00:14:00 +03:00
Ilari Liusvaara
4a4ec40019 Fix some really retarded code in library/movie 2012-10-17 00:05:37 +03:00
Ilari Liusvaara
970623768c Refactor Lua support 2012-10-16 17:39:55 +03:00
Ilari Liusvaara
a58fbd974a Remove optionality of Lua support 2012-10-16 00:00:53 +03:00
Ilari Liusvaara
72a34e9863 Merge core controller setting code 2012-10-15 00:43:49 +03:00
Ilari Liusvaara
e408be947f Merge branch 'master' into multiple-ports 2012-10-15 00:21:51 +03:00
Ilari Liusvaara
41b62bc937 Add a missing header file and correct win32 build error 2012-10-14 23:55:36 +03:00
Ilari Liusvaara
0683b25259 Merge branch 'rr1-maint' into multiple-ports 2012-10-14 23:35:18 +03:00
Ilari Liusvaara
07e9440958 Add bsnes patches to fix libsnes to compile on GCC 4.7 2012-10-14 23:35:03 +03:00
Ilari Liusvaara
a6a0859565 Fix some compile errors (throw specifiers) 2012-10-14 23:15:46 +03:00
Ilari Liusvaara
92c6d5f5af Refactor and extend library loading 2012-10-13 21:30:53 +03:00
Ilari Liusvaara
68ccf06684 Unify registration queue handling of commands and settings 2012-10-13 20:34:16 +03:00
Ilari Liusvaara
e61ddd9220 Move emulator_status to library/ 2012-10-13 16:03:29 +03:00
Ilari Liusvaara
b6f898a563 Move messagebuffer to library/ 2012-10-13 15:55:00 +03:00
Ilari Liusvaara
5a6c4ef2ba Move bridging between commands and settings to library/ 2012-10-13 15:47:35 +03:00
Ilari Liusvaara
cd00220678 Don't leak command group internal management commands 2012-10-13 15:14:33 +03:00
Ilari Liusvaara
b298a3cdff Plug memory leaks 2012-10-13 15:04:18 +03:00
Ilari Liusvaara
0c8f54016a Refactor settings to library/ 2012-10-13 12:48:37 +03:00
Ilari Liusvaara
32039006f5 Refactor command handling to library/ 2012-10-13 11:13:17 +03:00
Ilari Liusvaara
924047524a globalwrap: Warn about recursive initialization 2012-10-13 09:36:37 +03:00
Ilari Liusvaara
fee29ac809 Use globalwrap in controller-data.cpp 2012-10-13 09:29:12 +03:00
Ilari Liusvaara
c0f52c3f48 Move globalwrap.hpp to library/ 2012-10-13 09:23:55 +03:00
Ilari Liusvaara
e6dca4e9eb Refactor movie class to library/ 2012-10-12 15:21:57 +03:00
Ilari Liusvaara
c6ef6a9b13 Change the pollcounter type to avoid errors on movie load 2012-10-12 15:13:48 +03:00
Ilari Liusvaara
99815014c2 Actually fix system byte order for gambatte 2012-10-12 15:13:33 +03:00
Ilari Liusvaara
438e946e0e Fix byte order of system field 2012-10-12 14:57:33 +03:00
Ilari Liusvaara
624a93e79a Fix case where deserialize doesn't read whole last field 2012-10-12 14:56:34 +03:00
Ilari Liusvaara
4100e12211 Fix segfault in controllerframe::deserialize 2012-10-12 14:27:07 +03:00
Ilari Liusvaara
4365cadbc3 Support systems with !=2 ports
This also changes the Gambatte core to have just 1 port.
2012-10-11 20:06:40 +03:00
Ilari Liusvaara
5bae541b8b Refactor porttype_info into library/ (as port_type) 2012-10-11 11:32:44 +03:00
Ilari Liusvaara
81795bbaec Change button_id to be a function pointer field, not a virtual method 2012-10-10 22:56:22 +03:00
Ilari Liusvaara
286240eff4 Fix the code to compile on G++ 4.7 2012-10-10 10:00:26 +03:00
Ilari Liusvaara
5c11315631 Lua: Fix memory.read_expr on nil argument 2012-10-07 15:51:38 +03:00
Ilari Liusvaara
a3fcb4dd6a Lua: memory.read_expr 2012-10-07 15:12:46 +03:00
Ilari Liusvaara
9d3cae86bd Fix crashes on certain memory watch expressions 2012-10-07 15:12:25 +03:00
Ilari Liusvaara
f83aa47a7f Fix off-by-one bug with slot hashes 2012-10-04 09:26:50 +03:00