Commit Graph

3390 Commits

Author SHA1 Message Date
Joe Eagar 82463fbdd8 Fixed a few bugs with the scripts system. I suspect there are more; the
threading code needs some refactoring.  List of changes:

* Script threads no longer call the debugger UI (e.g. refresh) nor do
  they call the script system's cleanup function
  (deleteStoppedInstances).
* Changed API.js Server.on method to queue calls to nativeAccept if .listen()
  hasn't been called yet (otherwise winsock gives errors).
* Added various paranoia thread locks.
* Forced termination of script threads now works.  The (commented) call
  to TerminateThread didn't work because getCurrentThread() doesn't return
  a "real" HANDLE.  The solution is to pass the result of getCurrentThread
  to DuplicateHandle to get a "real" handle.
2019-04-28 23:28:12 -07:00
zilmar 7a964b058e Check for recompiler in SysEvent_ResetRecompilerCode 2019-04-29 06:26:07 +09:30
Joe Eagar 83f445f050 Fixed heap overrun error 2019-04-28 00:38:35 -07:00
zilmar 352dcff301 Have cheats to record in project64.cfg 2019-04-24 15:17:09 +09:30
zilmar bf269454dd Automatically combine cheat files on build 2019-04-23 14:46:36 +09:30
zilmar a3d9249fdb
Merge pull request #1613 from oddMLan/restore-oc-gamesettings
Restore Overclock modifier in Game Settings panel
2019-04-23 13:30:53 +09:30
zilmar ffc24d4e7d Fix up DisplayMessage for android 2019-04-23 07:01:10 +09:30
oddMLan cfbc2ee75e [Status Bar] Tweak duration of some messages
Makes debugging with CPU profiling much more pleasant
2019-04-20 13:35:05 -07:00
oddMLan 61465ce2a5 [Frame Rate Counter] Shrink it a little bit
Prevents "Show CPU Usage" from cutting off in HIDPI configurations
2019-04-20 13:17:42 -07:00
oddMLan ead4d9311e [Game Settings] Restore Overclock Modifier 2019-04-20 11:57:33 -07:00
zilmar cad17b23a0
Merge pull request #1614 from shygoo/nrage-bginput
[N-Rage] Add background input option
2019-04-20 16:27:39 +09:30
shygoo abbfb0361f [Debugger] Adjust font/size of some controls 2019-04-20 00:39:14 -05:00
shygoo 1b53acad89 [N-Rage] Add background input option 2019-04-19 23:44:04 -05:00
zilmar 34aeb0ab8f
Merge pull request #1607 from oddMLan/ux-improvements
Minor UI improvements
2019-04-20 10:07:30 +09:30
oddMLan c7a6e51d62 Make Rom Browser DPI Aware 2019-04-19 17:08:24 -07:00
oddMLan b1e950be20 Move CListViewCtrlVarDPI class code into ATL 2019-04-19 16:48:53 -07:00
oddMLan de29d0c157 [Icon] Add 256x256 size
It should be XP-compatible. XP is just going to take the 48x48 and ignore this one.
2019-04-19 14:41:13 -07:00
oddMLan 05f98f8c09 Make Status Bar, About Dialog and Language Selector DPI Aware 2019-04-19 13:51:42 -07:00
oddMLan 2f9529a2cf [Cheats] Improved UI layout 2019-04-18 22:41:49 -07:00
oddMLan b9025667f8 [Debugger UI] Save window size only when the window is resizable.
Prevents some dialogs from becoming clipped at high DPI
2019-04-18 18:18:55 -07:00
oddMLan df9967b782 [Debugger] Change Commands and Registers font to Lucida Console 2019-04-18 16:29:07 -07:00
oddMLan d21e7c8684 Fix warning 2019-04-18 15:35:54 -07:00
oddMLan d83c8597b6 [Debugger] Make Debugger DPI-Aware
Thanks @Shygoo for the class code
2019-04-18 14:10:04 -07:00
zilmar 57a0ddcef4 Add project to join multiple cheats together 2019-04-18 16:57:20 +09:30
oddMLan b42e61f505 Remove black border around Cheat separator button 2019-04-15 20:55:49 -07:00
oddMLan a27b3440e0 Get rid of ugly WS_EX_CLIENTEDGE 2019-04-15 20:48:33 -07:00
oddMLan b377f48440 Use Per monitor scaling where supported
Fixes blurriness in higher DPI systems
2019-04-15 10:33:54 -07:00
oddMLan 564ac883a4 Revert "Delete Project64.exe.manifest"
This reverts commit 3a7de99930.
2019-04-15 09:35:46 -07:00
oddMLan 2555485eb9 [Debugger UI] Center CPU Exception Breakpoints dialog
Also fix capitalization in menu
2019-04-15 08:58:22 -07:00
oddMLan 01d4ed0bc3 Change some error message boxes to warnings 2019-04-15 08:58:22 -07:00
zilmar ff8d6f2462 try to update build.cmd 2019-04-15 08:02:24 +09:30
shygoo 346d21cd56 [Debugger] Improve the search tool 2019-04-03 13:56:45 -05:00
shygoo 22b4a3e94f [Debugger] Make DMA log stable 2019-04-02 14:16:39 -05:00
shygoo 27bc76d089 [Debugger] Make DMA log stable 2019-04-02 13:28:46 -05:00
Francois Berder da37c46cbc Project64-core: Fix undefined behavior in CPifRam::LogControllerPakData
Signed-off-by: Francois Berder <fberder@outlook.fr>
2019-03-27 09:40:37 +00:00
Francois Berder f2e6199fcb RSP: Fix undefined behavior in RDP_LogDlist
When calling sprintf, source and destination must not overlap
otherwise it is undefined behavior as specified by
C99 standard, 7.19.6.6.

