Commit Graph

3759 Commits

Author SHA1 Message Date
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
riccardom 2c318062b7 utils: correct emufile.h include in xstring.h
This helps cocoa rakefile build.
2011-04-16 14:16:24 +00:00
pengvado e1c70f0ac6 cli: fix a freeze when turning FPS limiting back on after some boost mode
(regression in r3944)
2011-04-15 15:31:50 +00:00
zeromus a99026df03 do the same for standard palettes 2011-04-14 21:38:15 +00:00
zeromus c44819873a add boot-up vram randomization for homebrew games, to more accurately mimic being loaded from a flash card that leaves behind some junk 2011-04-14 21:05:19 +00:00
riccardom 2c8a4603ab path: don't use glib in LoadModulePath for cocoa build
From rogerman in #3259154
2011-04-13 20:50:48 +00:00
riccardom 4d1b0b5809 dma controller: rename check to dmaCheck
The conflicting macro is the check() assertion macro defined
in Apple's CoreFoundation framework, specifically in the
AssertMacros.h file.
Unfortunately, this file must be included in the Cocoa port.

From rogerman in bug #3259154
2011-04-13 20:38:55 +00:00
riccardom 713b5dc1b2 types: tidy some windows ifdefery 2011-04-10 17:12:11 +00:00
riccardom 7dd20a3330 NDSsystem: remove old compat code in NDS_setTouchPos/NDS_releaseTouch
The cli and gtk frontend works fine without it, a patch
has been posted in tracker to avoid that for the cocoa
one so i think we can safely remove it.
2011-04-10 12:20:58 +00:00
riccardom 978fdfe680 Fix include format
From rogerman at #3259154
2011-04-09 23:25:11 +00:00
riccardom e441291f32 bump gtk min version to 2.10 in configure.ac too 2011-04-09 20:07:41 +00:00
riccardom cdfb727f8d gtk: remove support for gtk < 2.10 2011-04-09 19:50:58 +00:00
riccardom fe4500e44e gtk: Add menu for SPU mode selection
From Tobias Jakobi (liquidacid) at #3250391.
2011-04-09 19:13:45 +00:00
riccardom ae4a1c64e3 Disable hud by default on autotools build
The hud libagg crash on 64bit so better have it off by
default. Use --enable-hud to enable it.

