The NetBSD Project

CVS log for pkgsrc/emulators/mednafen/Makefile

[BACK] Up to [] / pkgsrc / emulators / mednafen

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.46 / (download) - annotate - [select for diffs], Tue Jan 30 14:21:47 2024 UTC (4 weeks, 1 day ago) by ryoon
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

*: Recursive revbump from audio/pulseaudio-17.0

Revision 1.45 / (download) - annotate - [select for diffs], Mon Nov 13 08:38:46 2023 UTC (3 months, 2 weeks ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

mednafen: Sync dependencies with reality.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jul 18 18:02:46 2023 UTC (7 months, 1 week ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

emulators: Adapt packages (where possible) to USE_(CC|CXX)_FEATURES

Revision 1.43 / (download) - annotate - [select for diffs], Sat May 6 19:09:13 2023 UTC (9 months, 3 weeks ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2023Q2-base, pkgsrc-2023Q2
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

*: Recursive revbump from audio/libopus 1.4

Revision 1.42 / (download) - annotate - [select for diffs], Mon Jan 30 17:08:43 2023 UTC (12 months, 4 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

mednafen: remove unused intltool dependency

Revision 1.41 / (download) - annotate - [select for diffs], Sun Sep 11 12:51:33 2022 UTC (17 months, 2 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

*: bump PKGREVISION for flac shlib bump

Revision 1.40 / (download) - annotate - [select for diffs], Thu Aug 11 05:08:19 2022 UTC (18 months, 2 weeks ago) by gutteridge
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

Bump all dependent packages of wayland (belatedly)

The package changed with the addition of its libepoll-shim dependency.
Otherwise, we can get:
ERROR: libepoll-shim>=0.0.20210418 is not installed; can't buildlink files.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Mar 28 10:53:04 2022 UTC (23 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

{c,d,e}*/*: revbump(1) for libsndfile

Revision 1.38 / (download) - annotate - [select for diffs], Wed Jan 19 21:56:43 2022 UTC (2 years, 1 month ago) by nia
Branch: MAIN
Changes since 1.37: +7 -3 lines
Diff to previous 1.37 (colored)

mednafen: update to 1.29.0

   Notable changes since 1.28.0-UNSTABLE:
     * Added support for playing the SCSP-generated music from most Sega
       Model 2A, 2B, 2C, and 3 arcade games.
     * PCE: Fixed a memory initialization bug that could cause graphics
       glitches after the explosion of the first boss in "R-Type".
     * PCE, PCE-Fast: Fixed unreadable black letters in "Order of the
       Griffon"'s password entry screen.
     * SNES: Fixed broken emulation on little-endian PPC64 due to endianness
     * SNES-Faust: Fixed S-DSP pitch modulation being half as strong as it
       should be.
     * VB: Fixed a VSU modulation emulation inaccuracy that severely
       distorted some sound effects in "Virtual Boy Wario Land".

   Notable changes since 1.27.1:
     * Stricter parsing of the configuration file and numeric setting values,
       with error messages now containing line numbers when relevant.
     * Added setting "video.force_bbclear", default value of "0", which when
       set to "1" will force clearing of the backbuffer before drawing every
     * Added setting "video.cursorvis", default value of "hidden", to allow
       for showing the windowing system's mouse cursor within Mednafen's
       window even when it's not required.
     * Implemented an M3U recursion limit of 9, adjustable by the new setting
     * Implemented a limit of 25 on the total number of CD images loaded
       while processing M3U files, adjustable via the new setting
     * Added Zstandard decompression support to game loading, with both naked
       files("zst" extension) and ZIP archives.
     * Added support for loading CD images from ZIP archives when the
       "cd.image_memcache" setting is set to "1". The ZIP archive may be
       loaded directly, or indirectly via an M3U file. An M3U file may also
       exist within the ZIP archive, to allow loading multiple CD images from
       within that ZIP archive. However, loading from a ZIP archive within
       another ZIP archive is not supported.
     * Changed the naming of save games, save states, etc. for
       gzip-compressed games. Previously, a gzip-compressed file named like
       "whatever.nes.gz" would generate a save game named like
       "whatever.nes.<HASH>.sav", but will now generate a save game named
       like "whatever.<HASH>.sav", the same as if "whatever.nes" had been
       loaded instead of "whatever.nes.gz". The old behavior may be restored
       by setting the new undocumented setting "filesys.old_gz_naming" to
     * SS: The emulated reset button mapped to Mednafen's reset command
       key(F10 default) will now respect the "input.ckdelay" setting.
     * SS: The VA0/VA1 motherboard's memory mapping behavior for Low-RAM is
       now emulated instead of VA2's, to fix a crash in "Myst" in the
       generator room.
     * SS: Fixed unresponsive input in "Discworld".
     * SS: Fixed startup abort to CD player screen in the Europe and USA
       releases of "Primal Rage".
     * SS: Fixed abort to CD player screen when trying to start a game demo
       in Gremlin Interactive's "Demo Disc".
     * SS: Fixed inability to skip the intro FMV in "Senkutsu Katsuryu
       Taisen: Chaos Seed".
     * SS: Fixed flickering title screen in the "Saturn Super Vol. 2" demo of
       "Golden Axe: The Duel".
     * SS: Fixed a regression introduced in 1.26.0-UNSTABLE that broke the CD
       audio player in the North America/Europe BIOS.
     * SS: Implemented emulation of the CD block Scan command, to allow the
       scan forward/backward functionality in the BIOS's CD audio player to
     * SS: Fixed a bug in the CD seek handling code that could cause more
       emulator frame pacing and sound buffer underrun issues than strictly
       necessary when CD image memory caching is not enabled, the default.
     * SS: Corrected a few inaccuracies in the relative timing between
       different SCSP EG rates and between different SCSP timer prescaler
       rates(probably with negligible audible effects in commercial game
       sound drivers).
     * VB: Added "left" and "right" options to the "vb.3dmode" setting, to
       allow for more easily showing only the left or right view.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Dec 8 16:04:17 2021 UTC (2 years, 2 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

revbump for icu and libffi

Revision 1.36 / (download) - annotate - [select for diffs], Wed Sep 8 21:05:01 2021 UTC (2 years, 5 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored)

Recursive revbump for audio/jack

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jun 28 09:22:43 2021 UTC (2 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

mednafen: update to 1.27.1.

-- 1.27.1: --

June 4, 2021:
	SS: Added "Herc's Adventures" to the internal database of games to enable SH-2 read/write VDP1 draw slowdown with, to fix a few graphical glitches.

May 28, 2021:
	Error out in the configure script when iconv is not found, rather than later during compilation.

May 26, 2021:
	SNES: Applied untested fix for an issue with libco on PPC64 ELFv2 systems.

May 18, 2021:
	SS: Corrected a few inaccuracies in the handling of SCSP EG phase transitions, per tests on a SS.

May 12, 2021:
	Renamed intl/VERSION to intl/VERSION.txt to prevent a conflict with a system C++ header file on case-insensitive filesystems(problem introduced in 1.27.0-UNSTABLE).

April 29, 2021:
	Demo: Use #pragma(pack) instead of __attribute__((packed)), to work around a bug/design flaw in older versions of gcc that caused the demo module's save
	state test to fail when compiled for a Windows target(where ms_struct is the default structure layout).

April 28, 2021:
	Increased verbosity of bad Q subchannel data error messages in the CloneCD CD image loader.

	Fixed crashing with non-glibc iconv implementations when the user specifies an unsupported character encoding in the debugger's memory editor.

-- 1.27.0-UNSTABLE: --

March 29, 2021:
	SS: Corrected threshold and semantics of envelope level-based blocking of slots' access to SCSP RAM, per tests on a SS.

March 13, 2021:
	SS: Fixed a big-endian target incompatibility in the SCSP emulation code.

	Use ternary operator instead of std::min in endian.h, as doing so somehow causes gcc to produce smaller and faster machine code.

	PSX: Removed incorrect filtering of CD-XA ADPCM sectors based on the file and channel numbers of the first ADPCM sector played,
	originally added in 0.9.24-WIP to fix the speech playback in "Yarudora Series Vol.1: Double Cast", but made unnecessary by later sector buffering
	accuracy improvements; fixes missing audio in the FMVs of "Blue's Clues: Blue's Big Musical".

March 12, 2021:
	PSX: Adjusted which sectors are processed and reflected by GetLocP after SeekP completes to only those before the seek target(which is slightly different
	than SeekL behavior, which also includes the target and a few after, at least with a typical PS1 CD); fixes hangs at different points in
	some versions of "Tomb Raider", a problem initially fixed in, but regressed in 1.22.0-UNSTABLE.

March 9, 2021:
	VB: Block writes to VSU registers and memories when A0 and A1 are not both 0, per tip from "enthusi".

March 7, 2021:
	SS: Implemented incomplete(regarding stack frame data) M68K address error handling, and implemented M68K halting when accessing addresses where any of
	A21-A23 is 1.  Fixes major audio distortion during boss battles in "Lunar: Silver Star Story" due to SCSP DSP register corruption that occurred when
	the game crashed the sound CPU during bootup.

	SNES-Faust: Don't call event handlers in read/write handlers if the read/write is from DMA/HDMA, to avoid problematic recursion and related issues.

	SNES-Faust: Fixed clearing of pending SuperFX IRQ on reset/power; fixes hang/crash in "Stunt Race FX" upon performing a virtual power toggle after the
	game boots up.

March 4, 2021:
	SNES-Faust: Added commented-out fix for "Speedy Gonzales", to enable later.

	SNES-Faust: Added detection heuristics and support for mapping LoROM RAM into $8000-$FFFF, to fix save game saving/loading in "Light Fantasy",
	"PGA Tour Golf", and "Ys III".

February 23, 2021:
	SNES-Faust: Added commented-out fix for "Kishin Douji Zenki Tenchi Meidou", to enable on a per-game basis in the future due to a minor negative
	performance impact.

February 19, 2021:
	SNES-Faust: Reworked cart header detection and cart type detection logic a bit, fixes "Yuuyu no Quiz de Go! Go!".

February 17, 2021:
	SNES-Faust: Return open bus in bits 4 through 6 for reads from $4210; fixes early hang in "Super Professional Baseball II".

	SNES-Faust: Return open bus in bits 0 through 6 for reads from $4211; fixes early hang in "Yuujin Janjuu Gakuen 2".

	SNES-Faust: Added support for special ROM mapping required by "Derby Stallion 96" and "Sound Novel Tsukuru".

February 16, 2021:
	SNES-Faust: Changed power-on APU RAM initialization pattern; fixes hangs in "Ihatov Monogatari" and "Kyuuyaku Megami Tensei".

February 3, 2021:
	Fixed an off-by-1 error in the multithreaded CD reader that would cause a hang if a read was attempted for the sector at LBA 449849.

January 31, 2021:
	Fixed a design flaw that caused the creation of empty backup counter files when automatically attempting to back up a nonvolatile memory save file that
	does not exist.

January 28, 2021:
	SNES-Faust: Disabled the PPU brightness modulation sanity check when compiling a non-dev build, and fixed array misalignment that was causing the code to
	segfault when compiled with stack smashing protection enabled on newer gcc.

January 25, 2021:
	Resync console scroll to the last drawn line of the target unwrapped line in the scrollback buffer, not the first, otherwise the console will erroneously
	scroll up on windowed<->fullscreen transitions when the last line is wider than the console viewport, confusing the user.

January 24, 2021:
	Fixed rendering of Unicode combining characters, fixed handling of combining characters when entering text in the console and debugger prompt, added support
	for pasting into the debugger prompt, cleaned up rendering of the debugger prompt box, implemented automatic scrolling when entering text in the debugger prompt,
	made console text entry automatic scrolling bidirectional, changed console scrollback buffer beginning/end scroll key combos to CTRL+Home/CTRL+End instead of
	SHIFT+Home and SHIFT+End, added support for clearing multiple characters at once in the console and debugger prompts by pressing CTRL with Backspace/Delete.

January 19, 2021:
	Added support for reinitializing game controllers while Mednafen is running by pressing Shift+F3.

	Aborting the input configuration process for a virtual device will now discard the new configuration data, instead of combining it with the old configuration data
	for the not-configured buttons as previously done.

January 12, 2021:
	Added "upper_center" and "center" options to the "fps.position" setting.

January 7, 2021:
	WonderSwan: Fixed RTC month field being incorrectly treated as 0-based instead of 1-based.

	Give the user feedback when they try to toggle a graphics layer that doesn't exist or isn't toggleable.

	NGP: Sanitize some sound-related variables on state load to prevent potential memory corruption.

January 6, 2021:
	SMS: Sanitize more variables on state load.

	NES: Fixed a few instances of missing variable initialization on poweron.

January 5, 2021:
	GB: Sanitize a few variables on state load.

January 4, 2021:
	Automatically create any missing parent directories to the Mednafen base directory on startup.

	Create each Mednafen data directory(e.g. firmware, sav, snaps, etc.) at startup based on the current value of the filesys.path_* setting instead of based on
	its default value, unless the corresponding filesys.fname_* setting is not set to its default value, in which case the directory is not created.

January 2, 2021:
	NES: Sanitize more sound emulation variables on state load.

January 1, 2021:
	NES: Added missing VRC6 variables to save states.

	GBA: Backup save game memory files on game load

	SMS: Fixed a bug that could cause the emulated reset button state to get stuck as pressed if a hard reset occurred within about 20 frames after a soft reset.

December 31, 2020:
	GBA: Added a few missing variables to save states.

	GB: Added a few missing variables to save states.

	PCE-Fast: Renamed encapsulating namespace from "PCE_Fast" to "MDFN_IEN_PCE_FAST", to match the convention of all other emulation modules.

	Made Emulated* MDFNGI objects constant, copied over to a dynamically-allocated MDFNGI assigned to MDFNGameInfo on game load.

December 30, 2020:
	Dynamically-allocate QTRecord LZO work memory.

	Apple2: Dynamically allocate state helper floppy disk object.

	PCE-Fast: Fixed massive overallocation of memory for the VDC background tile cache.

December 29, 2020:
	Optimized MDFN_FastArraySet() for non-ideal counts.

	Utilized MDFN_HIDE in more places.

December 28, 2020:
	Removed incomplete YCbCr MDFN_Surface support unused since 0.9.x, and likely to remain unused.

	Added support for 16bpp graphics output to core Mednafen code and the majority of emulation modules(excluding "pce", "pcfx", "psx", "snes", "ss", and "vb"),
	and added setting "video.glformat" to allow for using this support with OpenGL.

December 25, 2020:
	PSX: Initialize some missed state on reset/poweron.

December 24, 2020:
	Completely rewrote the save state preview image resizing code, so that now it's only somewhat wrong, instead of mostly wrong as before.

December 22, 2020:
	GB: Use fastcall on 32-bit x86, for a tiny performance boost.

	Use MDFN_RESTRICT macro instead of __restrict__.

	NGP: Use fastcall calling convention on 32-bit x86 to boost performance a little bit.

	Apple2: Disabled some expensive asserts when compiling without MDFN_ENABLE_DEV_BUILD defined.

December 20, 2020:
	Birthed pernicious human date/time calculation functions to replace the usage of _gmtime64() and _localtime64() on Windows, for Windows 9x compatibility.

December 14, 2020:
	Set icon using Win32 API functions on Windows instead of relying on SDL_SetWindowIcon(), and use alternate, smaller(and boxier!) window icons when running
	on Windows 9x so the poor beetle doesn't look splatted.

December 12, 2020:
	Don't call SetConsoleOutputCP() on startup on Windows, as it messes up the cmd.exe console on Windows 7(at least) even when Mednafen has exited,
	and for Windows 9x compatibility.

	Pass a pointer to a dummy variable, instead of NULL, as the output thread identifier pointer argument to _beginthreadex(), for Windows 9x compatibility.

	Allow for the absence of GetConsoleWindow() on Windows, for Windows 9x compatibility.

	Automatically attempt to lock file offset 0xFFFFFFFF if the attempt to lock offset 0xFFFFFFFFFFFFFFFF fails with an invalid parameter error on Windows,
	for Windows 9x compatibility.

	Use SetFilePointer(), GetFileSize(), and LockFile() instead of SetFilePointerEx(), GetFileSizeEx(), and LockFileEx() on Windows, for Windows 9x compatibility.

December 10, 2020:
	Dropped usage of and dependency on libsndfile, and added a direct dependency on libFLAC. The only CD image audio file formats/encodings other than raw supported
	now are: FLAC, Ogg Vorbis, Musepack, and uncompressed PCM in AIFF/AIFC, AU/SND, W64, and WAV.

	Require the first four bytes of the tentative Ogg Vorbis file to be "OggS" before calling ov_open_callbacks(), to prevent unnecessary excessive reads when trying
	to determine the type of the audio file, and to avoid treating a non-Vorbis file as Vorbis under certain conditions.

	Open the main settings file for both reading+writing on startup instead of just reading, to allow file locking to work over NFS, and as a quick check to make
	sure the file is writeable before it's too late upon exit.

December 1, 2020:
	Made various changes to the Windows support code, to allow for compiling a non-Unicode Windows build.

November 24, 2020:
	Implemented stream buffering in the FileStream class, now using read(), write(), etc. instead of fread(), fwrite(), etc.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Nov 20 14:54:00 2020 UTC (3 years, 3 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.33: +2 -3 lines
Diff to previous 1.33 (colored)

mednafen: Update to 1.26.1

-- 1.26.1: --

November 8, 2020:
	PSX: Fixed various inaccuracies in the SPU reverb emulation code.

	PSX: Fixed quasi-benign dereferencing of a null pointer in the GPU code when playing a PSF.

November 3, 2020:
	SNES-Faust: Fixed a crash when an MSU1-enabled game tried to play MSU1 audio but no audio tracks existed.

	SNES-Faust: Only create MSU1 multithreaded audio reader object if at least one audio track is available.

November 2, 2020:
	SNES-Faust: Fixed a design flaw in the MSU1 audio track loading code that broke loading of audio tracks when the game's filename included a "%" character.

November 1, 2020:
	SS: Fixed compilation errors after configuring with --disable-debugger.

	SS: Fixed compilation errors with clang.

-- 1.26.0-UNSTABLE: --

October 26, 2020:
	SS: Added "The Lost World: Jurassic Park" to the internal database of games to enable full cache emulation with, to fix most rock face graphical glitches.

October 25, 2020:
	SS: Added "Corpse Killer" to the internal database of games to enable full cache emulation with, to fix the glitchy rotation-zoom effect.

October 24, 2020:
	SS: Fixed major bug, existing since Saturn save state support was added, in the SCU save state code that caused wrong state to be saved(and later restored)
	when an SCU DMA level in indirect mode was active.

	SS: Added "Kaitei Daisensou"/"In the Hunt" to the internal database of games to enable SH-2 read/write VDP1 draw slowdown with, to fix FMV tearing.

	SS: Added "Zero Divide" to the internal database of games to use the data cache read bypass kludge with, to fix a graphical glitch with character portraits.

October 23, 2020:
	SS: Made changes to prevent the CDB emulation from reporting PLAY status until the second sector is read after a seek completes; fixes game-breaking
	problems in "Break Point", "DJ Wars", "Hop Step Idol", and "Tennis Arena".

	SS: Fixed inaccuracies with how CDB playback buffer full auto-pause and resume works; fixes occasional hangs of finite duration in "Dragon Force II" and
	"World Cup France '98: Road to Win" when trying to skip FMVs.

October 22, 2020:
	SS: Added "Mujintou Monogatari R: Futari no Love Love Island" to the internal database of games to use the data cache read bypass kludge with,
	to fix glitches when character portrait graphics change.

October 21, 2020:
	SS: Added "Doraemon: Nobita to Fukkatsu no Hoshi" to the internal database of games to use the data cache read bypass kludge with,
	to fix the blank Game Over screen.

	SS: When a CDB 'Get CD Device Connection' command is issued very shortly after a 'Reset Selector' command, the 'Get CD Device Connection' command
	will now be executed before the resetting effects of the 'Reset Selector' command occur.  Fixes startup hang in the USA version of "Independence Day".

October 20, 2020:
	SS: Slowed down emulated VDP1 pixel plotting performance by a bit less than 20%(10% in 8bpp mode); fixes prematurely cut-off voices in "Paneltia Story",
	and reduces tearing in "Yu-No".

October 18, 2020:
	SS: Added "3D Baseball", "The Crow", "NBA Action", "NFL Quarterback Club 96", "Solar Eclipse", and "Titan Wars" to the internal database of games to
	enable full cache emulation with, to fix minor FMV glitches.

	SS: Added "Thunder Force Gold Pack 1" to the internal database of games to enable full cache emulation with, to fix the glitchy ship sprite in the ending
	of "Thunder Force III".

	SS: Added the Europe releases of "Virtua Cop" and "Virtua Cop 2" to the internal database of games to enable full cache emulation with, to fix
	startup hangs.

	SS: Added "Yu-No" to the internal database of games to enable full cache emulation with, to fix the problem of the intro FMV ending too soon.

	SS: Added "Horror Tour" to the internal database of games to enable full cache emulation with, to fix graphical glitches on the save and load screens.

	SS: Added "Falcom Classics II" to the internal database of games to enable SH-2 read/write VDP1 draw slowdown with, to fix tearing in the intro FMV of "Ys II".

	SS: Added "Tokimeki Memorial: Forever With You" to the internal database of games to enable SH-2 read/write VDP1 draw slowdown with, to fix the glitchy
	arm sprite in the Konami intro.

	SS: Added "Virtua Fighter Kids" to the internal database of games to use the data cache read bypass kludge with, to fix a major FMV glitch.

October 17, 2020:
	SS: Made a very small SSE2-based optimization to the cache tag evaluation code.

October 16, 2020:
	SS: Removed incorrect write mirrors for the SH-2 CCR register; fixes FMV glitches in "NFL Quarterback Club 97".

	SS: When full cache emulation is enabled(e.g. via database), alternate slave CPU and bus sharing emulation code will be used, to reduce
	disproportionate sharing of the bus(it's still not perfect, however).

	SS: SH-2 PC-relative MOV.W and MOV.L loads are now correctly treated as instruction fetches instead of data fetches with respect to the
	OD/ID bits of CCR.

	SS: The SH-2 WB/EX pipeline stall emulation logic is now always enabled, instead of only being enabled in full cache emulation mode as it was previously.

October 12, 2020:
	SS: Moved SH-2 cache entry invalid bit from bit31 of the internal combined tag variable to bit0, for slightly better code generation.

October 11, 2020:
	SS: Slave SH-2 on/off is now handled outside of the regular event handling system to prevent a crash under certain conditions.

October 9, 2020:
	SS: Extended the handling of VDP1 command execution slowdown on SH-2 CPU reads/writes to also include SH-2 DMA accesses.

October 5, 2020:
	SS: Bumped up minimum seek timing delay, to compensate for upcoming general CPU timing improvements in the games sensitive to seek timing.

October 4, 2020:
	SS: The SR value loaded with RTE is now properly masked.

October 2, 2020:
	SS: Allow the SMPC joystick reading process to be aborted earlier on, while still waiting for vblank to end; fixes another hang in "QuoVadis".

	SS: Added "Wolf Fang SS: Kuuga 2001" to the internal database of games to enable SH-2 CPU read/write VDP1 draw slowdown with, to
	fix glitchy graphics in the player's robot.

	SS: Added "Mahjong Doukyuusei Special" to the internal database of games to use the data cache read bypass kludge with, to fix the missing
	background graphics layer on disc 2.

	SS: Added "Kidou Senkan Nadesico: Yappari Saigo wa Ai ga Katsu" to the internal database of games to use full cache emulation with, to fix a hang.

	SS: Implemented emulation of the timing effects of the B-bus write buffer on SH-2 CPU writes; fixes hang in "QuoVadis".

September 4, 2020:
	SNES-Faust: Fixed bug in the multithreaded PPU renderer that could cause massive graphics corruption when a game interleaves reads and writes to
	VRAM without resetting the VRAM address, like in "NBA Pro Basketball: Bulls vs Blazers".

August 28, 2020:
	SS: Delay CDB status position info update by about 44us after a seek request(via Play command, or otherwise); fixes missing graphics in
	the intro of "Magical Drop 3".

-- 1.25.0-UNSTABLE: --

June 27, 2020:
	SS: Implemented more accurate emulation of VDP1 drawing of excessively-large primitives.
	It's not perfect, there's still something weird going on with antialiasing, and the effects on gradient shading
	and texturing are not fully emulated, but it's enough to fix missing graphics in the attract mode of "Virtua Cop",
	and a hang after defeating the final boss in "Rayman".

	SS: Fixed an off-by-1 inaccuracy in the edge stepping code for sprites and polygons, with minor visible effects in
	non-rectangular sprites/polygons.

June 26, 2020:
	SS, MD: Fixed/Implemented M68K MULU and MULS instruction timing.

June 24, 2020:
	SS: Added wait states to M68K writes; fixes hang in "Lunar" after the Meribia pub singer's singing, that was caused by a timer being
	reloaded too quickly in an interrupt handler.

June 13, 2020:
	SS: Allow VDP1 primitive drawing code to be suspended(and later resumed) mid-drawing when it's consumed too much emulated time; fixes excessive CPU usage during
	the FMV in "Dark Seed II".

June 4, 2020:
	SS: Added "Senken Kigyouden", "Xian Jian Qi Xia Zhuan", "Virtua Fighter", and "Virtua Fighter Remix" to the internal database of games to
	enable full cache emulation with, to fix graphical glitches.

May 17, 2020:
	SS: Implemented more complete emulation of SCSP's buggy(inter-slot contamination) linear interpolation on FM carrier slots.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Aug 18 17:57:46 2020 UTC (3 years, 6 months ago) by leot
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

*: revbump for libsndfile

Revision 1.32 / (download) - annotate - [select for diffs], Tue May 12 09:57:58 2020 UTC (3 years, 9 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2
Changes since 1.31: +4 -2 lines
Diff to previous 1.31 (colored)

mednafen: Uses gnu++11

Revision 1.31 / (download) - annotate - [select for diffs], Tue May 12 09:52:48 2020 UTC (3 years, 9 months ago) by nia
Branch: MAIN
Changes since 1.30: +10 -2 lines
Diff to previous 1.30 (colored)

mednafen: Update to 1.24.3

-- 1.24.3: --

May 1, 2020:
	SS: Implemented more complete emulation of the SCSP short waveform mode, after running further tests; fixes excessive distortion in a
	sound effect in "Sega Ages: OutRun", a regression introduced in Mednafen 1.24.2.

-- 1.24.2: --

April 25, 2020:
	Fixed broken support for systems without any usable OpenGL implementation available.

April 24, 2020:
	Apple2:  Adjust disk angle variable upon disk change, partially sanitize the disk angle variable on state load, and print out a debug error
	message instead of triggering an assert() in the disk reading code, to prevent Mednafen from aborting out in certain circumstances involving disk
	changing and state loading.

April 21, 2020:
	Apple2: Added missing keyboard reading variable to save states.

April 7, 2020:
	SS: Fixed a few inaccuracies with the SCSP waveform loop handling.

April 6, 2020:
	SS: Added emulation of SCSP slot short waveform mode bit.

April 5, 2020:
	SS: Implemented the buggy linear interpolation that occurs on the SCSP when FM is used.

April 3, 2020:
	SS: Added emulation of SCSP slot EG bypass bit.

	SS: Implemented SCSP register mirroring.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Mar 22 16:08:26 2020 UTC (3 years, 11 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.29: +2 -3 lines
Diff to previous 1.29 (colored)

mednafen: Update to 1.24.1

-- 1.24.1: --

February 27, 2020:
	NES: Changed some macros in the CPU emulation code to not have leading underscores.

February 25, 2020:
	Use sem_clockwait() or sem_clockwait_np() when available, instead of sem_timedwait().

	NES: Don't memset() MDFN_PixelFormat object.

February 23, 2020:
	Fixed build errors on FreeBSD relating to the multithreading code.

February 22, 2020:
	Fixed broken semaphore emulation code used on non-Windows platforms when sem_timedwait() is not available(1.24.0-UNSTABLE regression).

February 15, 2020:
	Altered Linux joystick API detection in the configure script, to avoid compiling with Linux joystick support in lieu of SDL joystick support on *BSD systems
	with Linux header files installed.

February 11, 2020:
	Fixed AltiVec-related build errors on 64-bit POWER/PPC.

	SS: Added kludges to fix NBG2/NBG3 background layer offset problems in "Fighters Megamix".

February 2, 2020:
	SNES-Faust: Replaced assert() in the DSP-1 emulation code with a SNES_DBG()

January 23, 2020:
	PSX: Implemented a partial fix for missing notes/instruments in the music of "Dragon Ball GT: Final Bout".

December 30, 2019:
	PSX: Don't ignore the sample loop address set via ADPCM header when the loop address register was written only before the end of voice on startup delay.
	Fixes sound effect glitches in "Re-Loaded: The Hardcore Sequel".

-- 1.24.0-UNSTABLE: --

December 19, 2019:
	PSX: Handle SPU CD volume as signed 16-bit instead of unsigned; fixes lowest volume setting in "Star Wars Dark Forces".

December 18, 2019:
	PSX: Tweaked PAL pixel aspect ratio, tweaked nominal FPS values, added setting "psx.correct_aspect", and fixed light gun Y positioning with PAL games.

December 16, 2019:
	SNES-Faust: Added SDD-1 emulation.

November 26, 2019:
	SNES-Faust: Allow emulation to switch away from the SPC700 during execution of opcode 0xFA, between the read and write, to fix bonkers
	audio that leads to a hang in the "Tenshi no Uta" game.

	SNES-Faust: Extended DMA NMI delay kludge to cover 8-bit LDX #imm to fix hang in "Frisky Tom" in "Nichibutsu Arcade Classics".

	SNES-Faust: Added DSP-2 emulation.

November 19, 2019:
	SNES-Faust: Added MSU1 support.

	SNES-Faust: Added a multithreaded PPU renderer, controlled via the new "snes_faust.renderer" setting, disabled by default.

	SNES-Faust: Added SuperFX overclocking support, controlled via setting "snes_faust.superfx.clock_rate".

	SNES-Faust: Added SuperFX instruction cache emulation support, controlled via setting "snes_faust.superfx.icache", disabled by default.

	SNES-Faust: Added support for Game Genie cheats(entered via Mednafen's cheat system).

	SNES-Faust: Added setting "snes_faust.region" to allow for overriding the automatic region detection and emulating one region while reporting the different region to the game.

November 17, 2019:
	On Windows, call CoInitializeEx() with COINIT_MULTITHREADED before calling SDL_Init(), to prevent potential initialization errors with Mednafen's
	WASAPI sound code.

November 16, 2019:
	Using drive-relative paths on Windows should no longer make a mess due to Mednafen looking for and putting files in the wrong place.

November 14, 2019:
	SS: Removed "ss.midsync" setting; the functionality it controlled is now always enabled.

	Added settings "", "affinity.emu", "", and "ss.affinity.vdp2" to specify CPU thread affinity masks for the CD read threads,
	main emulation thread, video blitting thread, and Saturn VDP2 rendering thread, respectively. Setting thread affinities properly can improve
	Saturn emulation performance on a dual-core CPU with hyperthreading.

	Cleaned up multithreading code and API.

November 10, 2019:
	Removed "using namespace Mednafen;" from types.h, and related changes.

October 25, 2019:
	SNES-Faust: Ignore frameskip if interlace mode is enabled, to avoid feeding uninitialized data into the deinterlacer which leads to a crash.

September 18, 2019:
	Implemented workaround in for a C++ parsing bug in gcc 9.x.

September 13, 2019:
	Apple2: Renamed(with backwards-compatibility aliases) video mode "rgb_alt1" to "rgb_alt" and "rgb_alt2" to "rgb_alt_tfr", and added new video mode "rgb_tfr".

	Apple2: Added support for 32-color custom palettes(will automatically enable a text fringe reduction RGB mode if used).

-- 1.23.0-UNSTABLE: --

August 26, 2019:
	Apple2: Added support for an RGB-style video mode, selectable with the new setting "".

	SS: Added "Shunsai" to the internal database of games to use the data cache read bypass kludge with, to fix various graphical glitches.

August 25, 2019:
	Expanded and harmonized the accepted value ranges for settings "sfspeed" and "ffspeed" to 0.25 through 15, for greater versatility.

	NGP: Added very incomplete emulation of BIOS system call "VECT_FLASHERS", per tip from stellarporter.  Fixes eventual hang in "The Last Blade".

	NGP: Fixed TLCS-900H new IFF calculation when taking an interrupt, per tip from trinemark.  Fixes broken voice playback in
	"Densetsu no Ogre Battle Gaiden".

	NGP: Fixed potential division by zero in the TLCS-900H MINC* and MDEC* instructions emulation(the emulation of the instructions is still almost certainly wrong,
	though), per tip from byuu.

August 24, 2019:
	PCE: Changed the Super CD-ROM^2 memory identification signature to match a Duo instead of a PCE with a system card, to fix compatibility
	issues with some US Super CD-ROM^2 games when using a US system card image, per tip from elmer.

August 22, 2019:
	SS: Added "Ronde" to the internal database of games to use the data cache read bypass kludge with, to fix missing graphics
	on the title screen and main menu.

August 20, 2019:
	SS: Added "Thunder Force Gold Pack 1" to the internal database of games to use the data cache read bypass kludge with,
	to fix explosion graphic glitches in "Thunder Force III".

	SS: Fixed a bug that could cause erroneous VDP1 framebuffer erasure when the lower Y coordinate for the erase window was too large.

August 12, 2019:
	SS: Added "Thunder Force Gold Pack 2" to the internal database of games to use the data cache read bypass kludge with,
	to fix quasi-random hangs when pausing the game in "Thunder Force AC".

	SS: Corrected the value the SCU DMA mode registers are initialized to on reset.

June 18, 2019:
	SS: Added "Formula Grand Prix - Team Unei Simulation" to the internal database of games to use the data cache read bypass kludge with,
	to fix a hang after the title screen.

	SS: Added "Virtual Mahjong" to the internal database of games to use the data cache read bypass kludge with, to fix graphical glitches on the character
	select screen.

June 16, 2019:
	SS: Slowed down SCU DMA from SDRAM/SH-2 bus slightly, though I'm not sure what is the origin of the measured overhead/slowdown on a Saturn.
	Fixes FMV flickering in "Lunar".

	SS: Added partial emulation(CS0 and CS1, SH-2 non-DMA accesses and SCU DMA accesses) of the timing effects of the SCU A-bus configuration registers.

	SS: Added "Tech Saturn 1997.6" to the internal database of games for which 1MiB RAM cart emulation is enabled, for its "Groove on Fight" demo.

	SS: Implemented a crude simulation of the VDP1 command execution slowdown that occurs when an SH-2 CPU writes to VDP1 RAM or registers, activated
	via the horrible hacks mechanism; fixes text flickering in "Arcade's Greatest Hits", most rescue text flickering in "Burning Rangers"(at least on the first stage),
	graphical glitches in "Whizz", and some of the graphical glitches in "All-Star Baseball 97".

	SS: Added a horrible hack to fix the hang in "Fighters Megamix" that occurred after the intro FMV played(or was interrupted).

	SS: Added a horrible hack to fix the hang at the end of disc 1 of "Grandia".

	SS: Added a per-game horrible hacks mechanism.

	SS: Added "Albert Odyssey" to the internal database of games to use full cache emulation with, to fix battle text truncation.

	SS: Added "Die Hard Trilogy", "GeGeGe no Kitarou", "Nobunaga no Yabou Shouseiroku", "Space Jam" to the internal database of games to use full
	cache emulation with, to fix hangs/crashes.

	SS: Added "Gex" and "Slam 'n Jam 96" to the internal database of games to use full cache emulation with, to fix minor FMV glitches.

	SS: Added "Policenauts" to the internal database of games to use full cache emulation with, to fix screen flickering on disc 2.

	SS: Full cache emulation(enabled via database) now also enables emulation of SH-2 WB/EX pipeline stalls.

	SS: Tweaked the kludgey CPU instruction read/write penalty during SH-2 DMA to be higher in some circumstances; fixes major graphical glitches in the
	later stages of "Shienryu" when on arcade mode.

	SS: Added "Dragon Force II" to the internal database of games to use the data cache read bypass kludge with, to fix major game logic errors
	during battles.

March 15, 2019:
	SNES-Faust: Added CX4, SuperFX, and SA-1 emulation.

	SNES-Faust: Made various changes to try to improve game compatibility

Revision 1.29 / (download) - annotate - [select for diffs], Tue Mar 17 10:36:38 2020 UTC (3 years, 11 months ago) by nia
Branch: MAIN
Changes since 1.28: +7 -2 lines
Diff to previous 1.28 (colored)

mednafen: Link OSS library properly when SDL2 is compiled without it.

Pointed out by wiz, thanks!

Revision 1.28 / (download) - annotate - [select for diffs], Sun Mar 8 16:49:27 2020 UTC (3 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

*: recursive bump for libffi

Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 1 19:37:50 2019 UTC (4 years, 4 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

Accept blame for a handful of packages.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Apr 30 21:54:41 2019 UTC (4 years, 10 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

mednafen: update to 1.22.2.

-- 1.22.2: --

April 23, 2019:
	PSX: Fixed a regression introduced in 1.22.0-UNSTABLE that broke a few PS1 games(e.g. SimCity 2000 and Rise 2).

	Fixed issues with inline functions in the QuickLZ code that could cause linker errors when compiling with optimizations disabled.

April 14, 2019:
	Apple2: Added basic WOZ 2.0 disk image support.

April 13, 2019:
	NGP: Fixed a sequence point rule violation that could cause "Gals' Fighters" to malfunction when Mednafen was compiled with clang,
	per tip from stellarporter.

	SS: Added the European release of "Theme Park" to the internal database of games to use the data cache read bypass kludge with,
	to fix a crash/hang during the intro FMV.

	Lynx: Fixed an old heap buffer overflow bug that could be triggered if the emulated game set up registers and RAM in a
	certain way.

March 18, 2019:
	PCE: Fixed an old bug(looks like from around a decade ago) in the HES playback code; it caused periodic high IRQ latency,
	which resulted in timer IRQ-driven DDA playback sounding rougher than it should have.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Feb 24 12:01:42 2019 UTC (5 years ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

emulators/mednafen: Update to 1.22.1

-- 1.22.1: --

January 27, 2019:
	Changed the default sound device for the OpenBSD sound driver from "/dev/audio" to "/dev/audio0".

January 26, 2019:
	Semaphores are now implemented with condition variables and mutexes when compiling against a POSIX threads implementation without sem_timedwait().

January 23, 2019:
	PC-FX: Replaced old RAINBOW IDCT code with newly-written code.

January 20, 2019:
	Some hotkeys in the debugger's memory editor weren't being ignored properly when in text entry mode; fixed.  (Regression introduced in 1.21.0-UNSTABLE)

January 1, 2019:
	Apple2: Corrected minimum allowed value for the "" setting(was -2 when it should have been -3).

	SS: Corrected line-scroll handling in double-density interlaced mode with non-zero LSS; fixes broken background graphics effect in Dural's stage in "Virtua Fighter 2".

	SS: Added "Linkle Liver Story" to the internal database of games to use the data cache read bypass kludge with, to fix a crash/hang when going to the world map.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Dec 18 17:08:20 2018 UTC (5 years, 2 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4
Changes since 1.23: +12 -18 lines
Diff to previous 1.23 (colored)

emulators/mednafen: Update to 1.21.3.

Package's changelog does not go that far back.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jul 18 00:06:15 2018 UTC (5 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Mark packages that require C++03 (or the GNU variants) if they fail with
C++14 default language.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 25 14:20:46 2015 UTC (8 years, 10 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Recursive revbump following MesaLib update, categories a through f.

Revision 1.21 / (download) - annotate - [select for diffs], Sun May 4 16:18:55 2014 UTC (9 years, 9 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2
Changes since 1.20: +2 -3 lines
Diff to previous 1.20 (colored)

Stop maintaining it.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jan 8 10:43:02 2014 UTC (10 years, 1 month ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2014Q1-base, pkgsrc-2014Q1
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

Needs zlib.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Oct 3 12:55:15 2012 UTC (11 years, 4 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)

Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Sep 23 05:36:23 2012 UTC (11 years, 5 months ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

recursive bump from libcdio shlib major change.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 13 10:55:03 2012 UTC (12 years, 1 month ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Recursive bump from audio/libaudiofile, x11/qt4-libs and x11/qt4-tools ABI bump.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Apr 22 13:43:29 2011 UTC (12 years, 10 months ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

recursive bump from gettext-lib shlib bump.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Sep 16 17:32:37 2010 UTC (13 years, 5 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Update to 0.8.D.3:

	Fixed a significant memory leak in the video output code(the
	leak would increase every time fullscreen is toggled while
	Mednafen is running).

Revision 1.14 / (download) - annotate - [select for diffs], Sun Aug 15 15:10:50 2010 UTC (13 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.13: +3 -4 lines
Diff to previous 1.13 (colored)

Update to 0.8.D.2 ( in pkgsrc terms):

	NES: Fixed a crash on certain x86_64 platforms(Mac OS X),
	due to the sound filtering code dereferencing 32-bit
	registers instead of 64-bit registers as it should have.

	Fixed a compilation error on gcc 4.5(thanks to hanno for
	pointing it out).

	SMS:  Some state that wasn't being saved in save states
	now is, which should fix netplay desynch problems with
	SMS/GG games.

	Fixed a couple of remotely-exploitable(if connected to a
	malicious server) stack manipulation bugs in the network
	play code.

	Fixed an incorrect object creation bug in pce/adpcm.cpp.

	NES:  Added a missing CPU emulator variable to save states.

	PCE:  Added a missing CPU emulator variable to save states.

	Lynx:  Fixed a bug in the cart loader code that would cause
	a crash if the ROM bank size was larger than the actual
	data available in the file(as is the case with some homebrew
	programs).  Thanks to "Wookie" for the patch.

	Build files were regenerated using autoconf 2.64 and aclocal
	1.11(previously, they were generated with autoconf 2.61
	and aclocal 1.10.1).

	Fixed a crashing problem when entering an invalid menu
	choice("0") in the cheat interface.  Thanks to tsenart for
	reporting the bug.

	GB:  The GameBoy module now respects the "filesys.disablesavegz"
	setting in respect to saved battery-backed RAM.

	Added support for "lurkers" on the network play server.
	Previous versions of Mednafen don't lack support for this
	per se, but there would be cosmetic issues with status
	messages printed to the internal console.

	SexyAL:  Fixed a bug affecting the return value from
	RawCanWrite() in the ALSA driver.  The returned value was
	typically too small by a factor of 4.  The effects of this
	bug included potential long periods of garbled sound during

	Fixed the return value from RawCanWrite() in the JACK
	driver.  It was being clamped to a value that was too small
	by a factor of 4; however, the clamp value was already
	excessively large in a way that this bug would should have
	only been triggered if the "soundbufsize" setting was
	excessively large.  The effects of this bug would be similar
	to the ALSA RawCanWrite() bug.

	The ALSA and OSS drivers will now try to set audio output
	to 2 channels if the source data only has 1 channel, and
	16-bit signed if the source data is 8-bit(automatic conversion
	is done).  This is done to allow for lower period/fragment
	sizes, as, in ALSA's internals at least, the minimum period
	sizes are expressed in bytes, not sound frames.

	The ALSA and OSS drivers will now try to set lower
	period/fragment sizes than previous versions of Mednafen
	did.  With default settings, for ALSA, the new period/fragment
	size is 50% of what it was before, and for OSS, 25%.  Also,
	there's a new setting to override the SexyAL's driver's
	preferred period/fragment sizes, named "sound.period_time"(default
	value of 0: no override).  The period/fragment size is
	expressed in microseconds.  If the new, lower fragment
	sizes cause problems, the setting can be changed to "2666"
	to approximate the fragment size selection in previous
	versions of Mednafen when using ALSA output, and "5333"
	when using OSS output.

	Added a workaround to the OSS driver for a bug in ALSA(and
	hence, ALSA's in-kernel OSS emulation) that could cause
	the emulator to run far too fast for a short period of time
	if a buffer underflow occurred.

	The ALSA's driver's RawCanWrite() method now(finally) uses
	snd_pcm_avail_update() instead of snd_pcm_delay().  This
	should improve performance and frameskipping behavior when
	the ALSA output is not routed directly to a physical device,
	such as the case with PulseAudio(though PulseAudio is still
	not recommended :b).  CVS:

Revision 1.13 / (download) - annotate - [select for diffs], Thu Dec 3 17:07:31 2009 UTC (14 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4
Changes since 1.12: +8 -1 lines
Diff to previous 1.12 (colored)

Pass down --x-includes/--x-libraries for modular Xorg

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 31 14:46:51 2009 UTC (14 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

libcdio updated changed its shlib major version, so bump depends.

Noted by drochner@

Revision 1.11 / (download) - annotate - [select for diffs], Sat Oct 31 01:56:36 2009 UTC (14 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)

Update to 0.8.C/0.8.12:


	SMS:  Fixed the input and reset emulation when the territory was
	set to "domestic"(Japan) and FM emulation was enabled; the emulated system was erroneously
	being treated as a Game Gear in a few places when those conditions were met.

	GB:  Fixed initialization of "HRAM" on virtual power toggle/reset.

	GB:  Fixed a bug(still many left) in the external RAM handling code, fixing an
	emulator crash with "Wizards & Warriors - Chapter X".


	NGP: Fixed an unaligned memory access bug in the memory r/w handlers, causing crashes on platforms
	that do not support unaligned memory accesses.

	NES: Fixed an intialization bug in mapper 193.

	Added define "ALWAYS_INLINE" to force the compiler to always inline speed-critical functions, and added it to
	many emulation functions in that category.  gcc can be a pain in the butt.

	GBA:  Fixed a bug that would cause data corruption and the loaded game to crash whenever a state was
	saved(but the state itself, and loading it, was fine) on a big-endian platform.

	Fixed several instances of mismatches between format strings and passed argument types, which could cause
	nonsensical information to be printed on big-endian platforms, and perhaps some little-endian platforms as well.

	Fixed the minimum field-width specifier on the statements that print the loaded game's CRC32 in several

	Added the "format(...)" function attribute to the MDFN_DispMessage(), MDFN_PrintError(), and MDFN_printf()
	function prototypes to catch format string errors.

	Fixed the order of the sound drivers in the documentation(it was erroneously implying that OSS had a higher
	priority than ALSA for the default sound driver), and added various notes to explain the sound drivers.

	If an invalid "sounddriver" is selected, Mednafen will now print an error message and not initialize sound
	instead of silently selecting the default sound driver.

	SexyAL: Altered the argument order of SexiALI_Convert() to make more sense.

		Fixed the broken conversion code used when the frame count passed to Write() is greater than 2048.

		Fixed a bug/design flaw in the SexyAL SDL sound driver that can cause a crash during program

		Added support for "float" output format to the ALSA driver.

		The ALSA driver will now try all formats that SexyAL's conversion code supports if the desired
		format is not supported by the output device, rather that simply erroring out as before.

		Added support for converting to 24-bit and 32-bit PCM output formats from the source format(which
		is still fixed to signed 16-bit).

		The driver function RawCanWrite() is now passed a pointer to a uint32_t, which it sets to the number
		of bytes that can be written without blocking, rather than returning the value directly, so that
		the return value can be used as a success/failure indicator.

		The driver function RawWrite(), and the "user" function Write(), will now return 1 on success, 0 on
		(fatal) error, rather than returning the amount of data written.

		The OSS driver was testing the return value of open() incorrectly.  Fixed.

		SexyAL is now compiled as C++(but doesn't use many C++ features yet), which necessitated
		adding several explicit casts in various code, and fixing some inconsistent function prototypes and

                JACK: Fixed a stereo playback crashing problem(a loop count was being calculated incorrectly).

                JACK: Switched to using jack_client_open() instead of the deprecated jack_client_new().

                JACK: The "sounddevice" setting is now used, to specify the JACK server to connect to.

                JACK: Fixed a possible race condition in RawCanWrite().

		JACK, SDL: Changed the inter-thread ringbuffer setup to be less likely to underrun, while not hurting

		JACK, SDL: Additional playback position precision is now obtained by using
		jack_get_time()/SDL_GetTicks().  This will improve Mednafen's performance with larger fragment sizes
		with these drivers, but smaller fragment sizes are still preferred for latency-to-underrun-occurrence-ratio

		Renamed the "byteorder" field of SexyAL_format to "revbyteorder", and changed it to a boolean type,
		to avoid confusion over what it actually represents.

	Removed erroneous dependency on CD-ROM emulation when WonderSwan emulation is enabled in the configure script.

        Added sanity checks to the first track number and total track count returned from libcdio, to prevent
        a crash in Mednafen if the libcdio driver fails and returns nonsensical values.

	Removed unused file sms/state.h

	Fixed a very-old bug that caused joystick unique ID collisions if more than 2 of the same "type" of physical
	joystick were available.

        Fixed a string constant-to-(char *) problem in sms/romdb.h.

	Mednafen is now compiled with -fsigned-char, to prevent any potential problems on systems with an "unsigned" char
	type as default.

	The included Tremor is now compiled with "-fvisibility=hidden" to work around a dynamic symbol collision
	problem with libsndfile(BUT, -fvisibility is only available in gcc 4.0 and newer).
	This solution may not be correct...

	Updated Tremor to the latest SVN version.

	PC-FX:  Added a semi-hack to fix a missing background layer problem in parts of "Angelique Special".  The
	underlying problem(no emulation of the programmable BG0 subscreen) will be corrected in 0.9.0.

	PC-FX:  Removed the unused V810 cache structures(Mednafen 0.9.0 will feature cache emulation, however).

	PC-FX:  Added a few CPU variables to save states whose absence could have caused netplay/movie desynch.

	PCE:  Fixed virtual power-toggle initialization of VCE and gamepad input variables.

        PCE, PC-FX:  Fixed the emulation of SCSI command 0xDE, mode 0x1.  The value returned was too small by
        2 seconds.

        PCE, PC-FX:  Fixed the sector count for the last track(which influences the leadout track start position/total
        sector count) in multi-track CUE/BIN CDROM images.

        PC-FX:  Fixed the handler address called when a TRAP instruction is executed.

	PC-FX:  Fixed the exception code set when an FPU divide-by-zero occurs(previously, it was being set to the
	integer divide-by-zero exception code).

	Fixed several problems in file.cpp, including buggy and overly-complicated MDFN_read*le() functions,
	and a problem with the const-ness of the return value of strrchr() with gcc 4.4.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Feb 25 13:16:47 2009 UTC (15 years ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Update to 0.8.B, and set PKGVERSION to 0.8.11 to avoid confusion.


Fixed the rectangle calculation for screen rotation with Lynx and
WonderSwan to use X scale and Y scale values appropriately (they
were reversed before; also, assuming square pixels on your monitor
;)).  Rotation still poses a problem in fullscreen with the default
settings, however.

Fixed an off-by-one error in the software SDL graphics rotation
code (used for Lynx and WonderSwan).

Fixed a race condition that could cause rapid oscillation between
fullscreen and windowed when trying to toggle it.
...and fixed a race condition that could cause oscillations when
rotating the screen with Lynx and WonderSwan emulation.

SexyAL:  The return values of ALSA functions are now treated as
errors only if they're less than 0, rather than non-zero as before.
Thanks to R.L. for pointing this out.

The default "nethost" setting is now "" instead of
"".  The latter was allowed to expire and lost to domain
squatters some time ago.  Domain squatters cause desires to commit
grievous face-stabbing.  However, the netplay server on ""
is not guaranteed to be up. :p

PCE:  Added the ability to load a custom colormap(palette) by
setting "pce.colormap" to the path of the colormap file.  The
colormap consists of either 512 or 1024 RGB triplets, 8-bits per
color component, in the order R,G,B,R,G,B,R,G,B,... .  It is
recommended that the colormap provide all 1024 entries(the first
512 entries are for normal mode, the second 512 entries are for
grayscale/strip-colorburst mode). If it doesn't, Mednafen will
calculate the grayscale colors using a formula similar to that used
with the real VCE, but with more precision.  The colormap may be
disabled by setting the "pce.colormap" setting to an empty string,
or 0.  Command-line examples:

mednafen -pce.colormap /path/to/blueblue.cmap /yarr/pirate/booty.pce [Enable]

mednafen -pce.colormap 0 /some/where/over/the/rainbow/islands.cue [Disable]

PCE:  Added a hack to fix games that try to write to VRAM while
VRAM DMA is in progress (fixes graphical glitches in "Crest of Wolf",
maybe others too?).  This could potentially cause regressions, so
please post any on the forum.

PCE: Having "pce.forcesgx" set to 1 with non-SuperGrafx games will
no longer cause problems with display timing(and positioning).
However, this doesn't fix the underlying issue, and any demos that
set the horizontal and vertical timing registers differently on
each VDC won't operate as they would on a real SuperGrafx.  (This
could affect commercial SuperGrafx games, but AFAIK they keep the
VDC timings the same).  NOTE: Setting "pce.forcesgx" to 1 is still
not recommended, the preferred way of forcing a game/demo to enable
SuperGrafx emulation is by giving it a file extension of "sgx".

PCE: Arcade Card RAM is now initialized to 0 on allocation(it was
erroneously being left uninitialized before).

PCE: Added Arcade Card RAM to the memory editor in the debugger.

PCE: Fixed the BRAM initialization (it was wrong, and generated from
when Mednafen erroneously emulated 8KiB of BRAM).  Fixes lockups
in "Sorcerian".  Note that if you have any existing save states or
battery-backed RAM files for "Sorcerian" in "sav" or "mcs" under
Mednafen's base directory from when you attempted to run "Sorcerian",
you will need to delete them for this fix to have any effect.

PCE: Reduced the mirroring address space range of the Arcade Card
register mapping in HuC6280 banks 0x40-0x43.  It was mirrored
throughout 0x40-0x4F, now it's only mirrored at 0x40-0x47.  It may
not be mirrored at all with a real Arcade Card, tests need to be
Fixes a crashing bug in "Linda Cubed" early into gameplay.

WonderSwan: Fixed a bug that made it impossible to push a direction
on one D-pad while the opposing direction was being pressed on the
other D-pad.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Feb 21 13:22:43 2009 UTC (15 years ago) by wiz
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

PKGREVISION bump for libsndfile ABI depends bump.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Feb 15 19:58:12 2009 UTC (15 years ago) by wiz
Branch: MAIN
Changes since 1.7: +4 -3 lines
Diff to previous 1.7 (colored)

Convert to user-destdir.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 4 21:59:44 2009 UTC (15 years, 1 month ago) by wiz
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Update to 0.8.A:

	NES:  Cleaned up the iNES loading code a bit, and added
	support for WRAM on a few mappers that nominally shouldn't
	have WRAM, enabled if the battery-backed bit is set in the
	iNES header.  Fixes "Family BASIC", and probably
	a few bootleg games as well.

	NES:  Added partially-broken support for mapper 163.

	NES:  Added support for mapper 241.

	Fixed string constant-to-(char *) problems in drivers/cheat.cpp

	Added setting "osd.state_display_time", to control the
	length of time, in milliseconds, the save state/movie
	screen is displayed after selecting a save state or movie.

	The most recently-saved save state slot will now be colored
	differently when selecting a save state slot.
	Increased the brightness of non-empty save state slots.
	Empty save state slots are now black instead of being
	partially transparent.

	PC-FX:  Fixed bugs in "Play Audio Track Index" and "Read
	Subchannel" MMC commands, fixing the totally broken
	cinematic sequences in "Boundary Gate".  There may still
	be bugs in these commands that don't cause any known
	problems with games, so I will need to run tests on a real

	GBA: An error loading the custom colormap file is now
	treated as fatal.

	Win32:  The German and Russian translation files are now
	included in the Win32 precompiled binary distribution
	ZIP file.  Note that Mednafen always assumes the locale to
	be UTF-8, so the stdio.txt file will need to be
	opened with a viewer that can handle UTF-8(though filenames
	with non-7-bit-ASCII components will appear fubar).
	(I am aware that assuming the locale's character encoding
	to always be UTF-8 is a design flaw with
	various insidious consequences when the encoding is not

	Updated the Russian translation with the translation done
	by rubicon.

	Added configure script option "--enable-altivec/--disable-altivec
	(default: enabled)" for compiling on
	PowerPC architectures where AltiVec is not supported, or
	causes problems.  This configure script option is
	untested, however.

	Input for the virtual device on virtual port N will be
	disabled when the buttons on the virtual device on virtual
	port N are being configured.  The last button pressed when
	in button configuration may still be taken as
	virtual device input, however(a fix for this would be too
	invasive, and so will be done in the 0.9.x unstable

	PCE:  Added several missing input-related state variables
	to save states, fixing several netplay/movie
	desynchronization issues under certain situations.

	Fixed a bug when creating an SDL source surface, whose
	negative effects(clipping rightmost columns) could be
	triggered when the "sdl" vdriver setting was used with
	certain xscale and yscale settings that would
	cause a 1:1 pixel copy operation.

	PC-FX:  Improved PSG LFO emulation again(Tyoushin Heiki
	Zeroigar uses it for some sound effects, other
	games likely use it as well in similar roles).

	PCE:  Improved PSG LFO emulation again(Hanii in the Sky,
	Juuouki, and Flash Hiders use LFO).

	PCE: Altered the Street Fighter 2 autodetection code to be
	data-agnostic.  The SF2 mapper will now be enabled for
	any ROM images 2MiB and over in size.

	Fixed a call to putenv(), to pass a static character array
	initialized to a string constant instead of a string
	constant directly.

	Fixed a few argument descriptions(invoked with the -help
	command-line switch) that weren't properly gettextized.

	Debugger:  Fixed a bug in the trace log code.  It would
	cause the emulator to lock up if the user pressed
        Enter/Return in the prompt popup without any text in the input field.

	SMS:  Removed the old unused Z80 emulator code from when
	SMS Plus was assimilated.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Jun 21 18:38:00 2008 UTC (15 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Update to 0.8.9:


Updated the included gettext library to 0.17 to fix a MinGW build

GB:  Corrected a lack of address masking in most of the cart RAM
emulation code.  Fixes a few Chinese GameBoy Color games.

NES: (Re?)-added support for mapper 240(it was erroneously listed
in the documentation as being supported...).

GBA:  Fixed a buffer overflow in the ROM image loading code.

PC-FX:  Several variables related to subchannel reading weren't
being saved in save states.  Fixed.  (This fixes save states made
within the BIOS' CD-DA player)

PCE:  Altered how the ADPCM read and write addresses are set.
Fixes the Super CD version of "Tengai Makyou Ziria", and "CD Mahjong
Bishoujo Chuushinha".  Thanks to Exophase and ChrlyMac for the
tips.  ***(This change may potentially cause regressions.  If it
does, please report them at )***

PC-FX:  Fixed a few deprecated const string to char* conversions
in v810_cpuD.cpp.

PCE:  Fixed a bug with Arcade Card emulation with a tip from
Exophase.  The ADPCM sound effects in Garou Densetsu II work
correctly now.

PCE:  Reads from the timer count register the cycle it is set to
reload after expiring will now return 0x7F.  Fixes "Battle Royale".

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 22 21:59:22 2008 UTC (15 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Update to 0.8.8:

        Added <string.h> to the global include list in mednafen.h.

        Added boolean setting "debugger.autostepmode" that, when set to 1, will cause Mednafen to automatically start
        the debugger in step mode after a game is loaded(only if Mednafen has a debugger for the emulated system, of course).

        NES:  Fixed CNROM emulation initialization bug.

        PCE:  ADPCM software reset was erroneously also resetting the playback frequency.  Fixed.  (Fixes ADPCM voices in Gulliver Boy)

        PCE:  Fixed disassembly of the JMP $(AAAA, X) instruction.

        PCE, PC-FX:  Improved PSG LFO emulation.

        PC-FX:  Emulated gamepad button presses weren't being decoded from the driver-side data correctly(causing problems on big-endian
	platforms).  Fixed.

        PC-FX:  Improved the logging of the ROM font system call in the debugger, to also include the callee address and the size of the
        glyph being requested.

        PC-FX:  Disassembly of the "nop" instruction will no longer show the virtually meaningless operand.

        PC-FX:  Fixed alignment and prettified the disassembly of LDSR and STSR instructions.

        SMS:  SMS pause and 2-player support were erroneously commented out.  Fixed.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jan 15 22:44:33 2008 UTC (16 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Update to 0.8.7:

        GBA:  DMA registers were being saved as 32-bit arrays instead of 16-bit arrays in save states, potentially causing memory
        corruption, and broken save states on big endian platforms.  Fixed.

	NES:  Removed the AltiVec resampling code, as it causes problems on the PS3, and possibly other PPC chips, and I don't have
	a PowerPC machine to test it on.  The NES sound filtering code will be rewritten in 0.9.0, anyway.

        GBA:  Fixed a startup crashing bug on big-endian platforms.

        Changed instances of fprintf() in mempatcher.cpp to trio_fprintf() to work around major issues with pre-C99 standard C libraries.

        GBA:  The Load() function was returning a largeish integer, instead of 1, after successfully loading a ROM image.  Fixed.

	PCE:  Removed a statement, that was used for debugging, that broke PC Engine multiplayer support in 0.8.5. (I'm not sure
	how it got there in the first place...).

Revision 1.3 / (download) - annotate - [select for diffs], Thu Nov 29 22:35:38 2007 UTC (16 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Update to 0.8.5:


	Fixed a crashing bug when loading an uncompressed file and using the automatic IPS-patching feature when mmap() is available.

	PCE, PC-FX:  All SCSI CDROM commands are now logged in the debugger's log viewer(when logging is enabled, of course).

	Added group support to the debugger's log viewer.

	PC-FX:  Renamed the type of BIOS ROM font calls in the debugger's log viewer from "BIOS" to "ROMFONT".

	PC-FX:  BIOS filesystem syscall(for backup memory access) calls are now logged in the debugger's log viewer.

	PC-FX:  Added internal backup memory and external backup memory address spaces to the debugger's memory editor.

	PC-FX:  In the 263-line mode, line 262 is now reported as being during blanking time(as on a real PC-FX).  Fixes the annoying transparency layer
	flickering and other weird graphical glitches in Der Langrisser FX.

	Added setting "filesys.disablesavegz", to disable gzip compression when saving save states and backup memory.
	(In the case of backup memory, disabling gzip compression isn't supported for GB yet)


	PC-FX:  Some RAINBOW registers weren't being reset on emulated system reset.  Fixed.

	PC-FX:  Added dummy support for the external bus reset register.

	PC-FX:  Altered the way garbage data is handled by RAINBOW to fix a graphics bug in the Tengai Makyu options screen.

	PC-FX:  Reworked a large part of the KING SCSI emulation code, and parts of the CDROM device emulation code.  Previously non-working-at-all games
	"Battle Heat" and "Tengai Makyu" work now.
	The non-anime game mode in "Tyoushin Heiki Zeroigar" works now.  "Der Langrisser FX" no longer locks up if you skip the intro movie.
	"Yuna FX" no longer locks up in one of the intro movies.
	These changes will cause some save state incompatibilities with previous versions of Mednafen.
	(Some of the SCSI changes also affect the PCE CDROM emulation, which may also result in save-state incompatibility issues, particularly if
	the save state occurred during a CDROM data transfer operation.)

	PC-FX:  Added setting "pcfx.cdspeed".  If you want to change this, read the documentation first!

	Cleaned up the video deinitialization code slightly, and fixed a few bugs in the OpenGL deinitialization code.

	PC-FX:  Reads from the dummy KING register 0x07 will now return 0xFF, per the devkit docs.

	PC-FX:  Reads from KING register 0x0B will now return the "DMA end" bit in D0 set correctly(at least, according to the developer docs).

	Fixed a compilation error after running configure with --disable-nes.

        PC-FX:  Reads from I/O port 0xFC0 will *now* return the current timer counter value.  The switch statement mask value was wrong...

	Removed the warning in the documentation about error correction of raw data track rips, as Mednafen will now perform simple correction
	using the EDC and L-EC data(since 0.8.4-rc3).  This could conceivably cause problems with naive hacks/translations/patches that neglect to update
	the EDC and L-EC data, so it can be disabled by setting the setting "cdrom.lec_eval" to 0.
	L-EC correction is based off code from dvdisaster(

	PCE, PC-FX:  Removed some debug printf()'s that were left in 0.8.4-rc3 by mistake.


	PCE:  Added preliminary(it works, but the code needs to be cleaned) ADPCM support for HES rips.

	PCE:  Interrupts will be enabled with a CLI after a HES' init routine is called, to fix rips that neglect to do it themselves.

	PCE:  Added support for HES rips that try to write data where it really shouldn't be written(some CD-ROM game rips do this), though a warning
	will be printed the first time this occurs after loading.

	PCE:  Added sanity checks to the HES loader to prevent crashes if invalid data is present.

	PCE:  Reads from the I/O port will now return D7 as clear when emulating a PCE CD game.

	PCE:  ADPCM RAM is now reset(to 0) on emulated PCE reset.

	PCE:  Sprites trying to pull tile data from $8000-FFFF of VRAM will now be invisible(probably not correct, but trying to emulate indeterminate
	effects is too difficult :b).  Fixes a minor sprite garbage issue in Camp California.

	PCE, PC-FX:  Fixed VRAM DMA source/dest increment/decrement bits(the source and dest were flipped).  Fixes a problem with Fushigi no Yume no Alice.

	Moved some code in the source root directory to appropriate subdirectories.

	Added setting <system>.debugger.disfontsize, valid settings being "xsmall", "small"(default), "medium", and "large", to control the font
	size used to draw the disassembly text.  Note that there may be overlap with other parts of the debugger at font sizes larger than the default.

	Refactored a few address space and register group debugger support functions out of individual system code.

	Fixed various low-impact memory leaks.

	The version of Mednafen last run is now stored in the configuration file as a comment(this will be necessary for changes in 0.8.5 or later
	that will involve proper escaping/unescaping and quoting of strings, to prevent problems with extra whitespace added by manually editing
	the configuration file).

	Fixed state rewinding on big-endian machines, and removed some unnecessary operations from the state rewinding code path.

	Mednafen will now refuse to try to load ROM images larger than 64MiB, as a sanity check.

	mmap() and madvise() will now be used to load ROM images, assuming they're available(UN*X only, generally).

	Errors during automatic IPS patching are now fatal.

	Sped up loading gzip'ed ROM images.

	Removed a global variable from the NES emulation code that had invaded state.cpp.  Though, this makes the error message when trying to use
	save states with authentic Game Genie emulation very unhelpful...

	GBA:  Added support for loading a real GBA BIOS ROM image, using the setting "gba.bios".

	GBA:  Added the ability to specify the backup memory type for games by creating a file with the same name as the ROM image,
	with the extension replaced with "type", in the "sav" directory under the Mednafen base directory.
	 Example: SexyPlumbers.gba -> SexyPlumbers.type

	One or more of the following strings(on separate lines) may appear in the file:

	Additionally, the flash size can be specified by specifying the size(real size, or divided by 1024) after the type, like "flash 128" or
	"flash 131072".

	PCE:  Improved noise LFSR and volume emulation, thanks to cgfm2 for the detailed information.


	Added meaningful descriptions to the command.* settings.

	PC-FX:  Added an experimental feature to use mmap() to create a virtual 32-bit address space to speed up V810 instruction reads.
	Enable by setting "pcfx.use_mmap" to 1.  Of course, it won't work on 32-bit CPUs!  Please read the documentation, there are caveats!

	PC-FX:  Removed some redundant logic in the KING BG 8x1 drawing functions.

	PC-FX:  FX VCE and VDC port access are now emulated as 16-bit, as in the real PC-FX, instead of 8-bit.

	PC-FX:  Altered the debugger's memory peek and disassembly functions to not read the emulated memory map in the 0x80000000-0xEFFFFFFF region.
	(Reading those addresses can cause side effects, and this is a temporary workaround)

	PC-FX:  Changed the V810 memory read handlers to read RAM faster than BIOS ROM.  This will probably increase host CPU usage while in the BIOS
	loading screen, but decrease it in the actual game.

	PC-FX:  Altered the V810 opcode fetch logic to do 16-bit reads instead of 32-bit, fixing potential crash issues
	when Mednafen is run on CPUs that don't support unaligned memory accesses.

	PC-FX:  Factored-out a few address masks in the memory read and write handlers.

	PC-FX:  Replaced most of the V810 signed-variable bit-size converting code that uses conditional branches to code that uses 2 shifts,
	taking advantage of modern 2's-complement CPU's arithmetic right-shift capabilities.  It reduces generated machine code size slightly,
	and should provide a slight speed boost as well.

	PC-FX:  Optimized V810 address mode decoding by removing an unnecessary conditional jump.

	Added an important warning to the documentation regarding Mednafen's ripped CD image support:

		 Mednafen does *not* correct bit errors in the user data of "raw" data track rips.  It is strongly recommended to use
		 "cooked" data track rips(2048 bytes/sector for mode 1, not counting any subchannel data) with Mednafen.

	PC-FX:  Improved exception handling, and added untested emulation of the TRAP instruction.

	Debugger:  Rewrote the memory load and dump functions to be faster, and also to fix a bug in the load function that would
	trash memory if the user tried to load more data than the specified file contained.

	Debugger:  Using the Goto function will no longer cause memory edit mode to be exited.

	Debugger:  Fixed a bug that occurred when entering a prompt(goto, change charset, etc.) while in editing mode, that caused
	keyboard focus to be misdirected.

	SexyAL:  The ALSA driver will try to set smaller period sizes when lower playback rates are used.

	GBA:  Changed the heuristics used to detect SRAM/Flash usage, though they're still not perfect...if a game tries to use flash
	memory improperly, it could be detected as using SRAM instead, or silently corrupt parts of flash memory...

	GB:  Fixed sound register initialization on reset, fixes missing sound in A Boy and His Blob

	GB:  Slightly increased the contrast of GBC colors.

	GB:  Reworked blitting of mono GB colors for future features.

	GB:  Removed a redeclaration of a variable in the same scope in a function in gfx.cpp.

	Debugger:  Fixed PCE VRAM breakpoints to work with block memory transfer instructions.

	Debugger:  Fixed parsing of single-address breakpoints after range breakpoints.

	Mednafen will now print out SDL version information when it starts.

	(The Win32 build will now be distributed with SDL 1.2.12)

	Debugger:  Fixed -/+ opacity adjustment to not be done when entering text(such as in a dialog).

	Debugger:  Fixed null termination of the ASCII string buffer displayed in the memory watch section.

	PCE, PC-FX:  Fixed the frequency of the highest-frequency noise generation register setting, hopefully!

	PCE, PC-FX:  Changed the LFSR to 16-bit, and to use a maximized tap configuration, to make the noise sound a bit closer to a real
	PC Engine's(at least, in my opinion!  It still sounds slightly more bassy than a real PC Engine, but that might be due to filters
	on the PC Engine's sound output...).

	Non-power-of-2-sized-textures will not be used when a pixel shader is selected and enabled, to prevent a severe graphical corruption
	regression introduced in 0.8.3-beta.  I'm not sure if it's a problem with Mednafen's pixel shaders or the graphics card...

	SMS:  Fixed soft reset.

	SexyAL:  Removed smallc.c, and modified the OSS driver to use snprintf() instead of the single function smallc.c provided.

	SexyAL:  "sexyal.h" is now included before all other header files.

	SexyAL:  Revamped parts of the ALSA driver to fix reported lockup issues under certain conditions.


	Added preliminary support for inputting text directly into the selected address space in the debugger's memory editor.

	Moved the temporal video blurring code in mednafen.cpp to vblur.cpp

	Added settings "filesys.snap_samedir", "filesys.sav_samedir", "filesys.state_samedir", and "filesys.movie_samedir", default 0, that when
	set to 1, will read/write the respective files from/to the same directory the game was loaded from.  If you want
	to use these, PLEASE read the documentation first, there are caveats!

	PCE CD, PC-FX:  Added support for MS WAV file offsets and lengths in TOC files.

	PCE CD, PC-FX:  Fixed a bug that caused CD-DA playback to be off by one sector(the first sector specified was being skipped).

	Began work to allow settings to be temporarily overridden during netplay and movie playback.

	PCE, PC-FX:  Added settings "pce.disable_softreset" and "pcfx.disable_softreset", default 0, which when set to 1 will disable
	simultaneous pressing of RUN and SEL.  The current implementation kind of abuses the driver-side code that disallows opposing diagonal buttons
	being pressed at the same time, so if we ever change that (undocumented) feature to go with the last-pressed direction rather than
	clearing both, the description of these settings in the documentation will need to be updated.

	PCE CD, PC-FX:  Read operations and CD-DA playback will now be stopped when the RST signal is asserted(fixes soft reset issues on PCE CD


	Fixed an OpenGL function typedef in drivers/opengl.h.

	PC-FX: Writes and reads to the KING and FXVCE chips "mapped" in parts of 0xA0000000 through 0xBFFFFFFF will now go through the respective
	data port write handlers, instead of directly to KRAM or palette RAM.

	If non-power-of-2-sized OpenGL textures are not available, and bilinear interpolation or a pixel shader is enabled, and the emulated
	system resolution changes(such as on the PCE), two lines of black pixels will be written to the texture buffer to prevent the display
	of multi-colored garbage at borders, though the right+bottom borders will still be slightly darker than they should be...

	PC-FX:  Added support for VDC data port writes via writes to 0xB4000000-0xB7FFFFFF and 0xB8000000-0xBBFFFFFF in the V810's
	memory map.  Fixes major graphical problems in "Super Power League FX".

	Updated the srwcompressor description in mednafen.cfg.

	PC-FX:  KING BG1-3 scroll registers are now emulated as 10-bit instead of 11-bit(BG0's are still 11-bit), and BG1-3 virtual
	screen size is now limited to 512x512(BG0 is still 1024x1024), per the official developer documents.

	Non-power-of-2-sized OpenGL textures will now be used if the "GL_ARB_texture_non_power_of_two" extension is detected.

	Fixed a bug that sometimes would cause black screens when using the "sdl"(non-default) video driver(SDL surface per-pixel alpha blending
	was enabled when it shouldn't have been).

	PCE:  Fixed a line clearing bug when BG is disabled that was causing some minor graphical garbage on some games that
	use multiple horizontal resolutions per frame.

	Changed some nonsensical #ifdef statements that were intended to always evaluate as false with "#if 0".

	Renamed SYSTEM_CLOCK to System_Clock in scsicd.cpp to work around a potential macro conflict on OSX.

	PC-FX:  Added partial support for NEC's "scan" SCSI command, used in the BIOS' CD-DA player screen.

	PC-FX, PCE CD:  Revamped parts of the subchannel emulation code.  The PC-FX BIOS CD player screen's time display works now.  Also, an important
	note regarding cdrdao "TOC" files and "RW_RAW" subchannel data was added to the documentation.

	PC-FX:  Fixed a bug in the KING BG0 scrolling+rotation code for 16-color and 4-color backgrounds with BATs that was causing graphical
	corruption in the PC-FX BIOS CD player screen.

	Fixed a compilation error when --disable-debugger was passed to the configure script.


	Added blargg's experimental blz compressor, for use with state rewinding(change the setting "srwcompressor" to use it).
	(This was added a while back, after 0.8.1, but I forgot to document it)

	SMS,GG:  Added missing default key configurations.

	PC-FX:  Added untested emulation of scaling+rotation in 4-color KING BG mode.

	PC-FX:  Added emulation of scaling+rotation in 16-color KING BG mode.  Fixes a problem with the background in the last stage of Zenki.

	PCE:  Added VRAM size constants to the beginning of vdc.cpp, and modified the code to use them, to allow a certain crazy person to compile
	a custom version of Mednafen which emulates extra VDC VRAM.

	PCE:  Removed 0xEB as SBC immediate in the disassembler(it was left over from the 6502 disassembler).

	Changed setting type of setting "vdriver" to a string, with possible values "opengl" and "sdl"(and "0" and "1" for backwards compatibility,
	of course).

	PCE:  Set the default char set in the debugger's memory viewer to shift_jis.

	PCE:  Fixed a missing #include <iconv.h> in debug.cpp.


	PC-FX:  Improved VCE<->VDC<->KING scanline timing to fix a lockup issue in Anime Freak Vol 4(polling the FX VCE raster counter register
	vs VDC VBlank IRQs).  Unforunately, this change has caused some 1-line graphical glitches in games that do "raster effects".  This
	may be solved once/if V810 emulation has accurate cycle counts, which would require emulating instruction cache and prefetch logic. -_-;

	Fixed branch traces display in the debugger, it was broken to only display half of them twice sometime since 0.8.1.

	PC-FX:  Optimized RAINBOW JPEG-like decoding by using a static implementation of bit fetching functions(instead of a class).

	PC-FX:  Added untested emulation of the CAXI V810 instruction.

	PC-FX:  The RAINBOW transfer block count register is now emulated as being 5-bits instead of 16-bits, fixes screen issues(blue blue!)
	after defeating the snake monster in Zenki.

	PC-FX:  If a KING BG is set to BAT+CG mode, but is missing a BAT fetch microprogram, it will now be drawn in CG mode(previously, the BAT
	data was simply being forced to 0, which was wrong). It's confirmed on a real system.  Fixes missing graphics in "Tonari Princess no Rolfee".

	PC-FX:  Fixed transparency testing with 16M color KING backgrounds(only 1 Y component of every 2 pixels was being checked, now
	both are checked).

        PC-FX:  Implemented back cellophane support.  Fixes fadeouts in "Lunatic Dawn", fadeins in "Team Innocent", and screen darkening issues
	during dialogue in "Last Imperial Prince"(and also exposes a bug that LIP probably has on a real system too, wherein CCR isn't reset
	to black after the dialogue is over, leaving the upper and lower parts of the screen outside the play area slightly dark greenish).
	The hindmost color when mixing the layers is now set to palette entry #0, except when all layers are disabled(set to black),
        or front cellophane(set to black) or back cellophane(set to value in CCR) is enabled.

	PC-FX:  Added emulation of the expansion backup RAM.  While not particularly necessary since Mednafen already emulated backup memory
	separately for each game, it does give a few extra save slots to some games(such as Miraculum ^_^).

	Added opacity control(-/+) to the debugger.

	Added an always-on zero page view to the CPU debugger for NES and PC Engine.

        Reduced the size of the game thread event queue to a somewhat saner size, and added extra buffering so that its mutex is only locked for
        a minimal amount of time to eliminate the chances of deadlock with this mutex.

	GBA:  Fixed a bug that caused only half of the legacy wave sound channel's sample data to be saved.

	GB:  Updated to Gb_Snd_Emu 0.1.5, fixes hanging note problems on some games, and cleaned up the sound save state code.


	Added preliminary Sega Master System and Game Gear emulation based off of SMS Plus.

	Factored the remaining state rewinding code out of the individual systems' code.

	Fixed a minor visual bug when using state rewinding(also with save states, but it's not really visible) with the NTSC blitter.

	Simplified how state rewind requests are passed to the emulation code, and fixed a small bug when using state rewinding with
	frame advance(now, a rewind will only occur if the state rewind button is held down while the frame advance button is pushed).

	Changed a local variable name in selblur.cpp to fix compilation on OS/X(and maybe PPC in general?), thanks to Matt Beaumont
	for pointing out the conflict with a definition in altivec.h.

	PCE:  Fixed cycle counts for BRA and BSR(they were 1 too high).

	PC-FX:  Reads from I/O port 0xFC0 now return the current timer counter value.

	Parameters to MDFNI_Emulate() and the internal system Emulate() functions are now passed through a structure, to allow
	for easier future expansion.

	PCE, PC-FX:  Fixed audio track reading from physical CDs on big-endian platforms.

	NES:  Fixed a bug that caused an emulator crash if Game Genie-style cheats were enabled at the same time as authentic Game Genie
	emulation was enabled.

	Added setting "srwframes", which controls the number of save states to keep when state rewinding is enabled.

	Debugger:  Fixed a bug that caused a crash if a PC breakpoint was triggered while the debugger screen was disabled.

	Added an experimental logging feature to the debugger, currently only used by the PC-FX emulation code, to log CD-ROM read commands
	and calls to the PC-FX BIOS' glyph bitmap address function, both of which should be quite helpful in translation work...

	PCE, PC-FX:  Moved the mouse sensitivity adjustments to the driver side to fix mouse emulation with network play and movies
	when using non-default pce.mouse_sensitivity/pcfx.mouse_sensitivity settings.

	Added a few more entries to the in-emulator help screen.

	PC-FX:  Increased the keyport latch delay, and added emulation of the PC-FX mouse.

	PC-FX:  The keyport data ready flag is now reset only on low reads from the keyport data registers.

	PCE:  Fixed disassembly of the BSR instruction.

	NGP:  Fixed Z80 emulation cycle counts(they were far too low), and fixed emulation of the EI delay.

	GB:  Reworked various things, including Z80 interrupt and HALT emulation.  GameBoy emulation will be a bit more CPU intensive now,
	and save states from older versions won't work with this version(sorry!).  These changes could easily break some games, least
	"A Boy and His Blob" works now!

	GBA:  Changed the file type detection code to reduce the chance of false positives.

	PCE:  Files with the extension "sgx" will now be treated as raw SuperGrafx ROM image files(AKA SuperGrafx emulation will be enabled).

	NES:  Refactored the file type detection code, so that emulation data structures and memory won't be initialized unless it's
	a recognized file type.

	NES:  NSF(but not NSFE) game/album name, artist, and copyright strings are now trimmed of leading and trailing whitespace.

	Added MDFN_trim(), MDFN_rtrim(), and MDFN_ltrim() functions.

	WonderSwan:  Fixed a buffer overflow bug in the sprite drawing code.

	GBA:  Flash and SRAM save games are now stored gzip-compressed.

	PCE:  Fixed raw bytes display of relative branch instructions in the disassembler.

	PC-FX:  Added CD-ROM data tracks to the memory debugger/viewer, read-only, however.

	The selected character set in the memory debugger/viewer will now be saved for that emulated system when exiting.

	Fixed text search in the memory debugger/viewer(iconv() was being called before the variables passed to it were initialized, oopsie).

	Simplified the scrolling code in the memory debugger/viewer, the line containing the cursor will now always be centered vertically
	on the screen.

	PCE:  Fixed an ambiguous if() statement in huc.cpp in the BRAM emulation code.

	GB:  Fixed a semi-ambiguous boolean math statement in the cpu emulation code.

	Fixed an ambiguous else statement in the throttling code in drivers/main.cpp

	NGP:  Neo Geo Pocket emulation code is now compiled with -fno-strict-aliasing to work around issues in the TLCS-900h code.

	GBA:  Removed unused ELF code.

	Fixed some implicit conversions of const char * to char *. (stupid putenv() prototype grumble mumble)

	<stdlib.h> is now included in "mednafen.h", added notes to README about system header files automatically included,
	and removed inclusions of such header files in source code files that include mednafen.h(most do, and should).  This change
	was brought about by gcc may not be the best way in regards to compile-performance wise, but it is more convenient
	and safer than #include'ing the system headers manually(and forgetting to >_>).

	Modified instances of "" to stop including the top directory in the include search path, and removed the symlink of
	config.h to include/config.h, and fixed the references to "config.h" in intl/

	PCE:  Made hes.cpp use MDFN_de32lsb() and MDFN_de16lsb() from endian.cpp.

	PCE:  Changed some instances of free() to MDFN_free().

	GBA:  Un-inlined the CPUWriteMemory() function.

	GBA:  Rewrote parts of the save-game(flash, eeprom, sram) code to make more sense!  EEPROM data is now stored with a file extension "eep".

Revision 1.2 / (download) - annotate - [select for diffs], Sun Nov 25 11:52:44 2007 UTC (16 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Update MASTER_SITES/HOMEPAGE, from Zafer Aydogan.

Revision / (download) - annotate - [select for diffs] (vendor branch), Sat May 19 12:39:30 2007 UTC (16 years, 9 months ago) by wiz
Branch: TNF
CVS Tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-20070519
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Initial import of mednafen-0.8.1, previously packaged for wip (by myself):

Mednafen is a portable, utilizing OpenGL and SDL, argument
(command-line)-driven multi-system emulator with many advanced
features. The Atari Lynx, GameBoy  (Color), GameBoy Advance, NES,
PC Engine (TurboGrafx 16), SuperGrafx, Neo Geo Pocket  (Color),
PC-FX, and WonderSwan  (Color) are emulated. Mednafen has the
ability to remap hotkey functions and virtual system inputs to a
keyboard, a joystick, or both simultaneously. Save states are
supported, as is real-time game rewinding. Screen snapshots may be
taken at the press of a button, and are saved in the popular PNG
file format.

Due to the threaded model of emulation used in Mednafen, and
limitations of SDL, a joystick is preferred over a keyboard to play
games, as the joystick will have slightly less latency, although
the latency differences may not be perceptible to most people.

Revision 1.1 / (download) - annotate - [select for diffs], Sat May 19 12:39:30 2007 UTC (16 years, 9 months ago) by wiz
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>