Commit Graph

1120 Commits

Author SHA1 Message Date
wowzaman12 53c1eedafa JoypadConfig is now working as it's own separate entity
Previously it was using macros that were hardcoded to look for a certain variable

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1264 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-28 03:53:07 +00:00
wowzaman12 5e96d2855f Got rid of two unneeded C macros
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1263 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-28 03:50:49 +00:00
wowzaman12 3dc751cc02 Created a single template that does the same thing as several of the C macros
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1262 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-28 01:52:20 +00:00
wowzaman12 fbc21a60cd Used a regex replace so at least some of the C Macros aren't hiding variables
Also renamed their inputs so it's easier to understand what's going on

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1261 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-28 01:46:44 +00:00
wowzaman12 a262024135 Added more pointer error checking to the wxvbam build.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1260 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-28 01:33:12 +00:00
wowzaman12 d54845210f Load dialogs the proper way
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1259 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-28 01:30:36 +00:00
wowzaman12 6f7dc907e1 Now fully use the error checking function instead of the C macro
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1258 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-28 01:20:41 +00:00
wowzaman12 4a4104e01e Move XRC pointer checking/error throwing to a templated function (More backporting from Arthur, next few commits will be importing his improvements)
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1257 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-28 01:12:57 +00:00
wowzaman12 5d094cb1f2 WX: Changed some of the xrc loading handling and error handling (Courtesy of Arthur on github)
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1256 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-28 01:08:52 +00:00
skidau 418a5a1d9f Added E-Reader scan support by CaitSith2.
One thing it does, is correct any raw files scanned, if they are correctable. (usually, uncorrectable raw files come up with a read error.)  There is also bin support included as well. (Note, if you open a valid dotcode bin, it will encode it to raw, and save the freshly encoded raw file if it has been set in the menu. If the dotcode save file has not been set, the bin will still load.)

Currently, part of the GBA emulation breaks the E-Reader scan code. The reader always returns a Region Error.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1255 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-27 22:50:11 +00:00
wowzaman12 7f20dd8073 intial fix for solarsensor that skid implemented. Will add functioning code after, for now it will allow users to compile at least the SDL interface.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1254 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-27 21:06:10 +00:00
wowzaman12 2c0c5daf94 SDL: Breaks on windows.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1253 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-27 20:01:33 +00:00
wowzaman12 4f87c9aaf5 missed a minor change.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1252 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-27 19:53:35 +00:00
wowzaman12 da022b38f0 fix compiling against latest ffmpeg code.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1251 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-27 17:58:35 +00:00
wowzaman12 fad4d9faf8 changed the panel to have a black background when a rom isn't loaded. Also fixed compiling dsound driver in the wxwidgets interface via mingw-w64
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1250 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-27 17:54:45 +00:00
wowzaman12 27b35c2136 forgot the wxwidgets interface icons.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1249 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-27 17:49:26 +00:00
wowzaman12 25b6799b10 cmakelists changes, wxwidgets interface build fix to follow.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1248 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-27 17:48:42 +00:00
skidau 2ee3f2d0f3 Added VS2013 solution by mickdermack.
Have to install the Multibyte MFC Library for Visual Studio 2013, because Multibyte strings were deprecated in favor of wchar strings.

https://www.microsoft.com/download/details.aspx?id=40770

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1247 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-26 21:19:37 +00:00
skidau e55cbb43cc Added Solar Sensor support from VBA-Wii.
Requires EEPROM+Sensor save type and Real Time Clock enabled.  The solar sensor can be controlled by the left and right motion sensor controls.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1246 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-26 09:08:30 +00:00
skidau e831c2d6cb Re-enable the save type auto-detect code instead of enabling all save types.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1245 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-25 11:01:50 +00:00
skidau b56e1edc45 Added a Auto-start link option
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1244 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-24 13:30:49 +00:00
skidau a483633c96 Fixed the crash that would occur if a GBA link mode were used with a GB game.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1243 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-23 13:35:01 +00:00
skidau b03200a15f Ported AdamN's Game Link (Game Boy link) code from 1030e.
Seems to work better with a link timeout of 1.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1242 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-23 12:17:26 +00:00
skidau 96786eaa30 Fixed NO_LINK build.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1241 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-23 06:38:51 +00:00
skidau 32bff76eed Ported AdamN's Wireless Adapter code from 1030e.
Known Issue :
* Instability with 3-4 players on pokemon games due to another client interfering a client and host communication, causing both clients to think their data never reached the host and repeatedly resending the data again (a few retries before dropping the connection)

TODO :
* Host may need to send the ACK data to the Client who send the data instead of broadcasting to all clients, to prevent other Clients from getting the wrong ACK data and thinking their data never reached the Host. 

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1240 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-23 03:42:39 +00:00
squall-leonhart ffd7277f6d bgklink merged to trunk.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1239 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-20 14:23:14 +00:00
skidau 9a5e6d107f Fixed importing GameShark snapshots
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1238 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-20 12:02:28 +00:00
squall-leonhart cfe9ff75cd bios dialog struck through enable text fixed
controls disabled however, because we don't have the execution implemented for cgb bios.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1237 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-20 03:39:21 +00:00
squall-leonhart 5085182a01 i had issues applying the xbrz patch and had to revert manually several times, and forgot to add the new files as a result
so here they are.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1236 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-20 02:58:03 +00:00
skidau 8b0b049230 Preliminary update to the GameCube to GBA link cable emulation. Fixes Zelda Wind Waker's Tingle Tuner connection, Pac-Man Vs, Final Fantasy: Crystal Chronicles multiplayer, and most other Gamecube to GBA link cable games.
* Added a second socket at port 49420 (0xc10c) which sends clock information
* Handled disconnections from the GBA and GC
* Made the transfers asynchronous
* Blocks the socket before the connection times out