From Tobias Jakobi (liquidacid) at #3250391.
2011-04-09 18:36:39 +00:00
riccardom 9a32b37048 Add detection and build support for libsoundtouch and so metaspu
Based on patches from Tobias Jakobi (liquidacid) in #3250391
2011-04-09 17:12:32 +00:00
riccardom 74b8df277c metaspu: have it compiled under gcc too
Based on patches from Tobias Jakobi (liquidacid) in #3250391
2011-04-09 17:09:26 +00:00
zeromus 79684686c3 add texcache speedup patch #3275389 - be on the lookout for stale or glitched textures, but i think its safe. 2011-04-05 20:36:09 +00:00
zeromus eb3963bc37 fix bug in rasterizer linehack rendering, add 3d config option since it still breaks hotel dusk, and make nocash debug messages always show up, even with no #define DEVELOPER. 2011-04-02 18:39:26 +00:00
mtabachenko ce73043bec winport:
- add antispam for cheaters :)
2011-03-28 09:27:44 +00:00
zeromus e3b27ecd16 apparently fix some situations where too many cheat codes are entered. codr's patch 3200856 2011-03-27 20:08:09 +00:00
mtabachenko bd5cccef40 fix typo on last rev, sorry 2011-03-27 14:38:58 +00:00
mtabachenko 47f781d26d OpenGL:
- fix line segment detection (fix missing textures in Garfield's Nightmare, Zelda PH);
- recreate toon texture on load state;
2011-03-27 14:21:11 +00:00
mtabachenko ea19f9cf6c GE:
- removed hacks from Geometry FIFO;
2011-03-26 17:06:32 +00:00
riccardom 40d89c77f6 gtk: Fix build on gtk 2.24 2011-03-25 20:48:27 +00:00
riccardom 42ffac8197 firmware: don't leak fp when not patched. 2011-03-25 17:15:14 +00:00
riccardom b3122f97ee gtk-glade: Fix a couple of off-by-one reported by cppcheck 2011-03-25 17:01:24 +00:00
pengvado c4c9cf60f6 drawscanline: factor bounds check out of the loop.
Initialize edge_fx_fl even if width=height=0.

Fix a freeze/slowdown in Okamiden (#3240891).
Also a slight softrasterizer speedup.
2011-03-24 22:00:54 +00:00
zeromus 9e70ebca45 fix freebsd libfat compiling? 2011-03-24 21:51:17 +00:00
riccardom a070dc091b Update and reenable pthreads
Apply pengvado pthread backend for task. We are probably
not gaining that much but it is better than a stub :)

Removed the rasterize.cpp hunk sice zeromus likes it more
as it is now.

Patch from  #3203082.

From: Loren Merritt <pengvado@akuvian.org>
2011-03-24 18:15:40 +00:00
zeromus 972d9e28ea fix memory leak in slot2 mpcf 2011-03-21 02:52:16 +00:00
gocha d77e3ee425 RAM Search: fix reset code and update the current values for every addresses.
RAM Search: workaround for auto search restart.
2011-03-21 00:22:53 +00:00
zeromus 143217af2c sync emufiles between emus 2011-03-20 18:33:41 +00:00
riccardom 80fd38374f Reinitialize GL after SDL_SetVideoMode
On some systems SDL_SetVideoMode resets OpenGL context,
dropping the screen texture and leading to glTexSubimage2D
failure when using the --opengl-2d switch.

Attached patch reinitialized OpenGL after window resize.

This is a forward port of Jakub Higersberger patch at
 #2839785. This fix the broken resize with cli frontend
reported in #3195218.
2011-03-16 21:42:53 +00:00
riccardom 8422f0ab7c cli: put 'now' variable declaration were due
Note to self: this is C not python.
2011-03-12 16:41:08 +00:00
riccardom 3713c1ba7f cli: avoid some overhead with DISPLAY_FPS defined
Avoid a call to SDL_GetTicks() which in turn call the
gettimeofday() syscall when DISPLAY_FPS() is defined.
2011-03-09 22:07:44 +00:00
riccardom 18349689c8 cli: better FPS limiting
Simplify and make the fps limit behave better.

From: Thomas Jones <thomas.jones@utoronto.ca>

[rm: remove fps_limiter_frame_period now unused and fixup whitespace]
2011-03-09 21:55:48 +00:00
riccardom 9d0c383e93 autoconf: use AC_CANONICAL_HOST not AC_CANONICAL_TARGET
AC_CANONICAL_TARGET is for compilers, desmume is not a compiler. It
figures out what platform the compiler should generate binaries for.

AC_CANONICAL_HOST is for figuring out what platform you will run on.

From: Thomas Jones <thomas.jones@utoronto.ca>
2011-03-09 21:15:40 +00:00
zeromus ade66fd351 fix bug from r3935 which broke textures when loading savestate while using softrasterizer 2011-03-08 07:00:22 +00:00
zeromus 782a15da11 don't render rotscaled bitmap sprites with alpha==0 2011-03-06 22:03:06 +00:00
zeromus 9897125f9a add hq4x filter. i can't tell if i did it right, because all hqx filters look broken to me even when theyre working. 2011-03-05 20:04:05 +00:00
riccardom 009029b15d rasterize: check if _MSC_VER is defined before checking against a version 2011-02-28 18:08:13 +00:00
riccardom e7064a71b6 gtk: Remove usage of deprecated gtk_label_set 2011-02-28 18:06:02 +00:00
mtabachenko fc0daf243a - fix line segment detection; 2011-02-25 14:57:01 +00:00
zeromus bf013a7c18 more robust dsi touch 2011-02-25 07:21:52 +00:00
zeromus 4a330878ae add --dsi-mode=1 and dsi TSC emulation. this does not constitute "dsi support". you will probably think that it does anyway. 2011-02-22 07:13:20 +00:00