Commit Graph

502 Commits

Author SHA1 Message Date
zilmar 120d4d5590 Merge pull request #580 from cxd4/so_i_herd_u_liek_bswap
replaced all in-line assembly in Virtual Memory unit
2015-09-07 20:56:26 +10:00
Nekokabu 184681f08f Fix Filename in compressed savestate 2015-09-04 01:04:47 +09:00
LegendOfDragoon 6adb89e041 Add support for DacrateChanged in LoadState
Calls DacrateChanged if the value of AI_DACRATE_REG changes after
loading a save state.
2015-09-02 22:47:21 -07:00
LegendOfDragoon abf71cdd1a Add support for ViWidthChanged in LoadState
Calls ViWidthChanged if the value of VI_WIDTH_REG changes after loading
a save state.
2015-09-02 22:44:24 -07:00
LegendOfDragoon a4a69a8a3a Add support for ViStatusChanged in LoadState
Calls ViStatusChanged if the value of VI_STATUS_REG changes after
loading a save state.
2015-09-02 22:41:40 -07:00
zilmar 8d7c7d91a1 Merge pull request #577 from cxd4/moar_Unicode_references
more Unicode compile ref. errors to _T() fixed
2015-09-02 17:41:11 +10:00
zilmar 94341be840 Merge pull request #581 from LegendOfDragoon/Fixes
Fix some mistakes
2015-09-02 14:14:30 +10:00
LegendOfDragoon 7909b18506 Write to VI_V_CURRENT_LINE_REG
As of now, it's never being written to, so graphics plugins do not have
any access to that register. z64gl reads this register, so that's why it
has this screen shaking problem in certain games like Star Wars Rogue
Squadron.
2015-09-01 08:50:59 -07:00
LegendOfDragoon ec6a1e0c23 Fix issue with displaying the value of EIP
Before, it would only display 1 byte, instead of the full address stored
in EIP.
2015-09-01 08:07:25 -07:00
LegendOfDragoon e576dbbaa4 Fix a mistake I made in SPECIAL_DSRL32 2015-09-01 07:51:36 -07:00
unknown 834299c041 replaced all in-line assembly in Virtual Memory unit 2015-08-30 22:56:21 -04:00
unknown d00937a997 explicit <windowsx.h> to fix 6 unresolved macros w/o ATL 2015-08-28 18:35:36 -04:00
unknown 7ce4f3db93 explicit <commdlg.h> to fix anti-ATL build errors 2015-08-28 18:34:34 -04:00
unknown 6b34e8b89a explicit <commctrl.h> to fix anti-ATL build errors 2015-08-28 18:34:12 -04:00
unknown 074b2cc007 explicitly included <prsht.h> 2015-08-28 18:29:55 -04:00
unknown 152b365fcc more Unicode compile ref. errors to _T() fixed 2015-08-28 17:23:47 -04:00
unknown da232c590a better chances at safe TLB paddr allocation to integers 2015-08-26 22:30:45 -04:00
unknown 39a1abe44e re-did my earlier fix in a safer way 2015-08-19 18:37:07 -04:00
zilmar 7a2218dfd6 Merge pull request #565 from cxd4/vs-express-testing
reduced the compiler errors if building w/ VS2008 Express
2015-08-20 06:43:37 +10:00
unknown b44324147d reduced the compiler errors if building without ATL 2015-08-19 13:47:15 -04:00
unknown 64770befde fixed duplicate debug string: "Write" typo'd to "Read" 2015-08-18 19:51:12 -04:00
zilmar 31cb2270d3 Merge pull request #555 from Nekokabu/patch-4
Fix PI_DMA_READ
2015-08-11 18:25:43 +10:00
Nekokabu 4dac8354cc Fix error message displayed always
fix error message displayed always when play 64dd and enable debugger.
2015-08-02 21:31:15 +09:00
Nekokabu 936db1c3f4 Fix PI_DMA_READ
fix PI_DMA_READ like a PI_DMA_WRITE.
2015-08-01 18:16:11 +09:00
Nekokabu 0772341b6a Fix DMA Sram access when not word aligned 2015-08-01 17:48:38 +09:00
zilmar 91b643bfe1 Merge pull request #552 from JMarlin/master
#549 re-fixing the fix
2015-07-31 08:39:01 +10:00
jmarlin d57d951d39 #549 removed a vestigial bit of expression from a direction I ended up not going in 2015-07-30 18:37:15 -04:00
jmarlin 837f799058 #549 fixed incorrect case conversion math, simplified a couple of expressions 2015-07-30 18:35:33 -04:00
zilmar a3edf675f8 Merge pull request #550 from JMarlin/master
#549 changed switch/case table to cascaded range checks
2015-07-30 15:09:06 +10:00
jmarlin 6f98061e57 #549 stupid typos 2015-07-29 18:23:14 -04:00
jmarlin 8e75ec2ce7 #549 changed switch/case table to cascaded range checks 2015-07-28 17:41:53 -04:00
LegendOfDragoon 2f812afca7 Implement edge case in SPECIAL_DSRL32
When m_Opcode.sa == 0, the results for cpu recompiler do not match cpu
interpreter. For example with dsrl32 t9, t8, 0x0, and t8 =
0xC0C0C0C000000000 the result of t9 for cpu recompiler =
0xFFFFFFFFC0C0C0C0, while cpu interpreter = 0xC0C0C0C0C0C0C0C0.