Signed-off-by: Francois Berder <fberder@outlook.fr>
2019-03-27 09:38:44 +00:00
zilmar eb2b1f0a2c [Android] Add review menu 2019-02-20 11:48:28 +10:30
zilmar f6d4290992 [Android] Missed some patreon settings 2019-02-13 15:52:21 +10:30
zilmar 19328cc7ef [Adnroid] Remove all mentions of patreon 2019-02-13 15:39:47 +10:30
zilmar 9902b542c3 [Android] Turn ABL off by default in android 2019-02-13 15:12:35 +10:30
zilmar be2ee76e79 Start to add in support menu item 2019-02-13 15:11:35 +10:30
zilmar 92d22a014b [Android] Change forum menu link to discord 2019-02-13 11:55:58 +10:30
zilmar 03700db740 [Project64] Add checks around g_Debugger->FrameDrawn 2019-02-10 09:14:51 +10:30
zilmar cfc510880c [Android] Put android settings under settings 2019-02-09 06:31:17 +10:30
zilmar aca70f317c [Project64] Fix CPath::IsRelative for non WIN32 2019-02-09 05:02:02 +10:30
zilmar 23f040c0dd
Merge pull request #1585 from Frank-74/master
[Project64-Audio] Remove FAT from audio plugin.
2019-02-03 05:51:24 +10:30
zilmar eaab627f64 [Project64] change memcpy_s to memcpy 2019-01-31 18:41:24 +10:30
zilmar eef2ed27aa
Merge pull request #1586 from shygoo/debugger-cleanup
[Debugger] Clean up compiler warnings
2019-01-28 17:53:24 +10:30
shygoo 03ba3640b5 [Debugger] Clean up compiler warnings 2019-01-27 16:40:23 -06:00
Frank-74 a5e6f55a47 [Project64-Audio] Remove FAT from audio plugin.
Fixes main.cpp error.
2019-01-27 21:59:42 +00:00
LuigiBlood 29a97e6c8b Handle m_RomName for disks that don't have any disk ID (use CRC instead) and also forge disk header differently for plugins. 2019-01-27 22:03:52 +01:00
LuigiBlood b8c47d0087 Alternate calculation of "CRC" for disks that don't have IDs 2019-01-27 21:21:25 +01:00
zilmar e286d90dab
Merge pull request #1576 from LuigiBlood/64dd_load
64DD support overhaul
2019-01-28 06:01:48 +10:30
Frank-74 cbb973a824
Move Fixed Audio setting back to Project64.rdb 2019-01-27 19:14:27 +00:00
LuigiBlood 0870ecbc0d Handle case where IPL ROM is not found (or not yet set up) to display an error message 2019-01-27 13:17:31 +01:00
LuigiBlood 0a347f59f1 DD IPL ROM check in CN64Rom instead 2019-01-27 13:06:36 +01:00
LuigiBlood 3e52ff7b48 Manage 64DD IPL loading errors 2019-01-27 12:52:22 +01:00
zilmar c85054f0c0
Merge pull request #1577 from shygoo/input-require-focus
[N-Rage] Ignore input if main window isn't focused
2019-01-27 16:27:21 +10:30
LuigiBlood 0233d848c2 Forge 64DD Disk Header for plugins
(For some reason, no idea how common that gets, but CMainGui::ProcessAllMessages can crash the entire emulator with some kind of access violation error...)
2019-01-26 16:58:41 +01:00
LuigiBlood f312476b8b Handle Disk "Header" for Plugins (not forged, may be unreliable) 2019-01-26 14:31:24 +01:00
LuigiBlood 48ce8fbee7 Enable Disk based on what is loaded instead (fix Combo loading) 2019-01-26 09:40:58 +01:00
LuigiBlood b1a2fcfddd Fix Memory leak when switching back and forth from 64DD to N64 2019-01-25 23:12:01 +01:00
LuigiBlood c0b3246a2e Set up EnableDisk when anything 64DD is being loaded 2019-01-25 23:11:33 +01:00
LuigiBlood f300fd9cb5 Uninitialize g_Disk and g_DDRom to prevent exception when ending emulation of a regular ROM after playing 64DD content previously. 2019-01-25 22:53:50 +01:00
LuigiBlood 40841f0d71 Handle Loading in Progress properly (fix Main Menu refresh) 2019-01-25 22:39:05 +01:00
LuigiBlood 047f611c81 Replace tabs with spaces 2019-01-25 21:32:26 +01:00
LuigiBlood 95e31542cf Refactor 64DD game loading (supports custom settings and RDB)
(Nothing done for plugins yet)
2019-01-25 20:20:59 +01:00
LuigiBlood cd80e4f0a4 Handle 64DD loading from ROM Browser, Recent Games, RomInfo
Partially handles settings (loads from RDB and CFG, but unused as emulation starts)
2019-01-25 08:11:40 +01:00
shygoo c51232bc37 [N-Rage] Ignore input if main window isn't focused 2019-01-24 13:50:22 -06:00
zilmar 1789dccda2
Merge pull request #1574 from LuigiBlood/cause_reg_pull
COP0 Cause register access for Scripts
2019-01-25 06:16:51 +10:30
zilmar e720f3688c
Merge pull request #1573 from LuigiBlood/NRagePlugintest
[N-Rage] Mouse Lock Up fix when ending emulation when it's locked?
2019-01-25 06:16:11 +10:30
LuigiBlood c714584fac Cause register access for scripts 2019-01-24 19:48:26 +01:00
Frank-74 3ba775ba53 [Project64-Audio] Remove test writetraces 2019-01-21 08:41:50 +00:00
Frank-74 47c37e7398 [Project64-Audio] Fix some games running slow 2019-01-21 08:37:17 +00:00
Frank-74 473fea7e4a [Project64-Audio] Remove round frequencies 2019-01-21 08:35:42 +00:00
Frank-74 21c73a5ee3 fix resource 2019-01-21 05:56:01 +00:00
Frank-74 5d80fdaaa4 Update Project64-Audio 2019-01-21 05:45:52 +00:00
shygoo 62baab2877 [Debugger] JS: Make debug.breakhere stable 2019-01-20 17:38:34 -06:00
shygoo 7a1dd3835b [Debugger] Add GPR read/write breakpoints 2019-01-20 02:52:49 -06:00
zilmar 9a80a4970a
Merge pull request #1564 from shygoo2/cpu-log-improvements
[Debugger] CPU Log: More UI behavior improvements
2019-01-20 09:53:52 +10:30
zilmar e974576c00 Merge branch 'master' of https://github.com/project64/project64
# Conflicts:
#	Source/Project64/UserInterface/UIResources.rc
#	Source/Project64/UserInterface/resource.h
2019-01-20 09:02:18 +10:30
zilmar ce03386007 [Project64] Add gamesharks to enhancements 2019-01-20 08:51:38 +10:30
shygoo 98e933be1b [Debugger] CPU Log: More UI behavior improvements 2019-01-19 14:14:26 -06:00
zilmar 557892e47e
Merge pull request #1556 from shygoo2/cmds-fix-addr-textbox
[Debugger] Commands: Update address textbox when address is changed
2019-01-18 15:29:30 +10:30
zilmar afa4619bc0 [Project64] Add enhancements right click edit 2019-01-18 12:30:19 +10:30
shygoo 6b34e8f77c [Debugger] Add CPU exception breakpoint window 2019-01-17 03:34:24 -06:00
Frank-74 52aaf57097
remove unreferenced SyncAudio from ReadSettings 2019-01-17 04:40:28 +00:00
Frank-74 e4c85c5cb7
Fix typo, extra bracket
I did the PR on the website instead of through Github Desktop.  Made a typo.
2019-01-17 04:33:06 +00:00
Frank-74 57884f1091
[Project64-Audio] Fix sync using audio toggle
Fixes running unlimited if turning sync using audio off while a game is running.
2019-01-16 22:57:35 +00:00
Frank-74 6d7c2e09a8
[Project64-Audio] Fix clicks with Sync using audio OFF 2019-01-16 22:53:49 +00:00
shygoo 26151f1d9e [Debugger] Commands: Update address textbox when address is changed 2019-01-16 14:06:33 -06:00
zilmar 52c62e5707
Merge pull request #1554 from oddMLan/misc-bugfixes
Misc bugfixes
2019-01-16 16:59:13 +10:30
oddMLan 2f868d5e4c Fix #1524: Broken speed display
Before updating the status bar ensure that the user enabled speed display in the UI
2019-01-15 22:31:44 -07:00
zilmar 9a914a7ff4
Merge pull request #1555 from Frank-74/master
Fix x64 compile error
2019-01-16 07:04:10 +10:30
Frank-74 fe7dd71d53 Fix x64 compile error
I don't know why this is needed, as x86 build works fine without it.  x64 build fails with Project64-core/N64System/Recompiler/CodeSection.h(19): error C2504: 'CDebugSettings': base class undefined
2019-01-15 19:45:54 +00:00
oddMLan fff7bb5793 [RSP] Restore window if minimized when invoked from the context menu
Similar fix to 798e19b2a6
2019-01-15 01:58:25 -07:00
oddMLan ad31492585 [RSP] Update resource file
RSP Command showed a maximize button that when used would glitch the RSP window. Now the RSP Command and RSP Register window both use WS_MINIMIZEBOX.
2019-01-15 01:58:24 -07:00
oddMLan 46ddb42017 [Debugger] Fix DList/Alist and Recompiler Code Buffer Size status bar clear
Before they wouldn't clear the status bar message properly when toggling them off
2019-01-15 01:58:24 -07:00
oddMLan 3a7de99930 Delete Project64.exe.manifest
It is no longer necessary, Visual Studio will generate and embed an intermediate on compilation time.
2019-01-15 01:58:23 -07:00
shygoo 42613f96e1 [Debugger] CPU Log: fix mousewheel scrolling 2019-01-14 23:19:28 -06:00