Commit graph

238 commits

Author SHA1 Message Date
Ilari Liusvaara
27d639b2b1 Use bsnes core internal IPS and BPS patchers
Now .bps patches are also supported
2011-12-12 15:27:44 +02:00
Ilari Liusvaara
3bc312c938 Move ROM patcher to its own source code file
Makes it easier to add new patch formats.
2011-12-11 19:49:33 +02:00
Ilari Liusvaara
b5a6379d46 lsnes rr0-β25 2011-12-03 10:42:33 +02:00
Ilari Liusvaara
77a2d9e906 Fix zip_writer
zip_writer accidentially set bit 3 in central directory but not in
local file header. This bit should not be set, so don't write it to
central directory. Fixes warnings from info-zip and errrors from advzip.
2011-12-03 10:38:09 +02:00
Ilari Liusvaara
3edb715eb8 Call lua_close()
Prevents Valgrind from complaining about some memory leaks...
2011-11-29 11:46:58 +02:00
Ilari Liusvaara
f4d3774c13 Oops, last version was missing some files 2011-11-27 23:23:50 +02:00
Ilari Liusvaara
caffc7042c sdmp2sox: Refactor a lot and add AR correction mode 2011-11-27 23:12:44 +02:00
Ilari Liusvaara
6b6176bbdb sdmp2sox: Fix NTSC overscan handling 2011-11-26 22:28:58 +02:00
Ilari Liusvaara
27e5ccb00c sdmp2sox: Write silence to sound track when using -l or -L 2011-11-26 16:52:57 +02:00
Ilari Liusvaara
e3df37d724 lsnes rr0-β24 2011-11-26 16:29:52 +02:00
Ilari Liusvaara
81fdf41e3b Lua: Add table _SYSTEM 2011-11-26 05:10:44 +02:00
Ilari Liusvaara
5b1a808645 Fix two bugs in new movie checking code
- Fix off-by-one in movie comparison code.
- Fix wrong offsets for poll counters and lag in compat code
2011-11-24 11:33:05 +02:00
Ilari Liusvaara
fde7c4e09a Be backwards compatible with old savestates 2011-11-24 09:57:23 +02:00
Ilari Liusvaara
0236a1d606 Don't hash movies
Movie hashing is not a good idea due to how slow it is. Do raw comparison
without hashing instead.
2011-11-24 08:51:25 +02:00
Ilari Liusvaara
1e22030a1b Merge remote-tracking branch 'origin/mac-foreground-fix' into mfgf 2011-11-21 04:45:21 +02:00
Ilari Liusvaara
7554e36cf2 Wxwidgets: Allow compiling on Mac OS X
common.hpp was missing include for <string>.
2011-11-21 04:44:40 +02:00
Ilari Liusvaara
d896e8f6e0 Wxwidgets: Allow application to bought to foreground on Mac OS X 2011-11-21 04:42:29 +02:00
Ilari Liusvaara
0a7d6bcdb4 lsnes rr0-β23 2011-11-20 10:10:11 +02:00
Ilari Liusvaara
d4ef03a0f2 Fix crash upon enter/leave full console followed by repaint
It turns out that briefly enabling full console mode followed by
triggering a repaint crashed the emulator with SIGSEGV.

