Commit Graph

432 Commits

Author SHA1 Message Date
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
zilmar 814018c78f Project64: Initialize eeprom to 0xFF instead of 0x00 2013-04-26 20:06:01 +10:00
zilmar b805bbb883 Project64: Update the code related to changes in stdstr 2013-04-17 20:34:20 +10:00
zilmar 7055c1bad9 Recompiler: ignore 0x0407000D as an opcode in analysis 2013-04-11 11:16:27 +10:00
Emmet Young 1abb082eef If debugger isn't enabled but where still attempting to start the sync cores, reset to recompiler to stop people from accidentally launching sync cores. 2013-04-01 13:25:51 +11:00
zilmar 8db1ff697d Recompiler: Fix some warnings related to DWORD overflow 2013-03-26 22:28:49 +11:00
zilmar 4ae369ab81 Loop Analysis: SLTU and SLT marks register as changed 2013-03-26 22:18:53 +11:00
zilmar 48d8925a80 Project64: Clean up external release to be beta release 2013-03-22 16:47:20 +11:00
zilmar f41cdf8989 Recompiler: Fix delay slot section with exceptions 2013-03-22 16:45:32 +11:00
zilmar 7b70ba0da3 Recompiler: Fix up protection of op in DADDU 2013-03-12 18:40:50 +11:00
zilmar 784dcacad6 Recompiler: Fix bug in 64bit AND operation 2013-03-09 07:55:36 +11:00
zilmar 283cf565c0 Memory: Fix read from rom with constant LW 2013-03-09 06:31:26 +11:00
zilmar dd537b518c Porject64: Implement Recompiler LL and SC 2013-02-20 05:31:10 +11:00
zilmar 05e4f22dcf ResetMemoryStackPos: Allow stack pointer to be in tlb space 2013-02-11 19:25:11 +11:00
zilmar 990b9ddb55 Memory: Clean up some breakpoint warnings 2013-02-11 19:24:18 +11:00
zilmar d09f0e6c8e Recompiler: More syncing for sync core 2013-02-05 20:14:26 +11:00
zilmar 5a9cb5f768 Recompiler: Make sure break ends a block 2013-02-05 06:23:10 +11:00
zilmar d7a692a943 Recompiler: Ignore on target -1 2013-02-05 06:22:18 +11:00
zilmar 044c669f24 Recompipler: Fix D.CMP.UN 2013-02-03 21:05:58 +11:00
zilmar 2fb824fcd5 Loop: Set STLI and SLITU to mark the op as modified 2013-02-03 21:05:18 +11:00
zilmar 9c03f2ce5a Timer: Update counters on updating wired registers 2013-02-03 11:51:56 +11:00
zilmar 8e2ea1f674 Loop Analysis: Fix up some breakpoint warnings 2013-02-03 11:51:13 +11:00
zilmar e814eb967b Recompiler: deal with edge condition of Normal_NoSysCheck 2013-01-29 21:42:15 +11:00
zilmar 4fe5d2e224 r4k: Record RSP Broke 2013-01-29 21:41:32 +11:00
zilmar a1ac10fc42 Recompiler: tweaked protect register and DSLL values 2013-01-28 19:37:59 +11:00
zilmar cb3568395c Memory: Force write to SP_STATUS to go through SW_NonMemory 2013-01-28 19:36:14 +11:00
zilmar d48705f87e Memory: Handle LW SP, 0xXXX (SP) 2013-01-26 09:37:33 +11:00
zilmar e55d1f8508 r4300: Modify run rsp logs 2013-01-22 19:46:00 +11:00
zilmar 8997f3fc30 memory: Update counters on write to SP Status 2013-01-20 17:20:52 +11:00
zilmar d827bb27fc Mips System: Reset timer after reg init 2013-01-20 17:13:24 +11:00
zilmar 3933cdef08 recompiler: Remove double check of timer done for branch when delay slot effects compare 2013-01-16 06:00:57 +11:00
zilmar 55e4db8911 Memory: Fix bug in Compile_SB_Const 2013-01-16 05:53:43 +11:00
zilmar 884b408b2d r4300: Cleaned up code for checking interrupts on JAL and JALR 2013-01-14 17:12:11 +11:00
zilmar 72b708850b Memory: Fixed a bug on tlb read for LB and LH 2013-01-14 17:11:20 +11:00
zilmar b2f7f67dc2 Memory: Got LWU to use the same code as LW 2013-01-12 08:57:51 +11:00
zilmar 196b8ee100 Recompiler Ops: Jal to use relative address 2013-01-12 08:16:35 +11:00
zilmar 3e2b93203b Memory: Clean up more tlb writes and SP_SEMAPHORE_REG 2013-01-12 08:15:47 +11:00
zilmar ea58dc3c83 r4300: LWL can cause tlb read exception 2013-01-12 08:14:18 +11:00
zilmar 80aaed3107 Pif: Changed how pif2 challenge response is written to pif 2013-01-06 15:17:23 +11:00
zilmar 720b9c6257 halflife: should not be fast forward if check is zero (this means it is called twice) 2013-01-06 06:53:14 +11:00
zilmar 3c1040c2d9 Audio: revert changes to audio, seemed to make games worse 2013-01-06 06:52:29 +11:00
zilmar 08af4e1c88 Audio: Change audio to have busy flag 2013-01-05 09:48:25 +11:00
zilmar 14bd317e40 Bug: Fix bugs in allocation with function map 2013-01-05 09:47:28 +11:00
zilmar 23cc5f0a67 Memory: Fix bugs related to store tlb & half line 2013-01-05 09:45:16 +11:00
zilmar 8c48ba4f70 Mips: Refactor loading of plugins and how game is shut down 2013-01-03 19:51:00 +11:00
zilmar b8a0303674 Memory: Fix TLB recompiler writes 2013-01-03 19:49:34 +11:00
zilmar 979a0687e6 Mips Memory: fix tlb write for Compile_SB_Const 2013-01-01 07:14:35 +11:00
zilmar 59b2e96062 Speed Limitor: Clean up code and change interval levels 2012-12-31 23:46:03 +11:00
zilmar 6ac9d18e7f Audio: Rewrote sync to audio 2012-12-31 22:02:51 +11:00
zilmar 42dbc691bd Fix bug in TLB writes 2012-12-31 18:02:54 +11:00
zilmar e848cbcded Half life: Update if hard loop checking value 2012-12-31 07:56:49 +11:00
zilmar 33342a77c5 Memory: LB_NonMemory only shows breakpoint when writing to rom 2012-12-29 07:32:15 +11:00
zilmar 746f1168d9 Plugins: Change the order and where that reset/plugin reset is being called. 2012-12-29 07:31:10 +11:00
zilmar 47e393e498 CRecompilerOps::Compile_BranchLikely: handle the case of continue fall through on 0xFFC 2012-12-22 19:45:52 +11:00
zilmar 5cc6a91a41 CCodeBlock::AnalyzeInstruction: better handling of R4300i_REGIMM_BLTZ 2012-12-22 19:44:26 +11:00
zilmar 4f6d6effa3 Added GPL header 2012-12-19 20:30:18 +11:00
zilmar ec220831b9 Refresh Game settings on reset 2012-12-19 12:47:19 +11:00
zilmar ab03a0d10e Allow reset to work correctly in sync core 2012-12-19 10:55:05 +11:00
zilmar d3c946891b Pre allocate RDRAM space 2012-12-18 21:43:29 +11:00
zilmar 718239477f Code Cleanup: Clean up memory search and memory dump class definition 2012-12-18 19:47:53 +11:00
zilmar a444ad3e52 add __FUNCTION__ to trace messages 2012-12-17 11:21:29 +11:00
zilmar c3b743adf1 Game settings: Moved from recompiler settings, moved to n64system as base 2012-11-29 22:23:35 +11:00
zilmar 50ba484893 Clean up code related to making window focus on run 2012-11-29 08:22:06 +11:00
zilmar 601c94f49d Code Refactoring: interface change in Memory Class.h 2012-11-19 22:07:07 +11:00
zilmar 88adba5892 Code Refactoring: Change location of call change 2012-11-19 22:06:37 +11:00
zilmar b49a25cdd1 Code Refactoring: Interpreter CPU 2012-11-19 22:06:01 +11:00
zilmar 6067e5b0de Global Variable: rename _TLBLoadAddress to g_TLBLoadAddress 2012-11-17 21:50:11 +11:00
zilmar 7f00d50dc6 Global Variable: rename _NextTimer to g_NextTimer 2012-11-17 14:45:50 +11:00
zilmar 0410fafd3b Global Variable: rename _SystemEvents to g_SystemEvents 2012-11-17 14:43:02 +11:00
zilmar e8b96dd915 Global Variable: Rename _TransVaddr to g_TransVaddr 2012-11-17 13:35:36 +11:00
zilmar 2bebce913e Global Variable: Rename _SystemTimer to g_SystemTimer 2012-11-17 13:31:46 +11:00