Requires Dolphin 4.0-5899 or later.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1235 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-20 02:11:12 +00:00
squall-leonhart 1ac06a6e66 XBRZ 1.2 added as a built in filter
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1233 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-19 01:44:47 +00:00
squall-leonhart e76cf5511d reverted the removal of backup enabled checks, and changes to remote.cpp
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1232 a31d4220-a93d-0410-bf67-fe4944624d44
2015-03-19 00:52:47 +00:00
squall-leonhart 576460798c Adds a item for the DisableSFX speedhack back to the Video menu.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1231 a31d4220-a93d-0410-bf67-fe4944624d44
2014-04-20 09:24:10 +00:00
squall-leonhart b6bc047b1a updates subwcrev and applies minor fixes patch 46
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1229 a31d4220-a93d-0410-bf67-fe4944624d44
2014-03-08 07:11:53 +00:00
kode54 0bd675de7f SDL sound code now posts to semaphores no matter what, in case the other side is still waiting after a speedup transition
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1228 a31d4220-a93d-0410-bf67-fe4944624d44
2013-11-14 23:32:08 +00:00
kode54 5eb646b1da Rewrote SDL sound synchronization, using a very old patch as a base for some of the changes
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1227 a31d4220-a93d-0410-bf67-fe4944624d44
2013-11-14 07:51:57 +00:00
normmatt234 706774c3c0 Remove useless backup enabled checks in read handlers.
Fix illegal halfword and byte reads.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1226 a31d4220-a93d-0410-bf67-fe4944624d44
2013-10-22 18:04:02 +00:00
kode54 a4c133210f Mother 3 fix, refined to not break Metroid Fusion or hopefully anything else
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1225 a31d4220-a93d-0410-bf67-fe4944624d44
2013-10-22 01:17:06 +00:00
kode54 c276ccd7ce Changed PCM FIFO refill behavior to only stuff the FIFO with silence if it runs completely empty, which seems to fix the stuttering in Mother 3. From the technical behavior, Mother 3's sound code would periodically set DMA 1 and 2 to reason 0, then reset them back to reason 3. This presumably occurs every time the source buffers run empty and the source addresses are reset. Unfortunately, with the current execution and memory timing, this occurs just in time for the DMA buffers to run down to only 16 samples each, and then the attempted refill call will trigger while the DMA reason is 0, so they don't refill, and the timer routine thus stuffs the FIFO buffers with 16 samples worth of silence, causing a stutter. Now, the buffer is allowed to drop below 16, which gives Mother 3's sound code enough time to restart the DMA channels, and they continue to pump samples gracefully, as I never detected a full underrun in my testing.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1224 a31d4220-a93d-0410-bf67-fe4944624d44
2013-10-21 21:46:49 +00:00
kode54 46f83f7d73 Add tiled rendering define to Android makefiles, too.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1223 a31d4220-a93d-0410-bf67-fe4944624d44
2013-09-24 11:53:04 +00:00
kode54 c0d1532211 Add tiled rendering define - big performance improvement
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1222 a31d4220-a93d-0410-bf67-fe4944624d44
2013-09-24 11:52:20 +00:00
kode54 d808640113 Fix target output name
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1221 a31d4220-a93d-0410-bf67-fe4944624d44
2013-09-24 11:51:36 +00:00
kode54 a2655200dc Fix build for Android
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1220 a31d4220-a93d-0410-bf67-fe4944624d44
2013-09-24 11:50:37 +00:00
kode54 11fe3f1fc7 Disable link by default now that games work without it
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1219 a31d4220-a93d-0410-bf67-fe4944624d44
2013-09-24 11:49:26 +00:00
squall-leonhart 4ca5da9275 updated readme
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1218 a31d4220-a93d-0410-bf67-fe4944624d44
2013-09-24 07:09:56 +00:00
kode54 297b01ff8c Sonic Advance 1/2 work now with NO_LINK defined
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1216 a31d4220-a93d-0410-bf67-fe4944624d44
2013-09-21 16:18:54 +00:00
kode54 e4894d2ea2 (Libretro) Fix build
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1215 a31d4220-a93d-0410-bf67-fe4944624d44
2013-09-21 16:18:04 +00:00
squall-leonhart 29f7d67c34 re-adding the fix for zelda oracles
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1214 a31d4220-a93d-0410-bf67-fe4944624d44
2013-09-21 15:09:45 +00:00
kode54 9ec51eb94e Let's try that again.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1213 a31d4220-a93d-0410-bf67-fe4944624d44
2013-09-21 13:57:40 +00:00
squall-leonhart 0e4e1c2dd6 revert 1207-1210 as its not really ready for integration yet.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1211 a31d4220-a93d-0410-bf67-fe4944624d44
2013-09-21 02:42:37 +00:00