The cause is that window size is not properly updated upon entry/leaving
of full console mode. Fix this. This also fixes full console mode to
display properly.
2011-11-20 09:36:23 +02:00
Ilari Liusvaara
984120972e Load RTC correctly if loading savesate as a movie 2011-11-19 08:11:26 +02:00
Ilari Liusvaara
9f74ef1db3 Wxwidgets: Save jukebox on exit 2011-11-19 08:10:50 +02:00
Ilari Liusvaara
6c90d99424 Fix makefile
Extended regexp mode is -E, not -r.
2011-11-18 10:46:33 +02:00
Ilari Liusvaara
714748c219 Some wxwidgets code cleanup 2011-11-17 12:21:13 +02:00
Ilari Liusvaara
fb3b9071f9 sdmp2sox: Add offset by 2s and offset by 2s with 10 frames modes 2011-11-16 21:58:14 +02:00
Ilari Liusvaara
1e8c7c342d Try to use SDL_ANYFORMAT if possible 2011-11-15 05:18:32 +02:00
Ilari Liusvaara
43fe0ba283 Direct framebuffer
Allow screen to directly write into mapped framebuffer. Should be slightly
faster.
2011-11-15 05:10:12 +02:00
Ilari Liusvaara
8d832263fb search-memory update
This function performs update of old values without discarding new value.
Handy when you don't know how some value has changed in between.
2011-11-13 20:30:15 +02:00
Ilari Liusvaara
cc41fb792e Fix mixup between macro and field 2011-11-13 18:58:02 +02:00
Ilari Liusvaara
769f90c2dc lsnes rr0-β22 2011-11-12 00:46:27 +02:00
Ilari Liusvaara
109a37fdf4 Fix the version number in window title 2011-11-12 00:41:53 +02:00
Ilari Liusvaara
22a41d1094 Some core debugging features:
- Lua function hashing core state
- Command to dump core state to file.
2011-11-12 00:40:02 +02:00
Ilari Liusvaara
18663a4caa Add pause-on-movie-end 2011-11-12 00:39:16 +02:00
Ilari Liusvaara
91279556cd Control bsnes random seeding
Even if bsnes randomness is disabled, the random seed is in savefiles,
so control it to make debugging easier.
2011-11-12 00:38:37 +02:00
Ilari Liusvaara
244454fdf0 Add patch to fix unserialization of 64-bit integers 2011-11-11 03:23:50 +02:00
Ilari Liusvaara
99059b2061 Merge branch 'master' of gite://key-Ilari@localhost/pub/lsnes 2011-11-10 21:37:44 +02:00
Ilari Liusvaara
73e59c092d Add missing ignore for src/fonts/font.cpp 2011-11-10 21:37:01 +02:00
Ilari Liusvaara
8d0a39e1df Fix wrong variable in commented out debug code in rrdata.cpp 2011-11-10 21:23:04 +02:00
Ilari Liusvaara
0fb3536c7a Add Lua function movie.read_rtc() 2011-11-10 21:22:38 +02:00
Ilari Liusvaara
54e0ed37e0 save_core_state() is not supposed to call runtosave! 2011-11-10 21:22:05 +02:00
Ilari Liusvaara
5138e9f8a9 Lua on_frame() callback 2011-11-10 21:20:34 +02:00
Ilari Liusvaara
88e27dee03 Don't misdecode 1 byte repeat counts 0xFE and 0xFF 2011-11-10 00:54:28 +02:00
Ilari Liusvaara
63fbeeed5a Fix signedness mixup in loading rrdata
This bug caused the emulator to crash if rrdata repeat contained bytes
with high bit set.
2011-11-10 00:39:51 +02:00
Ilari Liusvaara
63ec84ba93 lsnes rr0-β21 2011-11-09 20:04:07 +02:00
Ilari Liusvaara
f65e0b7139 Fix memory corruption bug in lcscreen::load()
lcscren::load() didn't compute the number of pixels to load correctly.
The data has 2 byte header followed by 3 byte pixels, meaning the number
of pixels is (size - 2) / 3. But the code assumed 2 byte pixels, causing
load loop to trash memory after end of screen memory.
2011-11-09 19:48:58 +02:00
Ilari Liusvaara
85d00b243e SNES is little-endian, not big-endian! 2011-11-09 19:18:40 +02:00
Ilari Liusvaara
2b7620f6d5 Patch problems in libsnes
Add patches for libsnes for making it suitable for rerecording and
add code to support some of the new features (remove time interception).
2011-11-09 02:08:57 +02:00
Ilari Liusvaara
ff4d045882 lsnes rr0-β20 2011-11-09 00:05:57 +02:00
Ilari Liusvaara
44d8822af2 Make wxwidgets gui load and save various settings 2011-11-08 23:59:10 +02:00
Ilari Liusvaara
348d597543 Fix crash on multiline aliases 2011-11-08 23:54:19 +02:00
Ilari Liusvaara
223c5d7cea Fix zero luma corner case 2011-11-08 23:09:49 +02:00