This commit fixes the Killer Instinct health bar issue.
2015-07-28 13:30:21 -07:00
luigiblood cf7f74f1b1 Use actual CIC IDs (8303 for 64DD, 5167 for 64DD conversions) 2015-07-27 15:34:36 +02:00
zilmar 1a481c520a Merge pull request #544 from cxd4/dedotated_wam_4_mah_serv0r
cleaner RdramChanged algorithm (not biased to only 4 vs. 8 MB)
2015-07-27 14:05:16 +10:00
Nekokabu 81b6e2c68d Heiwa Pachinko World 64 (J) freeze fix
Heiwa Pachinko World 64 (J) freeze fix #537
2015-07-25 23:20:36 +09:00
unknown 51975fb00d unbiased the algorithm from just checking if only 4 or 8 MB 2015-07-18 13:12:40 -04:00
unknown 188091e32a flipped the if/else blocks for better branch prediction 2015-07-18 12:51:44 -04:00
unknown 62d316f7ae centralized m_AllocatedRdramSize writeback outside the if/else 2015-07-18 12:50:00 -04:00
unknown 2a45e5f792 Declare a couple constants to help clean the code rewrites. 2015-07-18 12:45:55 -04:00
LegendOfDragoon 9dda9171d0 Fix LoadState audio issue with Fixed Audio Timing
When Fixed Audio Timing was enabled and AI count per byte = 0, the
frequency was not being properly set, after loading a save state.
2015-07-06 21:05:12 -07:00
Nekokabu 433668a7e3 Fix Address in error messages. 2015-06-24 01:05:29 +09:00
Nekokabu 4b2ff8318f Fix Address in error messages. 2015-06-23 23:03:05 +09:00
Nekokabu 9be6b571e0 Fix Address in error messages.
Fix Address in error messages.
2015-06-23 23:02:20 +09:00
Nekokabu f4ab79a007 Fix Jangou Simulation Mahjong Dou 64 freeze
Fixed a read from over than ROM file.
2015-06-21 23:51:37 +09:00
Nekokabu f55db5aff4 Ssupport Shiren 64 Save
Ssupport Shiren 64 Save
2015-06-20 14:14:59 +09:00
Nekokabu 7748b0109c support 6103, 5, 6 2015-06-16 21:06:14 +09:00
Nekokabu a55e567b8b Add ROM Header CRC Recalculation
Add ROM Header CRC Recalculation
2015-06-15 22:08:07 +09:00
Nekokabu edb8d5288c Add ROM Header CRC Recalculation
Add ROM Header CRC Recalculation
2015-06-15 22:05:04 +09:00
zilmar 0e6f462f8b Merge pull request #487 from Nekokabu/patch-6
Update N64 Types.h
2015-06-09 05:08:34 +10:00
zilmar d1f1f1d0e3 Merge pull request #488 from Nekokabu/patch-8
Update N64 Rom Class.cpp
2015-06-09 05:08:12 +10:00
zilmar 6c9ab5438f Merge pull request #489 from Nekokabu/patch-9
Update Rom Information Class.cpp
2015-06-09 05:07:02 +10:00
Nekokabu b17c3b7c89 Update N64 Class.cpp
Experimental: 64DD IPL support
2015-06-08 22:19:45 +09:00
Nekokabu fc1ce7f6d3 Update Rom Information Class.cpp
Experimental: 64DD IPL support
2015-06-08 22:05:56 +09:00
Nekokabu 1ab4e18c68 Update N64 Rom Class.cpp
Experimental: 64DD IPL support
2015-06-08 22:03:33 +09:00
Nekokabu e7e6dae283 Update N64 Types.h
Experimental: 64DD IPL support
2015-06-08 21:54:45 +09:00
zilmar 6d608cd6bc [Project64] Handle SW const to 0x1fc00000 2015-05-30 13:46:16 +10:00
LuigiBlood ddd5b3e795 Updated 64DD Conversion CIC checksum for bugfix 2015-05-23 00:28:58 +02:00
zilmar f329b2d8f1 Merge branch 'master' of https://github.com/project64/project64 2015-05-22 06:12:08 +10:00
zilmar 6f56336031 [Project64] handle F3 A4 rep movs byte ptr es:[edi],byte ptr [esi] in exception handler 2015-05-22 06:09:33 +10:00
Emmet Young 007cbc1695 Address should actually of been stored into a DWORD 2015-05-18 14:19:31 +10:00
Emmet Young a89f1d29f5 Seperate rumblepak out from pif ram.cpp. Makes it easier to make changes to and cleans up Pif Ram.cpp
Also prepare for implementing the transfer pak.
2015-05-18 12:20:15 +10:00
AmbientMalice d3c04d6a1e Update Dma.cpp 2015-05-15 23:38:14 +10:00
zilmar e5c2df4dbc [Project64] Get the code to compile in 64bit 2015-05-15 08:38:52 +10:00
LuigiBlood 61c7f5ed78 Added "AllowROMWrites" RDB setting, DMA READ to ROM and updated RDB file 2015-05-14 14:34:45 +02:00
LuigiBlood 6f28b3e424 Added 64DD CIC support for Zoinkity's cartridge conversions of 64DD games. 2015-05-08 04:48:46 +02:00
LegendOfDragoon 3d57e37a88 Make AudioResetOnLoad work with Fixed Audio Timing 2015-05-06 16:23:52 -07:00
Azimer f48d645f83 Missed a DoSomething 2015-05-05 17:49:06 -05:00
Azimer fe855ad5da Revert DoSomething from bool to BOOL #2
This fixes the interpreter
2015-05-05 11:46:25 -05:00
zilmar 9aa9061f07 Revert DoSomething from bool to BOOL 2015-05-04 17:23:36 +10:00
Lioncash 21c3c8fd32 Remove unnecessary struct/union typedefs 2015-05-03 20:13:12 -04:00
Lioncash 82c2554357 Convert BOOL to bool where possible. 2015-05-02 23:37:08 -04:00
zilmar 9984bed37c Merge pull request #429 from Azimer/FAT_Improvements
Fixed Audio Timing Improvements
2015-05-02 22:08:27 +10:00
Azimer ac8a33a3be Restructured IF statement 2015-05-02 02:01:10 -05:00
Azimer c970681595 Fixed Audio Timing Improvements
* A user-defined FAT value of 0 will cause it to calculate
* The second buffer shouldn't be part of the GetLegth returned value
* Rounded the GetLength values up and aligned to 4 bytes (sample size)
* Implemented ai_busy and changed the behavior of ai_full
* Changed the second buffer behavior
2015-05-02 01:37:23 -05:00
Emmet Young 312de4d2a4 Allow 7z files to actually work through "Open ROM". Removes the codes assumption it is being handed the ROM name its looking for in the file. 2015-05-02 00:53:57 +10:00
Lioncash d85f0c1283 Remove superfluous void usages
These aren't necessary in C++
2015-04-28 19:34:23 -04:00
theboy181 405f59eafc Fix Speeeling 2015-04-23 22:43:01 -07:00
Lioncash 6b7ecf0b79 Cheat Class: Replace is_valid_hex_digit
isxdigit does the same thing.
2015-04-22 14:06:56 -04:00
zilmar 2bb9ac0754 Merge pull request #411 from cxd4/nub_lern_2_cheet
optimized cheat codes parsing a little bit
2015-04-21 08:49:56 +10:00
unknown 8df2172495 probably more readable, portable to just say this 2015-04-20 17:10:15 -04:00
unknown 0e05a71f2a guessing it's okay to have case-insensitive hex verify here too 2015-04-20 17:07:42 -04:00
unknown ec458785ea derp. 2015-04-20 17:05:06 -04:00
unknown 12b71f4c0c actually may be better as a static (possibly inline) function 2015-04-20 17:02:19 -04:00
unknown 3ef067f6d1 optimized hex digit verification a little 2015-04-20 16:52:48 -04:00
unknown ec9afe9c33 moved cheat code hex value verification to a central function 2015-04-20 16:31:26 -04:00
unknown 42643352b9 s/Initilize/Initialize 2015-04-20 16:01:18 -04:00
unknown 3b9ec019bc ya i r need h4lp plz i iz shot 2015-04-20 15:41:25 -04:00
zilmar edda4f0555 fix #376 - Games slow if no entry in Project64.cfg 2015-04-20 08:50:07 +10:00
Lioncash a7eb2e79e5 Memory Labels Class: Correct bounds clamping in ProcessCODFile 2015-04-16 15:44:06 -04:00
Lioncash b8beaeffb7 N64 Class: Initialize variable before passing in initializer list
Silences an uninitialized variable warning.
2015-04-15 22:38:55 -04:00
zilmar a43b33d985 Merge pull request #370 from LegendOfDragoon/master
Fix losing audio while loading a save state
2015-04-13 10:00:31 +10:00
LegendOfDragoon 41c5e26e4a Make an rdb option for the save state audio fix
Now it is a per game config option.
2015-04-12 16:53:39 -07:00
LegendOfDragoon 61f80d3b55 Fix losing audio while loading a save state
This fixes the losing audio after loading a save state issue with
certain plugins in certain games. I was hesitant to submit this, since
the fault is the audio plugin itself, but this also fixes bad save
states. This will not fix games like Top Gear Rally.

