Commit graph

321 commits

Author SHA1 Message Date
Ilari Liusvaara
dc977fbcee Bump minimum bsnes version to v083.
This also bumps the compiler version to GCC 4.6.
2011-10-14 15:05:13 +03:00
Ilari Liusvaara
aedbba61ef Allow unattended dumping to JMD 2011-10-12 03:41:54 +03:00
Ilari Liusvaara
65f5f37033 JMD dumping support 2011-10-12 03:29:52 +03:00
Ilari Liusvaara
2993d6d793 lsnes rr0-β16 2011-10-10 08:28:30 +03:00
Ilari Liusvaara
deab9b5c0d Fix CSCD output
- Don't leak memory
- Actually write proper value for clr_important in video strf
- Don't write outside buffer when writing avih
- end() runs in main context, so it must use request_flush_buffers,
and not flush_buffers.
2011-10-09 23:04:52 +03:00
Ilari Liusvaara
fb93a4e888 Add gui.screenshot Lua function. 2011-10-09 02:55:36 +03:00
Ilari Liusvaara
cb4daf66e6 Fix drawing SDL area boundaries
When not in console mode, the code used 2 instead of screen height + 12
for minimum y coordinate for message are.
2011-10-08 23:21:19 +03:00
Ilari Liusvaara
94b6b3aae8 Fix scaling compensation in mouse clicking
The scaling compensation in mouse clicking could have been wrong. Fix
it to be always right. Also put the code to determine screen scale factors
to one place.
2011-10-08 23:02:47 +03:00
Ilari Liusvaara
b972df809a lsnes rr0-β15 2011-10-05 19:26:53 +03:00
Ilari Liusvaara
949441c12b Refactor current controls code from mainloop.cpp to controller.cpp 2011-10-05 02:24:34 +03:00
Ilari Liusvaara
95b0df8a8b Changes to how read-only works
* Add command that loads savestate in current mode.
* Make jukebox loads use current mode.
* Fix truncation of movie when current_frame = 0
* Add command to set read-only mode
* Add command to toggle read-only mode
2011-10-03 22:32:43 +03:00
Ilari Liusvaara
3517ba2eee Move joystick axis manipulation from SDL to keymapper code
Joystick axis manipulation isn't really platform-dependent, so move it
from SDL platform code to keymapper code. Additionally, add command to
show all axes and parameters.
2011-10-02 22:40:58 +03:00
Ilari Liusvaara
bdd0a17bef All supported platforms support gettimeofday and usleep
Move to using gettimeofday and usleep instead of SDL time and delay
functions.
2011-10-02 19:05:45 +03:00
Ilari Liusvaara
9f174b2932 Some manual fixups 2011-10-01 21:03:32 +03:00
Ilari Liusvaara
38eec45987 Fix interaction of * and + in commands 2011-10-01 20:47:59 +03:00
Ilari Liusvaara
7a0085290a lsnes rr0-β14 2011-10-01 13:05:03 +03:00
Ilari Liusvaara
0606cdaa60 Switch to CSCD implementation from JPC-RR streamtools 2011-09-30 02:58:34 +03:00
Ilari Liusvaara
ff77bad25c New gui primitive: crosshair 2011-09-28 00:14:27 +03:00
Ilari Liusvaara
7c0a2bc697 Refactor rectangle clipping calculation 2011-09-28 00:14:09 +03:00
Ilari Liusvaara
ae731333cd Refactor gui.text, gui.rectangle and gui.pixel 2011-09-27 02:52:35 +03:00
Ilari Liusvaara
b73ef078ba Implement gui.rectangle and gui.pixel 2011-09-27 00:29:44 +03:00
Ilari Liusvaara
99468dc616 Switch internally to 16-bit graphics instead of 32-bit 2011-09-26 23:35:13 +03:00
Ilari Liusvaara
9c3cdb57c5 Remove some unused defines 2011-09-26 19:09:37 +03:00
Ilari Liusvaara
f2550aebd5 Function comment cleanups 2011-09-26 19:02:43 +03:00
Ilari Liusvaara
4a6b80931b Merge remote-tracking branch 'origin/master' 2011-09-25 23:16:19 +03:00
Ilari Liusvaara
ecf559b0ad Remove delayed reset support
Delayed reset code is just plain too buggy. This feature will return if
I figure out how to do it properly.
2011-09-25 23:15:27 +03:00
Ilari Liusvaara
891ebc7795 Use SDLMain on Mac OS X
It turns out SDLMain must be used on Mac OS X or SDL won't work.
2011-09-25 12:31:16 +03:00
Ilari Liusvaara
e54fd13bdd Allow disabling time() interception
This prevents recording games using S-RTC but allows building on platforms
not supporting ld --wrap, most notably Mac OS X.
2011-09-25 11:48:36 +03:00
Ilari Liusvaara
3f6ff9f7b5 lsnes rr0-β13 2011-09-25 02:22:18 +03:00
Ilari Liusvaara
847519c961 Use ld --wrap to intercept time() by bsnes core
This allows games using S-RTC to be rerecorded.
2011-09-25 02:13:50 +03:00
Ilari Liusvaara
5509cb2893 Forgot to note savetime.* is only present in savestates 2011-09-24 23:18:09 +03:00
Ilari Liusvaara
dd288a765a Document {start,save}time.{,sub}second 2011-09-24 23:12:49 +03:00
Ilari Liusvaara
99a969b54e lsnes rr0-β12 2011-09-24 21:07:25 +03:00
Ilari Liusvaara
42a2f92a44 Keep track of RTC
This can't be used yet (no support for external time source in bsnes, but
it should become handy when such support exists).
2011-09-24 21:05:56 +03:00
Ilari Liusvaara
765c637ae5 Major oops, forgot one source code file 2011-09-24 20:53:37 +03:00
Ilari Liusvaara
eb8dc58677 lsnes rr0-β11 2011-09-24 19:38:27 +03:00
Ilari Liusvaara
f90a3503ef Take interlace into account when determining framerate 2011-09-24 19:29:21 +03:00
Ilari Liusvaara
21a51e87c4 Add functions to read/write multibyte values from/to host memory 2011-09-24 19:25:02 +03:00
Ilari Liusvaara
345daf2cc5 Panic if Lua runs out of memory
This eliminates the most frequent class of Lua errors causing who knows
what to happen.
2011-09-24 13:43:17 +03:00
Ilari Liusvaara
fb5d773339 Create helper class for globals/module-locals used in global ctors 2011-09-24 13:40:13 +03:00
Ilari Liusvaara
a7dd6e22be Reinitialize controls after continuing from loadstate
This should prevent annoying controls getting lost problem.
2011-09-24 06:10:12 +03:00
Ilari Liusvaara
a9edf4cb30 Make autofire pattern repeat in absolute time, not linear time 2011-09-24 06:09:25 +03:00
Ilari Liusvaara
685c2f7deb lsnes rr0-β10 2011-09-23 23:35:52 +03:00
Ilari Liusvaara
7bb6006f9d Major documentation rewamp 2011-09-23 22:46:43 +03:00
Ilari Liusvaara
b1295a3f11 Remove errant tab from joystick message 2011-09-23 22:46:33 +03:00
Ilari Liusvaara
2d06ca649c Small documentation fixups regarding joysticks/gamepads 2011-09-22 23:46:10 +03:00
Ilari Liusvaara
7f9c7a5f96 Don't hit the watchdog during executing delayed reset 2011-09-22 14:55:36 +03:00
Ilari Liusvaara
f0c3f7b61c Use dedicated callbacks for mouse/close, not commands 2011-09-22 14:54:00 +03:00
Ilari Liusvaara
20521e13dd lsnes rr0-β9 2011-09-22 08:05:15 +03:00
Ilari Liusvaara
de7cc3a980 Rewrite modifier matching algorithm
The previous modifier matching algorithm was seriously buggy. For instance
thinking that it should return true if set={}, trigger={shift} and
mask={shift}, which is totally wrong.
2011-09-22 08:00:09 +03:00