Commit Graph

4336 Commits

Author SHA1 Message Date
zeromus dad016d6e5 win32: change compactflash rompath to use the actual rom's path instead of the rom path setting configuration (that isnt what anybody wanted) 2011-07-26 22:04:27 +00:00
wntrmute f2c0c41bee add slot1_retail_nand.cpp to xcode project 2011-07-26 19:46:10 +00:00
riccardom 182f81fb46 Fix memory block alignment in RomBanner for 4-byte wchar_t, #3354040
From rogerman:

The RomBanner struct requires UTF-16 strings for the six different ROM titles.
Currently, we use wchar_t buffers to define the memory blocks where the title
strings are supposed to go. Using wchar_t is fine for compilers that assume a
2-byte wchar_t. But compilers that use a 4-byte wchar_t will misalign
the memory blocks.

I've submitted a new patch that changes all the wchar_t in RomBanner titles
to u16 for all ports. It took me a while to research the dependencies on
titles, and to make sure I didn't accidentally break something in the
Windows port.

As for the wcscpy() deal in the RomBanner constructor, it's an arbitrary
default init value that we don't actually use in practice, so I removed it.
If a particular port wants to know what to display for the titles when a
ROM isn't loaded, there are plenty of ways to figure this out. Or they can
just check the titles for an empty string, which the constructor inits the
titles to before the wcscpy() call.

For CHEATS::save(), I removed the dependency on using titles. The ROM name
we write to file is also an arbitrary value which we don't actually
reference in practice. I changed it to use gameInfo.ROMname, since we're
already using gameInfo.ROMserial.
2011-07-23 16:01:48 +00:00
riccardom 4bfd29c702 cheatSystem: headerId should be const 2011-07-23 15:34:00 +00:00
zeromus 657759c3f4 win32: newer console title format, somewhat more useful. now %EXENAME% %ARGS% to show you how you launched it. let me know what you think. also let me know if it crashes while trying to parse something! 2011-07-23 09:17:58 +00:00
zeromus 25b53c7fa3 win32: some minor clarifications to console behaviour. console behaviour is now verified to be pretty dang good in cygwin/msys bash as well as cmd.exe so long as you launch with "cmd /c desmume.exe". 2011-07-23 08:21:21 +00:00
normmatt234 d1309e73ac fix missing return. 2011-07-21 09:36:14 +00:00
milor 1d4b33903d Update spanish language 2011-07-13 21:25:00 +00:00
lainz 0364f55d14 Updated spanish translation. 2011-07-10 14:25:31 +00:00
zeromus 2049720303 win32: add another @!#*(@#$ing language, braziliano this time. now another 3% of the world population can use desmume without having to be arsed to learn internetional. 2011-07-08 19:24:36 +00:00
zeromus b9e3356bd3 win32: revert korean language patch. korean .rc change removed all non-ascii latin characters. not acceptable. try again without losing them. 2011-07-08 02:50:32 +00:00
normmatt234 91d2e0e596 opps typo. 2011-07-07 04:20:17 +00:00
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