Commit Graph

4174 Commits

Author SHA1 Message Date
normmatt234 af1c040eb5 Fix read below 8000h to support wrapping. 2011-07-07 04:19:26 +00:00
riccardom 7c7fa25c0a Rename ALIGN macro do DS_ALIGN
Anthony J. Bentley reports that desmume does not compile
on OpenBSD when the hud is enabled in bug #3148356.

After a few he reports that Stuart Henderson of OpenBSD
found the problem. The macro definition of ALIGN() conflicts
with a definition in /usr/include/machine/param.h.

So rename ALIGN macro to DS_ALIGN.
2011-07-05 07:33:10 +00:00
zeromus 55c8021624 win32: add korean language resources 2011-07-05 07:27:24 +00:00
zeromus bbddf0bc24 pseudorandomize LCD/PAL/ITCM/DTCM/MAINMEM for homebrew (previously just pal and LCD was pseuodorandomized) 2011-07-03 03:02:27 +00:00
mtabachenko b050640b95 - fix Windows port compiling (added include windows.h for MAX_PATH declaration) 2011-06-28 12:50:10 +00:00
zeromus 60c3c1a91a debug print how many rasterizer cores got booted up 2011-06-28 03:11:25 +00:00
riccardom 0c7d5d796d Fix buffer overflow when creating firmware.dfc file string
When the user uses an external firmware image, there is a 
call to getpathnoext() in firmware.cpp:571 in order to
generate a file name for the saved firmware config file.

The size of the MMU.fw.userfile char buffer is only 260,
as declared in mc.h:73. However, getpathnoext() expects
the buffer size to be MAX_PATH, which is declared as 1024
in types.h:77. The buffer overflow occurs in path.h:293
with the call to strncpy(), which copies 1024 chars into
MMU.fw.userfile, which is only 260 chars.

This patch fixes this bug by setting the MMU.fw.userfile
char buffer to a size of MAX_PATH. This is consistent with
the char buffers used for the other file names.

From rogerman, #3328686
2011-06-25 21:50:00 +00:00
normmatt234 3e29b63554 Fix magic numbers in FIFO code
Add a hack for preGCROMCTRL writes.
2011-06-22 15:41:50 +00:00
riccardom 738c80d67a metaspu: support the PCSX-2 Synchronizer in the Cocoa port
From rogerman, #3320757
2011-06-20 15:01:55 +00:00
wntrmute f165ec8b9f add ifdef to WIFI_Reset 2011-06-18 03:02:46 +00:00
zeromus da92d102f4 add a printf to elaborate cause of "SYSTEM POWERED OFF VIA ARM7 SPI POWER DEVICE" for homebrewers (main() returned) 2011-06-17 05:17:55 +00:00
luigi__ d1e5efcda9 wifi: make WIFI_RXPutWord() always defined. 2011-06-16 17:14:29 +00:00
zeromus fcce252f50 fix wifi.cpp compiling 2011-06-16 16:42:05 +00:00
luigi__ d383d0f5aa Wifi: proper queuing of received packets, emulate TX/RX delays, and misc extra accuracy. Also removed a bunch of redundant code.
NSMB gets one step further. When Luigi receives Mario's data frames, he tries to use port 094 (REPLY1) to respond, but only writes zero there for whatever reason.
2011-06-16 15:36:08 +00:00
lainz 5f92953103 Improved Spanish Translation. 2011-06-11 21:49:01 +00:00
riccardom 8032d4dee4 configure: better libagg detection
user heftig says that he can't find Agg_init() at link time when he uses
--enable-hud. Fix AM_CONDITIONAL to check for the proper variable and to
set in true only if --enable-hud was set.

Relayed by zeromus in a comment in #3250391
2011-06-08 10:03:30 +00:00
riccardom 93304143f9 gtk-glade: Fix wrong savestate slot, bug #3305716
satelight reports the menu item position for savestates does
not match the slots they are saved.
As zeromus explains the pattern should be:

F1 saves to ds1
F2 saves to ds2
F10 saves to ds0
recent savestates list looks like:
1 myfile.ds1 F1
2 myfile.ds2 F2
...
0 myfile.ds0 F10

Based on a patch from satelight.
2011-06-05 21:33:29 +00:00
riccardom b140005236 wx: Add ability to clear recent file list
From Jan Bücken (nooris), #3301520
2011-06-05 17:29:08 +00:00
riccardom 31027b491d Changelog: oops, remove duplicated line :) 2011-06-05 16:57:58 +00:00
riccardom 4761353f94 List Jan's contributions to wx frontend in Changelog. 2011-06-05 16:53:53 +00:00
riccardom c7e6149f1f gtk: remove variable set but not used reported by gcc 2011-06-05 16:46:48 +00:00
riccardom 8348f883bf gtk: call launch after rom reset
Jan reports that if you call reset when a game is paused
the statusbar would wrongly report the game as playing
when it is actually paused. Jan's attached patch removes
the call to desmume_resume() and the status bar update.
I think the intent here is different and the plan was to
reload the game so just call Launch directly as already
Jan noticed it would do the right thing.

Based on a patch from Jan Bücken (nooris), #3288654
2011-06-05 16:43:18 +00:00
riccardom 2691463d4a gtk: open recent should behave the same as open
If running, pause before loading a new rom

From Jan Bücken (nooris), #3288654
2011-06-05 16:28:48 +00:00
zeromus 59ec9700c6 win: fix [3311520], which causes MPCF path to get initialized wrongly and the whole c:\ drive to get scanned sometimes 2011-06-04 17:04:46 +00:00
riccardom 9b2821de3a wx: Pause spu and emulation before loading a rom
xrmx: kept only the hunk that pause and not the one
that reenable the previous state, i think we should
stay paused and the user should act to continue 
playing.

