Commit Graph

2987 Commits

Author SHA1 Message Date
mjbudd77 df83c790d9 Changed conditional direct include of openGL logic to be if QT_OPENGL_ES
is defined. This is more correct than checking system arch.
2021-02-02 07:08:31 -05:00
jnahmias ab4cde7dbb
add missing GL include needed on arm arch's (#316)
* add missing GL include needed on arm arch's

On other arch's, including amd64, this gets pulled in via QOpenGLWidget.
However, since it uses GL functions directly and GL.h doesn't get pulled in
automatically, this is necessary on arm.

* Add preprocessor arch checks for linux arm

Co-authored-by: mjbudd77 <44712797+mjbudd77@users.noreply.github.com>
2021-02-01 21:31:20 -05:00
mjbudd77 663e357553 Syntax style preference change on NULL pointer check 2021-02-01 20:15:18 -05:00
Oleg V. Polivets 45fc222467
fix: ppuViewer crashes the app when ROM is not opened (#319) 2021-02-01 20:09:51 -05:00
owomomo 30fcc91fdc
Customizing Hex Editor and Debugger Highlight Colors (#310)
* Configurable Hex Editor text colors.
* Add a customizable color for address title.
* 1. Add some more colors to Debugger highlight
2. Sorting all the colors out for future customization.
3. Re-arranged some includes.
* Make the debugger highlight color customizable.
* Move the button to the right and make the default window size wider.
* Adding color icons and hex values to the color menu items.
* 1. Enlarge the color icon a few pixels
* Debugger and Hex Editor shares the same custom color buffer.
This function finally completed. I believe there is no more details can be developed in recent period.
* 1. Add icon to color menu in another way to prevent the odd space between icons and text.
2. Free some malloc() resources when exit, though it would be somehow eventually recycled by system, but that's not a good rabbit.
3. GetROMName and GetROMPath has malloc() and called so many times in the code, it seems there's no any free() call for their returned char*, it's OK to make them directly return a std::string which is more comfortable for use.
* I forgot hDebug is still NULL in WM_INITDIALOG.
* 1. Rewrite debugger resizing logic, now all the controls on the dialog can stretch and shrink with the window size, when you enlarge the window, the controls on the right is also stretched to fit the height.
2. Moved Syntax highlight and Default window size button to the menu bar, in the past, if the window size is too small to show the default size button on the bottom right corner, it can't be pressed to restore the window, but now you can press it anytime.
* Changed ID of color menu to prevent conflict of some existing dialog controls.
* I don't know why restore default window size cannot be done before game loaded.
* 1. Fix Debugger default width with IDA font.
2. Fix Hex Editor single byte highlight in red.
2021-02-01 20:41:02 +03:00
jnahmias 6f45846975
fix spelling mistakes caught by lintian (#314) 2021-01-31 23:57:24 -05:00
mjbudd77 215f64eab3 For Qt GUI, fixed arrow key tile indexing bug with view mode is sprite 8x16. 2021-01-31 22:14:27 -05:00
mjbudd77 8161e3d80b Added logic to make focus policy configurable for Qt PPU viewer window. 2021-01-31 21:27:05 -05:00
mjbudd77 2940f1da66 Added ppu viewer selected tile movement via key board keys. Added selected tile indication to PPU viewer. 2021-01-31 21:09:21 -05:00
mjbudd77 e74dbeeb51 Added a menu bar to the Qt PPU viewer. Added logic to make the grid and tile selector color selectable. 2021-01-31 15:39:01 -05:00
mjbudd77 9c70a682b7 Added hot key to close hex editor window by pressing Esc key. Added logic to open ppu viewer from name table editor. 2021-01-31 14:07:50 -05:00
mjbudd77 1958daf6cb Added a context menu to the Qt nametable viewer. 2021-01-31 13:50:39 -05:00
mjbudd77 27e94f0fad Added a selected tile view to tile info frame on Qt nametable viewer. 2021-01-30 15:49:56 -05:00
mjbudd77 8bf49b193d For Qt GUI nametable viewer: added option to have click or hover tile focus policy. Fixed a few screen refresh issues when emulator is paused. Fixed a few sync issues between window state and indicated menu settings. 2021-01-30 14:16:31 -05:00
mjbudd77 ec9da639f5 For Qt GUI, added fractional refresh rate to nametable viewer menu. 2021-01-29 06:53:32 -05:00
mjbudd77 9b0ae8840b For Qt GUI, added logic to make nametable viewer tile select, tile grid,
and attribute grid colors configurable.
2021-01-29 06:13:50 -05:00
mjbudd77 aff634b0ed Changed Qt name table viewer layout to more like mesen. 2021-01-28 22:33:28 -05:00
mjbudd77 b5008d89bc For Qt GUI, added name table viewer selected tile box indication. Alse
added scroll and zoom functionality.
2021-01-27 21:36:15 -05:00
mjbudd77 acdbc979ed For Qt GUI, added a menu bar to the name table viewer window. Also added
a compact window view mode.
2021-01-25 22:25:27 -05:00
mjbudd77 a2e3c2705a Added grid lines option to Qt nametable viewer. 2021-01-25 21:13:46 -05:00
mjbudd77 909e3c0c20 Added grid lines to the PPU pattern table viewer for the Qt GUI. 2021-01-25 20:26:09 -05:00
mjbudd77 7ce62ebee3 Added logic to Qt GUI to save off window size and video scaling parameters at application exit so that they can be used at startup to restore window to same size it was previously. 2021-01-24 14:21:18 -05:00
mjbudd77 6cbcc9cc59 Added logic to save the video auto scaling config setting between restarts of Qt GUI. This addresses part of issue #311. 2021-01-24 12:30:42 -05:00
mjbudd77 6f4537733c Added a help menu to new Qt PPU pattern table tile editor. 2021-01-24 11:24:05 -05:00
mjbudd77 d3bc4fb752 Added a PPU pattern table tile editor to the Qt/SDL GUI. This editor allows the user
to graphically set the values of individual pixel cells in the pattern tables.
2021-01-23 19:17:09 -05:00
mjbudd77 c6752c4193 Added standard FCEU GPL2 license header to Qt cpp files that were
missing it.
2021-01-20 19:19:22 -05:00
mjbudd77 1454238f1e
Added #if defined(__unix__) in the appropriate places to allow for the code to compile for FreeBSD 12.2 using the clang 10.0.1 compiler. (#305) 2021-01-16 14:40:28 -05:00
owomomo 0e0d75cea8
Fix Issue #89, Hex Editor features etc (#295)
* 1. Fix a bug that VS System, Extend System and Input Device Combobox don't change any value of the header.
2. Add hex preview to iNES Header Editor.

* Detail bug fix.

* Header Editor Hotfix

* ...

* ...

* Trying to fix Issue #89.

* Add array symbolic debug naming feature to Hex Editor.

* Separate the focus of Hex Editor cursor in different color, and Tab key to switch between them.

* 1. Shift+ArrowKeys to select a range of bytes (Shift+Home/End/PageUp/PageDown currently not supported)
2. Tab to switch between Hex and Text column, and use different color to make it clearer.
3. Sorted out some codes of Hex Editor, they are somehow crowded mess with ambiguous.
4. Detail.

* ...

* I hope there's no more bugs digging out...

* Fix calc bug of GetScreenCoordy(int offset).

* Some document says ExtTextOut is a bit faster than TextOut.

* Ctrl, Shift with arrow keys

* ...

* ...

* ...
2021-01-13 13:32:11 +03:00
zeromus 8ab8db5809 i dont see why ram watches have to be "valid hardware addresses"
it should show exactly whatever hex editor does.
it's probably old and out of date.
2021-01-11 00:03:08 -05:00
mjbudd77 314e3d90a1
Removed unused deprecated automake build files. (#297) 2021-01-06 21:21:35 -05:00
mjbudd77 427daa3543
Added logic to Qt GUI to allow for the main menu bar to be hidden. (#296) 2021-01-05 21:50:37 -05:00
owomomo 65c5b0d2a1
Header editor (#294)
* 1. Fix a bug that VS System, Extend System and Input Device Combobox don't change any value of the header.
2. Add hex preview to iNES Header Editor.

* Detail bug fix.
2021-01-01 17:44:49 +03:00
Dan Weiss 5f1263aef3
Fix Load State for Mapper 19, should not call `SyncMirror` after calling `FixNTAR` (#293) 2020-12-31 16:49:09 +03:00
Dan Weiss b66bcfb3e2
Fix SFMDATA getting a terminator that it shouldn't get if NULL pointer is given (#290) 2020-12-31 16:48:54 +03:00
mjbudd77 6724062581 Fixed NULL check for SPostSave function pointer. Initialized SPreSave and SPostSave pointers to NULL to ensure their initial state is consistent. Also, init FCEU_state_loading_old_format to false as it is always better to have an initial state defined than none at all. 2020-12-30 15:20:34 -05:00
mjbudd77 fde7bfab9f
NL file parsing fix for Qt Gui to properly load array variable entries. (#288)
* Ported over recent fix to PalettePoke function from windows to Qt.

* NL file parsing fix for Qt Gui to properly load array variable entries.
2020-12-29 17:24:38 -05:00
mjbudd77 8d1082b290
Ported over recent fix to PalettePoke function from windows to Qt. (#287) 2020-12-28 17:07:25 -05:00
g0me3 8ae1807957 attpet to fix #282 2020-12-28 22:36:33 +03:00
g0me3 1b0edf183d Merge branch 'master' of https://github.com/TASVideos/fceux 2020-12-28 22:20:02 +03:00
g0me3 ffd322424e fix for #285 2020-12-28 22:19:46 +03:00
owomomo f173e11152 1. Fix "Restore Window Size" restores to a wrong size when screen dpi is not 96.
2. Fix Issue #283, currently no break or crash have been found...
3. Detail.
2020-12-28 23:23:55 +08:00
bbbradsmith 6b5fae2e7d minimum CHRRAMSize allocation for safety < 1k 2020-12-23 14:39:47 -05:00
g0me3 9fc4c98f04 MemViewUpdate cleanup, readability, removed redundant code and stuff. better to see in profiler now the real bottleneck for highlighted coloring being too slow
(TextOutA with not highlight - 32000 calls, 3200000 calls with highlightings+fading)
2020-12-23 18:46:06 +03:00
owomomo dcb086e570
Update Help Document and Minor bug fix (#275)
1. Update help document for new features.
2. Fixed "FamicomDiskSytem" typo in hnd file.
3. Fixed a bug of RAM Watch.
2020-12-22 21:05:31 +03:00
owomomo 4ad03e4cb1
New features in Symbolic Name Debugging (#268)
* New Symbolic Debug Naming dialog:
1. Multiline comments can be directly edited in the dialog.
2. You can add an array of comments to the addresses.
3. More convinient features of symbolic debug naming.
* Update the help document with the new feature of symbolic naming in Debugger.
2020-12-21 19:04:05 +03:00
Alexey 'Cluster' Avdyukhin 6aebbcbb9b FDS fix (SubLoad() returns 0 on success now) 2020-12-21 09:44:41 +03:00
mjbudd77 e64aac93ee Added fceux name and version information to the main window title bar for the Qt/SDL port. 2020-12-20 23:39:25 -05:00
mjbudd77 8073210cc7 Minor array ndexing bug fix for Qt/SDL port symbolic debug array edit feature 2020-12-20 23:10:17 -05:00
mjbudd77 4d4e6b282a Merge branch 'master' of https://github.com/TASVideos/fceux into development 2020-12-20 22:27:27 -05:00
mjbudd77 9f6463c0b8 Updates Qt trace logger with new debug symbol window. 2020-12-20 22:14:47 -05:00