Any plugin that initially had this problem, can still lose audio at any
given time, due to flaws in the audio plugin itself. It is best to
simply use a plugin that doesn't have this issue to begin with, for such
games.
2015-04-12 13:11:39 -07:00
Samuel Yuan bd1186467d More language updates 2015-04-06 22:54:52 -04:00
Samuel Yuan bd275ae9e5 Merge remote-tracking branch 'project64/master' 2015-04-04 19:53:18 -04:00
zilmar 308a1c128e Merge pull request #342 from ExtremeDude2/More_Allman
Convert more files to allman
2015-04-04 22:01:54 +11:00
Samuel Yuan 217122a40e Fixed UTF-8 encoding for window title 2015-04-01 11:14:46 -04:00
zilmar 2358e0897f Merge pull request #340 from toehead2001/master
Cheats window - Remove extra border around cheat list & Update checkmark gfx
2015-03-30 16:16:41 +11:00
Ryan Collins b807bc03ca Fix errors from missing or added brackets (and a letter!) 2015-03-29 17:58:51 -04:00
Ryan Collins 3eddfb8115 Update N64 System/Mips files to Allman 2015-03-29 13:19:28 -04:00
Ryan Collins 1b4d2d0cfb Update the N64 System/Interpreter files to allman 2015-03-29 11:02:27 -04:00
Ryan Collins 2a3d1c09ff Merge https://github.com/project64/project64 into More_Allman 2015-03-29 10:04:06 -04:00
toehead2001 5fd7f61e97 Cheats window - Remove extra border, Update checkmark gfx 2015-03-29 01:23:58 -06:00
zilmar 84b9bbaf50 Clean up some brackets 2015-03-29 06:54:38 +11:00
Ryan Collins 1d26ffc661 re-add parenthesis from last commit 2015-03-25 19:34:39 -04:00
Ryan Collins 1c044867ae Update the N64 System/Debugger files to allman 2015-03-25 18:26:02 -04:00
Ryan Collins 117c1ef3fc Remove whitespace added in previous commit 2015-03-25 17:15:25 -04:00
Ryan Collins 6a47fcd485 Update N64 System/C Core to allman 2015-03-25 17:12:40 -04:00
unknown 516df09fce updating FPU locations just if STATUS_FR was changed, not entire reg 2015-03-12 19:53:28 -04:00
zilmar 2a528562bf Fix load perm cheats 2015-03-12 17:58:41 +11:00
unknown 8ae5b052e7 line break consistency fix: Mempak.H 2015-03-11 17:10:23 -04:00
zilmar 6ed2346169 Merge branch 'master' of https://github.com/project64/project64 2015-03-12 06:55:56 +11:00
zilmar d0209b061f Language: have break point take a wchar_t * string and allow \n in language files 2015-03-12 06:50:30 +11:00
Nekokabu b8a93be2c7 Fixed initial value to 0xFF. 2015-03-11 01:58:02 +09:00
unknown dc103ec59b keep $zero overwrite prevention to a single location in CPU loop
In both the 32- and the 64-bit interpreters, ADDI, LUI, LB, LW, LWU, LL, SLLV all check if the destination register specifier is 0, when none of the other interpreter ops do.  Actually, none of these 7 need to really check it either, since handling $zero overwrite is already managed in a single location in the main interpreter loop.
2015-03-08 19:29:41 -04:00
zilmar 2ef36f5f80 Merge pull request #194 from death-droid/MempakFix
Correct behaviour of Mempak
2015-03-06 18:37:54 +11:00
zilmar bd3fd85b99 Language: More code cleanup, status messages, dialog box, etc 2015-03-06 18:27:31 +11:00
zilmar 37d24bf365 Some code clean up related to system tray messages 2015-03-05 17:09:58 +11:00
zilmar 71cc6def7b code cleanup and try o make language work better 2015-03-04 20:36:08 +11:00
Emmet Young 4f1c760236 We need to ensure mempak is closed when CN64System is closed, otherwise the handle will never be closed. 2015-03-03 22:49:02 +11:00
Emmet Young 2f4e21577a Core mempak, correct behaviour of mempaks, ReadFrom and WriteTo 2015-03-03 22:46:38 +11:00
Emmet Young 1b17b86ef2 Core mempak, change mempak behaviour to handle mempaks as separate files, rather than storing them in one singular file. 2015-03-03 22:31:37 +11:00
zilmar 40640a83e5 Merge pull request #171 from cxd4/wow_such_mempak_very_doge
newline formatting fix from Unix LF to DOS/Windows CRLF
2015-03-02 09:44:30 +11:00
zilmar a366645fb4 Fix 7zip loading 2015-03-01 20:32:42 +11:00
unknown a7a22b13f0 newline formatting fix from Unix LF to DOS/Windows CRLF 2015-02-28 21:33:12 -05:00
zilmar 2a583fd13c update 7zip code 2015-02-28 16:05:57 +11:00
zilmar 491377c2a4 add rdb option for selecting plugins game hack applies to 2015-02-26 21:57:51 +11:00
zilmar 304aebbdd4 add store constant for 0410000C in recompiler 2015-02-25 19:26:48 +11:00
zilmar bbd45d45ba DSRL32 should not sign extend 2015-02-25 17:41:54 +11:00
zilmar aae61e8350 Clean up some of the games plugin settings 2015-02-25 08:44:06 +11:00
exhalatio ddb99227dd flxed Flash Status 2015-02-23 20:00:44 +09:00
zilmar 414811af79 Make sure SPECIAL_DIVU detect div by 0 correctly 2015-02-23 17:18:15 +11:00
Emmet Young d5f17dbe6d Strip out Validate binary and beta release code. No longer needed, validate binary code could of been used for version testing but be cleaner to write it fresh. 2015-02-14 22:17:45 +11:00
zilmar 9870277f60 Merge pull request #82 from death-droid/CiCChanges
Cic changes
2015-02-14 18:05:09 +11:00
Emmet Young 3e1498ef8e Make CIC_UNKOWN behave like CIC_NUS_6102. If debugger is enabled, it will display an error message with the missing CIC CRC. 2015-02-14 14:10:05 +11:00
Emmet Young e2f73e9e3d For all CiC related stuff, we should really be using our typedef rather than numbers. 2015-02-14 13:26:26 +11:00
zilmar 167ceb11b1 Fix problem where ScreenHertz was not setting based off of RDB by death-droid 2015-02-13 08:39:27 +11:00
zilmar 17a3561c23 better hardware support for odd PI_WR_LEN_REG addresses (cdx pull request #64) 2015-02-13 08:26:17 +11:00
zilmar c973db8e35 Try to get dynamic plugin change working 2015-02-12 21:58:28 +11:00
zilmar 7345ecd97e basic timing support for VI_V_CURRENT_LINE_REG alternating scan fields by cxd4 2015-02-07 10:19:49 +11:00
zilmar a88d03a12d Update JALR edge condition 2015-02-03 17:36:42 +11:00
zilmar 9eceed0fef #pull request 42 2015-02-01 06:27:27 +11:00
Nicholas 1c91769c12 Create Plugin base to share functionality 2015-01-31 08:01:21 +11:00
Nicholas 862eb7c48b Add support for Visual Studio 2013 2015-01-27 16:07:44 +11:00
Nicholas a9f8dd461f [!]Fix a mistake made in the RTC implementation, was incorrectly 2015-01-26 14:58:53 +11:00
Nicholas 8c1852afa0 handle pal system frequency better 2015-01-26 14:43:37 +11:00
Nicholas 53b86e559c add code for edge case in DSRLV for cbfd 2015-01-23 22:21:34 +11:00
Nicholas 0bd9a467a1 Add the memory search functionality back in 2015-01-22 16:50:20 +11:00
zilmar 6ca28ebe82 Glide64: Be able to get texture directory form emulator 2013-04-28 15:49:14 +10:00
zilmar 801f1581bc Project64: Add LL and SC to Analyze Instruction 2013-04-26 20:08:59 +10:00