Commit Graph

3803 Commits

Author SHA1 Message Date
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
hi-coder 961a467f92 win32: add "paused" text to caption 2011-05-11 02:36:43 +00:00
zeromus b1e92e6cb0 win32: get rid of some broken cruft leftover from the last console checkin 2011-05-09 05:46:33 +00:00
zeromus b26e760d2c win32: allow stdio redirect in some cases where it was broken before 2011-05-01 05:49:25 +00:00
riccardom 9432c70bd2 Update Changelog 2011-04-30 16:06:03 +00:00
mtabachenko 2d1a6d34bf OpenGL:
- fix alpha blending (fixed storm clouds in NSMB at the beginning);
2011-04-29 11:36:47 +00:00
zeromus cd38ecbd34 vio2sf: add updated patch 3026630 with newer features and fix a bug in sound viewer tool dialog management 2011-04-27 05:14:40 +00:00
zeromus c28b2423cc win32: add hicoder patch 3292481 "Windows File Association patch" (its optional) 2011-04-27 04:14:38 +00:00
riccardom 1b647bc46a cocoa: Update xcode project files
From rogerman, #3259154
2011-04-20 16:21:08 +00:00
riccardom 88c7d5d906 emufile: Fix compilation on big endian systems
From rogerman, #3289150
2011-04-20 07:02:42 +00:00
zeromus 3014da89b3 use EXCEPTION_UNDEFINED_INSTRUCTION instead of magic number 0x04 2011-04-20 06:26:42 +00:00
riccardom fb317f2717 slot2_gbagame: fix include path of path.h 2011-04-19 07:00:15 +00:00
riccardom 7312b2844d gtk: Fix some typos in metaspu modes
From Tobias Jakobi
f3a9682499
2011-04-18 21:38:22 +00:00
riccardom 625c8c270f wx: Add licence header file to wxMain.cpp
Please double check it's correct :)
2011-04-18 21:15:11 +00:00
riccardom 5fa0218104 wx: fix compilation with libsoundtouch
The way we are building right now we have to link against
libsoundtouch even if the frontend does not use it.
Read: we have to build SPU and metaspu per frontend and
not globally.

From Jan Bücken, #3288648
2011-04-18 21:00:20 +00:00
riccardom dd351a80b9 build: Shut up aureconf warnings with autoconf 2.68
autoreconf: running: aclocal --force 
configure.ac:46: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/libs.m4💯 AC_CHECK_LIB is expanded from...
configure.ac:46: the top level

The fix is to put AC_LANG_PROGRAM inside []
2011-04-18 20:01:59 +00:00
riccardom dc78778ae2 wx: link against xlib
/usr/bin/ld: PadSimple.o: undefined reference to symbol 'XLookupKeysym'
/usr/bin/ld: note: 'XLookupKeysym' is defined in DSO //usr/lib/libX11.so.6 so try adding it to the linker command line
//usr/lib/libX11.so.6: could not read symbols: Invalid operation
2011-04-18 17:12:49 +00:00
riccardom 9acc466729 cocoa: Update copyright year
From rogerman, #3259154
2011-04-17 16:34:42 +00:00
riccardom f6393a9210 ctrlsdl: Fix compilation without OpenGL
Since r3947 ctrlssdl.h breaks the build with a compile
error in build environments that don't have GL.h such as
Mac OS.

[xrmx: define screen_texture anyway to be on the safe side]

Based from a patch from Sidney Markowitz in #3288504
2011-04-17 15:31:51 +00:00
riccardom 49b5243c1a cocoa: Update cocoa frontend
From Roger Manual, #3259154:

BUGFIXES:
- Fixed the bug tracker website link used by the "Submit a Bug Report" command
  in the Help menu.
- Fixed issue where if one of the text files used for the About window was
  missing from the DeSmuME/Contents/Resources folder, then the entire panel
  didn't show.

CHANGES:
- Frame skipping options have been removed in this release. The way it works
  now, drawing a frame in Cocoa takes an insignificant amount of time. In other
  words, skipping Cocoa frames does NOT yield any significant speed improvement.
  It may be possible to gain speed by skipping frames in the actual NDS GPU
  rendering, but this is an emulation engine issue, not a Cocoa frontend issue.
- Added OBJ layer toggling in the View/Layers menu.
- Files are now saved in more logical locations. Save states slot files are now
  saved in "~/Library/Application Support/DeSmuME/(DeSmuME version number)/States".
  All other files (like battery files) are now saved in the same directory as the ROM.

DEVELOPER:
- Added Application Creator Code for DeSmuME. Registered 'DSmM' with Apple.
- Reworked the execution loop for better maintainability.
- Preliminary code refactoring for better DS controller function. Cocoa DeSmuME now
  uses the NDS_beginProcessingInput() and NDS_endProcessingInput() functions, which
  helps input support for some games. Note that this change probably breaks support
  for PowerPC Macs, but I don't know if we should be supporting PowerPC Macs anyways...

xrmx: I'm not able to build this with xcode because 10.4 SDK does not like gcc4.2 but
      the cocoa stuff builds fine in cocoa so applying it.
2011-04-16 15:27:39 +00:00
riccardom 1d4977cb4b cocoa: Update Rakefile
Something is still missing, compilation get stuck
at ../libs/emufat.cpp without error messages though.
2011-04-16 15:15:22 +00:00
riccardom 234e2b755f build: remove duplicate texcache entry in Makefile.am 2011-04-16 14:47:49 +00:00