Commit Graph

2796 Commits

Author SHA1 Message Date
riccardom f8743f1412 Mark arm_instruction_names as const char * otherwise gcc
will hate you.
2009-09-16 18:57:33 +00:00
gocha 857fb4f7f7 Replaced glColor4ubv with glColor4fv. This might affect alpha test. 2009-09-16 15:17:41 +00:00
gocha 084dfbf703 Revert to r2882 since it awfully broke Castlevania games (possibly other games as well).
The reasons I replaced GL_GREATER with GL_GEQUAL in r2883 are:
1. gbatek says "Hide pixels if Alpha<AlphaRef"
2. rasterizer also says "if(shaderOutput.a < gfx3d.alphaTestRef) goto rejected_fragment;"
2009-09-16 13:57:37 +00:00
gocha e524718237 OGLRender: Replaced GL_GREATER with GL_GEQUAL 2009-09-16 11:01:14 +00:00
zeromus 49bc297032 optimizations (especially for 32bit systems) to sequencing logic in main emulation loop; few fps speedup for cpu heavy games 2009-09-16 07:38:28 +00:00
zeromus d0bfdc0a02 for dev+ builds, add logging of execution counts for each instruction. 2009-09-16 00:00:13 +00:00
normmatt234 96db719b0c Support new Backup command required for Pokemon HG/SS to work without triggering an anti-piracy protection. 2009-09-15 12:14:17 +00:00
zeromus ab61e64ac2 unhook all emulation of STRBT and LDRBT which were confusingly only half emulated; I think that they shouldn't be emulated at all. someone prove me wrong. also, fix the FORCEINLINE macro on gcc to do something approximating its intent. maybe it doesn't work on old gccs and we'll have to change it back or conditionalize it differently. 2009-09-15 06:20:09 +00:00
zeromus d3d573d777 add that lq2x and hx2xs patch #2852221 and also fix a bug in the new ioregview which prevented it from compiling on older windows sdks 2009-09-15 04:36:21 +00:00
mtabachenko 91f19f2521 winport:
- fix search cheats crash on x64;
2009-09-14 11:40:30 +00:00
gocha dd649aafa2 Fix render_sprite_Win to handle 256 color objects properly. 2009-09-14 04:30:40 +00:00
luigi__ 86bd06801f Small feature: add a possibility to make "Emulation paused/unpaused" messages
optional when calling NDS_Pause()/NDS_Unpause() by adding them a parameter
defaulted to true. Shouldn't break anything.
2009-09-13 19:59:26 +00:00
gocha f7799d4b2e Replaced Lua bit operations with LuaBitOp 1.0.1. Now it can handle the sign bit (bit 31) correctly. 2009-09-13 15:52:14 +00:00
luigi__ 99483fc4f7 I/O reg viewer: fix scrollbar, and implement all graphics registers for
2D graphics engines.
2009-09-13 14:11:36 +00:00
luigi__ ce48f43c89 I/O reg viewer: improve scrollbar handling, and fix a small bug with
names/descriptions that have ampersands and/or underscores inside them.
2009-09-13 10:17:25 +00:00
mtabachenko 75b285b45c core:
- add load logo data into ARM9 BIOS area;
(for a GBAgame not need external BIOS now)
2009-09-13 10:13:18 +00:00
luigi__ 1b8eaa9501 I/O reg viewer: fix a bug where ARM9 IE/IF had two blank Bit0 fields at the bottom. 2009-09-13 09:55:52 +00:00
luigi__ 34c2ff9e23 Remove two weird empty lines. 2009-09-13 00:36:27 +00:00
luigi__ 860ad0caa5 Commit missing stuff. Sorry. 2009-09-13 00:32:26 +00:00
luigi__ 56403c75af Windows port: delete the old I/O reg viewer dialog templates.
(Yup, the new one is a plain window. It appears plain windows
refresh faster than dialogs :( )
2009-09-13 00:25:52 +00:00
luigi__ 6740d478b2 Windows port: brand new I/O reg viewer.
- Allows to view all the registers, the registers of a certain category, or one
register in detail.
- Table system facilitating implementation of new registers
- Implements the registers that were implemented in the old I/O reg viewer, so
there's no loss
- You can open as many I/O reg viewers as you want
2009-09-13 00:17:59 +00:00
mtabachenko 7f418a40e0 addons:
- GBAgame: add flash memory support. Pokemons migrate work now (need use external BIOS without SWI, I will fix it later) :)
2009-09-12 21:44:46 +00:00
luigi__ 8e53ad6bd7 MMU: add some extremely basic Ninja SD support, based on libfat code.
This was my first attempt at getting ndsmail working properly.
All the needed init code is here, but reading and writing operations
are seriously lacking for now.
2009-09-10 18:46:42 +00:00
riccardom dd321a27e1 Use the correct type for recvfrom argument. 2009-09-09 18:24:23 +00:00
luigi__ 3ac9b07639 Windows port: Add a constructor to CToolWindow. Also fix a bug that would cause
the Adhoc interface to always be initialized even when SoftAP is selected.
2009-09-09 18:11:51 +00:00
luigi__ 3fb9b04bfe Wifi: lots of improvements here and there:
- fix USCOUNTER and USCOMPARE implementation
- add support for extra TX slot
- add some experimental receiving code for SoftAP
- and others...