Based on a patch from: Jan Bücken (nooris), #3301520
2011-06-03 17:41:41 +00:00
riccardom 0a5a3c383c wx: Change rotation after setting the menu bar
I need to set the menu bar before setting the window size.
Otherwise it is a little bit too short.

From: Jan Bücken (nooris), #3301520
2011-06-03 17:29:57 +00:00
riccardom 073c8844e0 wx: Fix recent file list
From: Jan Bücken (nooris), #3301520
2011-06-03 17:24:41 +00:00
riccardom 4c0c82c92f wx: fixup window icon
Make it work here and maybe even in a portable way.
2011-06-03 17:16:40 +00:00
riccardom fae159d2ec wx: Add window icon
This is not portable on windows and actually it's not even
working here. Anyway it should be working for Jan
otherwise it wouldn't have posted the patch right? :)

From: Jan Bücken (nooris), #3301520
2011-06-03 16:58:08 +00:00
riccardom b7a9d5085f wx: keep execute and SPU_Pause together
execute=false and SPU_Pause(1) belongs together (avoid sound problems).

From: Jan Bücken (nooris), #3301520
2011-06-03 16:40:09 +00:00
riccardom 3503f1cc56 wx: reorder some code
Spring cleanup:
After this patch the file wxMain.cpp is ordered as follows:

1) header
2) includes
3) vars (and defines)
4) the wx oninit function that every wx project needs
5) the desmume class functions
        5a) for functionality and events (e.g. for clicks on buttons, etc...)
        5b) to load the menu
6) the wx event table

[xrmx: i hate these labels before code :)]

From: Jan Bücken (nooris), #3301520
2011-06-03 16:33:51 +00:00
riccardom 1d43b346fe wx: remove duplicated code for the GUI menu
We have a fair chunk of duplicated code to build the GUI
menus, remove the monolithic one in favour of the one
splitted in smaller functions.

From: Jan Bücken (nooris), #3301520
2011-06-03 16:28:57 +00:00
mtabachenko 1cbd6afa28 cheats:
- fix bug for import from R4 cheats base (removing empty codes from list);
2011-06-03 10:38:46 +00:00
mtabachenko f8408fdab2 DING! :D 2011-05-25 17:40:35 +00:00
zeromus 4c8c0e0b72 win32: caca en espanol 2011-05-25 02:37:08 +00:00
zeromus 8c69f8ac3a win32: remove redundant "default size" menu item which didnt always work (size 1x should be used instead) 2011-05-24 21:31:11 +00:00
riccardom 0a40273b16 Spring cleanup, remove CRLF from Makefile.am 2011-05-24 17:18:04 +00:00
riccardom c922d67e86 Fix make distcheck 2011-05-24 17:06:58 +00:00
mtabachenko 8d51fdfbbe slot1:
- add support retail cartridge with NAND flash (Made in Ore/WariWare D.I.Y.);
winport:
- add choose Slot 1 device (Menu: Emulation->Slot 1);
- fix change type of R4 cheats base;
- fix printlog function;
2011-05-24 12:51:36 +00:00
mtabachenko 13ae3664ab cheats:
- add support R4 encrypted cheats base;
cheats (winport):
- fix GUI bugs;
- add boxcheck in export dialog;
- add convert internal cheats to AR;
- add select R4 cheats base format (Path Settings);
- cheats base file moved to cheat folder (CHEAT.DAT/USRCHEAT.DAT);
2011-05-19 12:54:00 +00:00
zeromus 10f649e843 potentially fix a ton of bugs in the cheat system by going through the correct memory access APIs. also potentially break some cheats, because i didn't test any of it. 2011-05-17 19:47:37 +00:00
riccardom 6009d46485 NDSSystem: Merge NDS_LoadROM common code
Move the path stuff that is different between platforms
to an helper in order to share the common code.

The !WINDOWS should receive a bit more love though.
2011-05-15 22:05:57 +00:00
riccardom 3c92ad957e iNDSSystem: fix call to DLDI::tryPatch in !WINDOWS NDS_LoadRom 2011-05-15 17:55:51 +00:00
riccardom 29fa5037bf NDSSystem: call fillGap() after loading romdata in NDS_LoadRom !WINDOWS 2011-05-15 17:47:03 +00:00
riccardom 1b1d4acdd3 NDSSystem: fixup indendation in NDS_LoadROM for windows 2011-05-15 17:32:29 +00:00
riccardom 0aa0b07733 NDSSystem: cleanup NDS_LoadROM()
Rearrange and update some code in !WINDOWS NDS_LoadROM() so
that it is easier to see the difference with the WINDOWS one.
2011-05-15 17:27:36 +00:00
riccardom 64d9792067 wx: don't crash on pause if no rom is loaded
A different version of a patch from Jan Bücken (nooris), #3288648
2011-05-15 16:41:51 +00:00
riccardom 18110b0db2 wx: white space cleanup
Taken from a patch by Jan Bücken (nooris), #3288648
2011-05-15 16:21:49 +00:00
riccardom 60e8ec45bd NDS_LoadRom: Use gameInfo.romdata to store the rom for !WINDOWS
This makes NDS_FreeROM() works properly and avoid to
allocate the buffer for the ROM data twice.

Thanks to Jan Bücken for reporting the issue.
2011-05-15 15:33:10 +00:00
riccardom 5fc80d83aa wx: Make spu mode and audio driver changeable
From Jan Bücken (nooris), #3288648
2011-05-15 14:35:11 +00:00