Also, change the predefined WFC profile to be an empty profile and remove support
for probe requests. This should prevent any WFC connection attempt, without breaking
homebrews (atleast dswifi lib based ones). (Note: WFC doesn't work anyway)
2009-09-09 17:59:50 +00:00
zeromus 25d84132f7 it seems as if we added a winver>=0x0501 dependency (winxp) in CWindow.cpp with the font bullcrap. Im not sure why it needs to be there, but lets make the 2005 vcproj define that sdk version so it compiles once more 2009-09-09 00:57:15 +00:00
gocha 23087b4c0c Moved fastFetchExecute to CommonSettings, and set the default value to false. 2009-09-08 22:53:43 +00:00
mtabachenko c0ea64bed8 winport:
- add save "Fast Fetch-Execute" state;
2009-09-08 16:43:15 +00:00
gocha 6769ec30ac winport: add "Fast Fetch-Execute" to the menu, since r2844 brought some emulation glitches. 2009-09-08 15:48:13 +00:00
gocha b7a55e65e8 disabled frameskip while avi recording 2009-09-08 15:37:37 +00:00
gocha 460aa6d04a Fetch-execute cycle is now processed parallelly. It's still inaccurate, but much better than before.
Additionally, indentations are adjusted.
2009-09-08 04:09:16 +00:00
gocha c368300c05 winport: a little fix for stylus autohold 2009-09-08 03:12:55 +00:00
gocha 158852cea2 winport: add autohold for stylus 2009-09-08 02:39:58 +00:00
mtabachenko d9534edf36 core:
- fix SWI 0x03 (WaitByLoop);
2009-09-07 21:02:46 +00:00
mtabachenko 6828c1f746 winport:
- fix ICC project compiling;
2009-09-07 09:44:37 +00:00
gocha 407fa8f157 {S} instructions don't consume more cycles than non {S} instructions, do they? 2009-09-07 02:35:55 +00:00
nitsuja 1bc975995f fix vs2008 linking 2009-09-06 22:50:37 +00:00
luigi__ fbb877874f Add comctl32.lib to VS2008 and VS2010 projects. 2009-09-06 22:20:06 +00:00
luigi__ fd1b12dbc1 Holy shit... macro redefinition. 2009-09-06 22:14:49 +00:00
luigi__ 644e4a7b71 Add a couple of defines for the new I/O reg viewer. 2009-09-06 22:02:15 +00:00
mtabachenko fd10aa872f core:
- fix SWI 4,5 (Children of Mana run now);
- fix reset bug in IPC FIFO;
2009-09-06 21:55:14 +00:00
nitsuja 87a167983e crash fix for win32 closerom 2009-09-06 16:41:18 +00:00
luigi__ 9828dc1ce7 Small cosmetic fix: add DeSmuME icon to toolwindows. 2009-09-05 22:30:14 +00:00
luigi__ 8a6520e549 Resize a bit the mem viewer so the last line fits in the view box. 2009-09-05 22:06:01 +00:00
luigi__ 22e68e57a6 Windows port: adapt the mem viewer to the new tool system. And its layout
has been slightly changed:
- a combobox has been added to let you choose the CPU
- the view mode radiobuttons became a combobox due to space lacking,
- the Close button has been moved to the bottom-right corner
- the view box is less wide due to the font changed to Courier New

You can now open as many mem view windows as you want. Don't abuse it though, 
at least until we find a super-fast refreshing method. For now the tools will
refresh every 6 frames.

Little extra for zeromus: if font antialiasing is turned off, the font the 
view box uses will not be antialiased.

(sorry for blank log message in last revision. The log message I forgot to add was this one.)
2009-09-05 21:58:31 +00:00
luigi__ 50f238c98c 2009-09-05 21:53:47 +00:00
luigi__ b3caff23d2 Windows port: small fix in RegWndClass for x64 builds. 2009-09-05 20:06:11 +00:00
luigi__ 998787e921 Windows port: add a base CToolWindow class and a toolwindow handler. 2009-09-05 19:08:51 +00:00
nitsuja 54f771536e added Close ROM menu command and made Lua scripts stop when opening or closing a ROM 2009-09-05 17:39:22 +00:00