WerWolv
d55c59c796
feat: Added close button for welcome screen
2022-08-10 10:28:40 +02:00
WerWolv
5c13cf9dbf
sys: Added support for providers with unreadable regions
2022-08-10 09:26:48 +02:00
WerWolv
19a0dc80db
fix: Window title not always updating correctly
2022-08-10 00:11:16 +02:00
WerWolv
a3132b7d13
build: Fixed system llvm linking errors
2022-08-09 14:59:58 +02:00
WerWolv
0192c791ce
sys: Updated llvm demangler, now supports D-Lang and Rust symbols
2022-08-09 13:51:03 +02:00
WerWolv
b1e93fda4b
sys: Format settings file more prettily
2022-08-09 09:39:04 +02:00
WerWolv
8ebbe6fb4e
patterns: Fixed crash when preprocessor throws an error
2022-08-09 08:58:31 +02:00
WerWolv
e38b6ecd2c
patterns: Fixed reading from strings passed to functions
2022-08-08 23:51:13 +02:00
WerWolv
966f3b8597
sys: Replace existing bad project system with a much better one ( #663 )
...
* sys: Initial effort to replace existing project files with a better system
* sys: Added back marking provider as dirty
* sys: Remove git commit information from project files
* sys: Format data processor save file nicely
* fix: Automatic pattern loading not working correctly
* ui: Added warning popup when closing a provider with modifications
Closes #604
* sys: Fixed build issues
* tests: Removed useless debug logs
* patterns: Updated pattern language
* sys: Added log message when crashing with a signal
* sys: Make sure abnormal termination handlers are being called more reliably
2022-08-08 21:23:52 +02:00
WerWolv
423e23e3c0
fix: Windows native theme detection not working correctly
2022-08-08 12:57:51 +02:00
WerWolv
2c740cab06
sys: Added select region command
2022-08-08 12:57:44 +02:00
WerWolv
e16216b39e
patterns: Fixed for-loop parsing
2022-08-07 23:27:25 +02:00
WerWolv
f221d0f430
fix: Properly place config files in .../imhex/config on Linux
2022-08-07 23:27:15 +02:00
WerWolv
738a537723
patterns: Fixed display issue with static array entries
2022-08-07 22:03:32 +02:00
Bernard Teo
d8d3a315a4
build: Update nfd-extended to get correct feature test detection ( #661 )
2022-08-07 15:32:56 +02:00
WerWolv
f62ca307b0
ui: Streamline region selection in different views
...
Fixes #660
2022-08-07 12:20:40 +02:00
WerWolv
2200e11e85
fix: Pattern language runtime not being reset properly after checking MIME types
2022-08-07 00:11:54 +02:00
WerWolv
69d000488e
api: Added api function to create pattern
2022-08-06 22:29:59 +02:00
WerWolv
88f8bb9848
sys: Updated to new pattern language library structure
2022-08-06 21:38:09 +02:00
WerWolv
7d93c54444
build: Updated nfd-extended to prevent linking of macOS 11 framework
2022-08-06 14:33:23 +02:00
WerWolv
a97f853110
fix: More search issues
2022-08-06 13:16:53 +02:00
WerWolv
3dc5f0e2be
fix: Buffered Reader not reading last byte
...
Closes #653
2022-08-06 13:07:02 +02:00
WerWolv
d7accb6916
feat: Allow Find view to find overlapping occurrences
...
Closes #653
2022-08-06 12:57:47 +02:00
WerWolv
58f54caf55
ui: Added u24, i24, u48 and i48 to data inspector
...
Closes #651
2022-08-05 12:19:50 +02:00
WerWolv
e3ef7d53a7
ui: Fixed pattern tooltip of static array only showing value of last entry
2022-08-05 10:55:29 +02:00
WerWolv
0e2bfa25ab
ui: Use easier to read float representation in various places
2022-08-05 09:36:04 +02:00
WerWolv
352df24160
build: Move another warning disable to the build script
2022-08-05 08:42:09 +02:00
WerWolv
5a41be48c3
build: Disable restrict warning
2022-08-05 08:32:08 +02:00
iTrooz_
e816b67472
build: Fix various issues for upstream Fedora compatibility ( #642 )
...
* cmake: use GNUInstallDirs to find install dirs on Linux
* install plugins to lib/imhex/plugins
* fix included files in imhex.spec
* fix the release CI + do not upload x86_64 folder for Fedora
* change rpm names
* added IMHEX_STRIP_RELEASE option to optionally strip releases files (was done all the time before)
* Customize our imhex.spec file (use online building for our Fedora package)
* added IMHEX_PLUGINS_IN_SHARE option for AppImage
* test
2022-08-04 20:37:57 +02:00
WerWolv
881b633006
patterns: Updated pattern language
2022-08-04 10:52:50 +02:00
WerWolv
0f8ac672f3
sys: Fixed compile issue on non-Windows
2022-08-04 09:51:07 +02:00
WerWolv
be37228dc6
sys: Fixed resize cursors not appearing in non-borderless window mode
2022-08-04 09:46:17 +02:00
WerWolv
c1da2497a7
fs: Fix paths on macOS
2022-08-04 08:56:58 +02:00
WerWolv
14150b5a04
sys: Fix macOS build issues
2022-08-03 23:48:39 +02:00
WerWolv
deabacbd50
sys: Updated ImGui, ImPlot and imnodes to latest versions
2022-08-03 23:32:34 +02:00
ogarvey
09a1e59b8c
fix: Allow Numpad Enter to work in text editor ( #645 )
...
Fixes #590
2022-08-03 19:52:45 +02:00
iTrooz_
47166db166
fix: Invalid paths being added to the default paths on Linux ( #644 )
...
* do not iterate over XDG home dir
* fixed typo
* use push_back
* same fix for getConfigPaths
2022-08-03 19:52:02 +02:00
WerWolv
ace25d353b
fix: GLFW error on exit
2022-08-03 10:45:50 +02:00
WerWolv
0ac8fcd1eb
feat: Added binary pattern search to find view
2022-08-03 10:19:34 +02:00
WerWolv
0a97b59228
sys: Fixed one remaining log::info occurrence
2022-08-02 23:07:12 +02:00
WerWolv
fdcce1c046
patterns: Updated pattern language
2022-08-02 22:56:07 +02:00
WerWolv
30b2378778
fs: Refactored default path handling ( #637 )
2022-08-02 22:55:01 +02:00
WerWolv
4d7de8d466
sys: Make sure nativefiledialogs doesn't use macOS 11 frameworks
...
Fixes #597
2022-08-02 13:20:06 +02:00
Ryan Russell
55d046fa36
refactor(imgui-rs): Rust code readability improvements ( #620 )
...
* chore: bug report template readability fix
Signed-off-by: Ryan Russell <git@ryanrussell.org>
* refactor(imgui-rs): Doc aliases readability fixes
Signed-off-by: Ryan Russell <git@ryanrussell.org>
* refactor(imgui-rs): Code comment readability
Signed-off-by: Ryan Russell <git@ryanrussell.org>
2022-08-02 12:11:04 +02:00
WerWolv
59449bbe47
fix: Portable version detection not working correctly
2022-08-01 23:25:13 +02:00
WerWolv
a4c377dc08
fix: Compile issue
2022-08-01 15:06:17 +02:00
WerWolv
b8c034f8c5
sys: Prevent portable Windows version from writing to AppData
...
Fixes #627
2022-08-01 14:51:40 +02:00
WerWolv
84e049be07
build: Fixed some issues to make porting to other systems easier
2022-08-01 14:35:25 +02:00
WerWolv
d8a4a94565
build: Explicitly mark libfmt as -fPIC
2022-08-01 14:07:03 +02:00
WerWolv
e530cdbc7f
patterns: Updated pattern language
2022-08-01 13:20:54 +02:00
gudzpoz
eca5fb894f
feat: Added LEB128 in data inspector ( #615 )
...
* feat: Added LEB128 in data inspector
* feat: Added support for editing LEB128 values
* Moved LEB functions from utils.cpp to crypto.cpp
* Added placeholders for translations
* Made DataInspector::impl::Entry.maxSize mandatory
* Fixed undefined leftshifting behaviour
2022-08-01 13:20:20 +02:00
WerWolv
64f962dbb2
patterns: Updated pattern language
2022-08-01 12:46:45 +02:00
WerWolv
de2458f72d
patterns: Added support for the new [[sealed]] attribute
2022-07-31 15:10:59 +02:00
WerWolv
4d3538781b
sys: Copy pattern source code from current provider to newly created one
2022-07-31 11:09:20 +02:00
WerWolv
3d5568f65f
sys: Fixed global shortcuts not working correctly
...
Fixes #606
2022-07-30 22:01:49 +02:00
WerWolv
7a4541dac7
ui: Change the provider selector from a dropdown to a tab bar
2022-07-30 21:25:18 +02:00
WerWolv
004cab13dc
sys: Replaced many info logs with debug logs
2022-07-30 11:26:51 +02:00
WerWolv
24c243bcf6
sys: Reset settings if it cannot be parsed anymore
2022-07-30 11:19:56 +02:00
WerWolv
2b9e43db82
fix: Crash when using BufferedReader ReverseIterator
2022-07-29 21:44:00 +02:00
WerWolv
419a2875b3
sys: Added filter option to find view
2022-07-29 18:49:43 +02:00
WerWolv
6f3a5e896c
sys: Fixed hidpi framebuffer scaling
...
Actually fixes #598
2022-07-29 17:37:30 +02:00
WerWolv
b7324913e9
sys: Replaced Search view with a generic Find view
...
Closes #551
2022-07-29 13:59:57 +02:00
WerWolv
1b68ea4eba
sys: Prevent providers from being modified when any async task is running
2022-07-29 11:35:29 +02:00
WerWolv
fb4c21b97a
build: Fix weird macOS build errors ( #591 )
...
* cleanup
* Remove prints
2022-07-26 14:59:08 +02:00
WerWolv
d356993e33
fix: Various search issues
2022-07-26 13:28:21 +02:00
catsout
3b8b95a22f
fix: Add Config/DataHomeDir paths before Config/DataDirs paths ( #586 )
...
fix not saving to "XDG_DATA_HOME", when "XDG_DATA_DIRS" is available.
fix "Content Store" persist in flatpak.
XDG specification specifies how to find config and data directories on
linux systems. Specifically, it says this:
- Data should be written to $XDG_DATA_HOME
- Config should be written to $XDG_CONFIG_HOME
- Data should be read from $XDG_DATA_HOME:$XDG_DATA_DIRS
- Config should be read from $XDG_CONFIG_HOME:$XDG_CONFIG_DIRS
2022-07-25 12:08:10 +02:00
WerWolv
0c8deecfc5
patterns: Updated pattern language
2022-07-25 11:50:46 +02:00
WerWolv
c1a2697e42
ui: Added filter to bookmarks view
2022-07-23 20:38:38 +02:00
WerWolv
2fb51d1a56
patterns: Fixed Bit and Bool operator mixup
2022-07-18 11:39:50 +02:00
WerWolv
499b68b7ad
build: Updated nativefiledialog library
2022-07-16 13:26:07 +02:00
WerWolv
0d3eaa5d86
patterns: Updated pattern language
2022-07-16 12:57:33 +02:00
WerWolv
5ee3b550bc
ui: Fixed advanced decoding cell sizes
2022-07-16 12:14:06 +02:00
WerWolv
831dac9b47
patterns: Updated pattern language
2022-07-15 11:38:46 +02:00
WerWolv
461c5eac3e
fix: Crash when closing the file picker without picking a file
2022-07-07 23:28:40 +02:00
WerWolv
071bae345e
patterns: Fixed passing placed values to functions
2022-07-07 21:32:25 +02:00
WerWolv
b6b5045340
build: Downgrade nativefiledialog again
2022-07-06 16:58:36 +02:00
WerWolv
ab4f17a6f4
patterns: Fixed provider operation crash
2022-07-06 16:46:33 +02:00
WerWolv
12942a4e71
build: Updated libromfs
2022-07-06 16:29:26 +02:00
WerWolv
1a378381bd
build: Updated pattern language
2022-07-06 11:30:23 +02:00
WerWolv
c752fba1c4
ui: Added backdrop image when no views are open
2022-07-06 11:30:06 +02:00
WerWolv
d40a445f33
build: Updated various dependencies
2022-07-06 11:30:06 +02:00
WerWolv
e0cae1dacb
patterns: Improved pattern formatting
2022-07-06 11:30:06 +02:00
WerWolv
31a746f3fc
fix: Issue opening files that contain special characters on Linux
...
This is a (hopefully temporary) hack. Fixes #568
2022-07-06 11:29:24 +02:00
WerWolv
e981fa53f3
fix: std::u8string usage with nlohmann::json
2022-07-05 09:01:09 +02:00
WerWolv
4cd390ab02
fix: Various more unicode issues
2022-07-05 00:00:00 +02:00
WerWolv
fc20d751bb
build: Use Portal instead of GTK file dialogs on Linux
2022-07-02 20:11:43 +02:00
WerWolv
de269e7a48
sys: Remove remaining references to hex.builtin from libimhex
2022-07-02 17:53:13 +02:00
WerWolv
0ed885fe0f
sys: Removed all references to hex.builtin from main application
2022-07-02 16:22:38 +02:00
WerWolv
f9fc7051fc
tests: Added UTF-8 file operation tests
2022-07-02 10:05:25 +02:00
WerWolv
ab1f4df9d9
fix: In/Out variables not being added to the interface when using menu item to load pattern
2022-07-01 19:56:28 +02:00
WerWolv
710771b8b1
patterns: Cleanup pattern search
2022-07-01 19:12:01 +02:00
WerWolv
2d982e2088
fix: Drastically improve pattern highlighting performance
2022-07-01 19:05:53 +02:00
Shiroki Satsuki
ef5fbba56b
feature: Added network proxy support for hex::Net ( #562 )
...
* feat(i18n): update Chinese(Simplified) translation
* feat: proxy setting
* refactor: add hex::Net::setProxy
* fix: undefined symbol: hex::Net::m_proxyUrl
* style: m_proxyUrl -> s_proxyUrl
2022-07-01 14:05:32 +02:00
WerWolv
3db50a690c
fix: Various issues with UTF-8 paths
2022-06-30 19:39:06 +02:00
WerWolv
96aa929c31
fix: Removed additional }
2022-06-30 15:33:21 +02:00
WerWolv
e07fc76abf
fix: MacOS include
2022-06-30 15:28:51 +02:00
WerWolv
f01e227c87
sys: Added missing macOS includes
2022-06-30 15:20:13 +02:00
WerWolv
bb429aae62
fix: Theme detection issues on all OSes
2022-06-30 15:09:57 +02:00
WerWolv
19f99bab0c
fix: Issues when opening files with unicode names
2022-06-30 14:57:05 +02:00
WerWolv
1f433fc36d
sys: Fixed byte units
2022-06-30 11:43:40 +02:00
WerWolv
034cc0cd2f
ui: Improved byte selection text
2022-06-30 11:29:20 +02:00
WerWolv
3efdc02fed
patterns: Improved automatic heap management
2022-06-30 11:19:37 +02:00
WerWolv
501d141e13
patterns: Added support for custom local types
2022-06-30 08:14:33 +02:00
WerWolv
9c1006f3ae
fix: Compile errors because of Windows function defined on all systems
2022-06-30 07:47:32 +02:00
WerWolv
5b0813478e
fix: Copying to clipboard not working correctly with non-english locales
...
Fixes #563
2022-06-30 07:44:22 +02:00
WerWolv
ac964dc5ec
fix: Path handling and plugin loading breaking with non-ASCII paths
2022-06-29 21:34:17 +02:00
WerWolv
673027c82d
fix: Crash on exit
2022-06-27 17:01:21 +02:00
WerWolv
e02ccd9b9b
patterns: Actually fixed endian inversion in functions
2022-06-27 16:27:19 +02:00
WerWolv
956276d1ee
patterns: Fixed endian inversion in functions
...
Fixes #555
2022-06-27 15:15:10 +02:00
WerWolv
a936cf1ce4
fix: Another file read issue
2022-06-27 15:08:22 +02:00
WerWolv
5800546369
fix: Tar extraction and file string read error
2022-06-27 14:58:40 +02:00
WerWolv
3471b314dd
build: Switch to GCC on MacOS ( #552 )
...
* build: Experimentally switch to gcc on macOS
* build: Corrected gcc paths
* build: Enable objective c support on macOS
* build: Enable ObjC and ObjC++ on macOS
* build: Add ObjC and ObjC++ flags
* build: Try compiling objc with clang
* build: Remove invalid flags again
* fix: Let's not include objc headers in C++ code
* sys: Move macos utils code to its own file
* fix: Missing unistd include on mac
* sys: Removed loader script stuff since it's currently unused and broken
* fix: Missing include
* fix: Another missing include
* fix: CFURLCreateWithBytes wants a pointer to mutable data
* fix: Try disabling name mangling of ObjC functions
* sys: Move macos utils declarations to its own header file
* fix: C Linkage
* fix: Move objc function prototypes to C++ headers
* fix: More missing includes
* fix: Warning error
* sys: Call ObjC with C ABI instead of trying to use C++
* build: Update libraries
* sys: Fixed build errors
* sys: No const correctness I guess
* sys: Fixed prototypes
* sys: This is C now
* sys: More nullptr -> NULL
* sys: Fix crash on exit
* sys: Try using proper std concepts instead of custom ones
* sys: Replaced another hex::is_signed
* build: Upgrade to gcc 12 and MacOS Monterey
* build: Fixed MacOS runner name
* build: Cache correct ccache folder on macOS
2022-06-25 12:19:59 +02:00
WerWolv
a5aa002752
patterns: Moved most built-in functions to the pattern language repo
2022-06-23 19:33:30 +02:00
Polshakov Dmitry
662d80abea
feat: Add ability to remove bytes ( #531 )
...
Co-authored-by: Dmitry Polshakov <dmitry.polshakov@dsr-corporation.com>
2022-06-17 14:21:56 +02:00
WerWolv
6490e565d3
patterns: Fixed formatting issue with values of static arrays
...
Fixes #540
2022-06-17 13:47:49 +02:00
WerWolv
6b7ade8d61
fix: MacOS build error
2022-06-17 10:42:54 +02:00
WerWolv
9b77d7b5e2
fix: MacOS build error
2022-06-17 10:31:28 +02:00
WerWolv
1785088456
fix: MacOS looking for plugins in wrong folder inside of bundle
...
Hopefully addresses #539
2022-06-17 10:23:28 +02:00
WerWolv
5e67a1f27b
sys: Refactor tar file operations into their own class
2022-06-16 15:42:08 +02:00
WerWolv
5551e82fea
ui: Fix hash function name localization
2022-06-14 11:54:34 +02:00
WerWolv
653a688fe6
fix: Very inefficient iterating over static array patterns
...
Fixes #532
2022-06-14 10:29:41 +02:00
WerWolv
dfc1dc2529
fix: Highlighting of static arrays that start at uneven addresses
...
Fixes #534
2022-06-14 10:19:59 +02:00
WerWolv
a5d202ffc8
fix: Vector out of bounds access
2022-06-13 21:56:02 +02:00
dependabot[bot]
9d19214be9
build(deps): Bump regex from 1.5.4 to 1.5.6 in /lib/libimhex-rs ( #526 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.5.4 to 1.5.6.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.5.4...1.5.6 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 16:19:16 +02:00
WerWolv
5623e1342b
fix: Crashes when parsing invalid wstrings
2022-06-03 18:46:38 +02:00
WerWolv
d1d73bcff6
fix: Editing bytes in the hex editor being broken
...
Fixed #521
2022-06-03 10:53:03 +02:00
WerWolv
fe6be686b7
ui/ux: Complete rewrite of the Hash view
2022-05-30 16:36:46 +02:00
WerWolv
05862ae991
ui: Make pattern editor error popup text more readable
...
Closes #517
2022-05-29 21:54:40 +02:00
WerWolv
f1b2d5881e
tools: Added IEEE 756 floating point number tester
2022-05-29 14:57:59 +02:00
WerWolv
8a24517fb9
fix: Disable warnings only on GCC 12 and higher
2022-05-28 19:59:38 +02:00
WerWolv
a4c8bcab18
fix: Disable another warning to make macOS happy
2022-05-28 16:36:00 +02:00
WerWolv
7bf94ffe42
fix: Compile errors on platforms that don't support -Wstringop-overread yet
2022-05-28 16:24:57 +02:00
WerWolv
088205385f
fix: Workaround that broke functionality. Instead disable warnings
...
This actually fixes #515 for now
2022-05-28 16:19:08 +02:00
WerWolv
39c743631b
fix: Weird build error on GCC 12.1.0 again
...
This fixes #515
2022-05-28 15:46:39 +02:00
WerWolv
603a95debb
patterns: Updated pattern language
2022-05-28 14:14:12 +02:00
WerWolv
b751f98e91
ui/ux: Rewrite of the entire hex editor view to make it more flexible ( #512 )
...
* ui/ux: Initial recreation of the hex editor view
* ui/ux: Added back support for editing cells
* ux: Make scrolling and selecting bytes feel nice again
* ui/ux: Improved byte selecting, added footer
* sys: Make math evaluator more generic to support integer only calculations
* patterns: Moved value formatting into pattern language
* ui/ux: Added Goto and Search popups, improved selection
* ui: Added better tooltips for bookmarks and patterns
* sys: Use worse hex search algorithm on macOS
Sadly it still doesn't support `std::boyer_moore_horsepool_searcher`
* ui: Added back missing events, menu items and shortcuts
* fix: Bookmark highlighting being rendered off by one
* fix: Various macOS build errors
* fix: size_t is not u64 on macos
* fix: std::fmod and std::pow not working with integer types on macos
* fix: Missing semicolons
* sys: Added proper integer pow function
* ui: Added back support for custom encodings
* fix: Editor not jumping to selection when selection gets changed
* ui: Turn Hexii setting into a data visualizer
* sys: Added back remaining shortcuts
* sys: Remove old hex editor files
* sys: Moved more legacy things away from the hex editor view, updated localization
* fix: Hex editor scrolling behaving weirdly and inconsistently
* sys: Cleaned up Hex editor code
* sys: Added selection color setting, localized all new settings
* fix: Search feature not working correctly
* ui: Replace custom ImGui::Disabled function with native ImGui ones
* ui: Fix bookmark tooltip rendering issues
* fix: Another size_t not being 64 bit issue on MacOS
2022-05-27 20:42:07 +02:00
WerWolv
775e87ff1f
patterns: Updated pattern language
2022-05-22 09:27:02 +02:00
WerWolv
c4b7d89713
fix: Random build errors with GCC 12.1.0
2022-05-17 20:46:42 +02:00
WerWolv
5f17d7aa75
fix: Narrowing conversion error in Encoding File parsing
2022-05-17 17:49:14 +02:00
WerWolv
435edad604
patterns: Updated pattern language
2022-04-29 23:02:10 +02:00
WerWolv
ea2c2df614
sys: Updated pattern language library
2022-04-18 01:22:06 +02:00
WerWolv
1e7ed14810
tests: Removed pattern language tests as they are now done in their own repo
2022-04-17 18:11:39 +02:00
WerWolv
17383083fb
patterns: Use standalone pattern language library instead of built-in one
2022-04-17 16:57:30 +02:00
WerWolv
f5fe49923b
fix: Let's not cause UB on every event call...
2022-04-15 19:02:36 +02:00
WerWolv
457d338a97
ui: Include null byte in InputText fields
2022-04-14 15:29:54 +02:00
Polshakov Dmitry
4928c044af
patterns: Move pattern drawer into builtin plugin ( #482 )
...
Co-authored-by: Dmitry Polshakov <dmitry.polshakov@dsr-corporation.com>
2022-04-08 16:08:02 +02:00
WerWolv
b7132af214
patterns: Added missing override
2022-04-07 18:19:19 +02:00
WerWolv
74a5c974e6
patterns: Fixed comments behind pre-processor defines
2022-04-07 13:15:07 +02:00
WerWolv
942a4e9616
patterns: Fixed selection of static array entries
2022-04-07 12:59:23 +02:00
WerWolv
76f732dc53
patterns: Fixed various render issues
2022-04-07 12:47:45 +02:00
WerWolv
0462cc3d0c
sys: Enable -Wall, -Wextra, -Werror and fix all warnings on all Platforms ( #483 )
...
* sys: Make ImHex compile with -Wall -Wextra -Werror
* sys: Fixed various build errors on Linux
* sys: Explicitly ignore return value of `system` function
* sys: More fixes for the warnings GitHub Actions enables somehow
* sys: More fixes
* sys: Remove -Werror again to see all GitHub Actions warnings
* sys: Hopefully fixed all remaining warnings
* sys: Added back -Werror
* git: Change windows icon in GitHub Actions
2022-03-27 00:01:28 +01:00
WerWolv
4b6a76bf02
fix: Bookmarks not always creating new highlights correctly
2022-03-26 16:54:15 +01:00
WerWolv
e72a30ca59
patterns: Make default parameters work properly with parameter packs
2022-03-25 09:53:58 +01:00
WerWolv
368c943040
patterns: Added default parameters
2022-03-24 20:31:45 +01:00
WerWolv
a16e387dff
patterns: Fixed copying of type decl nodes
2022-03-24 18:00:00 +01:00
WerWolv
95cf828975
patterns: Prevent usage of incomplete types
2022-03-24 17:00:10 +01:00
WerWolv
c09d85f46d
patterns: Allow forward declaring of types
2022-03-24 16:57:12 +01:00
WerWolv
c2803fe1e2
sys: Fixed build errors and warnings on Unix
2022-03-22 09:34:26 +01:00
WerWolv
98dfc2e286
sys: Replace __builtin_unreachable() with hex::unreachable()
2022-03-22 09:08:34 +01:00
WerWolv
f7cfee55d5
ui: Enable multi viewports on Linux again if you're not on Wayland
2022-03-22 08:20:14 +01:00
WerWolv
26a7b3325d
patterns: Unified displaying and stringifying string patterns
2022-03-22 08:19:46 +01:00
WerWolv
47fd5bdc00
patterns: Fixed pointer type displaying causing crashes
...
Fixes #480
2022-03-22 08:19:14 +01:00
Polshakov Dmitry
5dfa9cf501
patterns: Move logic to draw patterns into separate class ( #472 )
...
* refactor(patterns): add visitor interface
* refactor(patterns): add public accessors
* refactor(patterns): add method to get pattern value
* refactor(pattern): make some methods public
* refactor(pattern): extract code to draw GUI
* refactor(patterns): remove GUI related code from patterns
* refactor: move common GUI function from pattern to pattern_drawer
* refactor(pattern_drawer): extract common code into methods
* refactor: rename ImGuiDrawer -> PatternDrawer
* refactor(patternr): move displayEnd into PatternDrawer
* refactor: use ArrayPattern concept to restrict argument type
Co-authored-by: Dmitry Polshakov <dmitry.polshakov@dsr-corporation.com>
2022-03-21 13:52:07 +01:00
Polshakov Dmitry
937ccbc5bd
patterns: Restore data offset for local variables / added array, nested structs and functions tests ( #475 )
...
* fix(eval): restore data offset for local variables
* test(pattern_lang): add tests for arrays, nested structs and functions
Co-authored-by: Dmitry Polshakov <dmitry.polshakov@dsr-corporation.com>
2022-03-20 21:42:21 +01:00
WerWolv
bc7c494316
patterns: Fixed highlighting of static array entries
2022-03-19 00:47:36 +01:00
WerWolv
17a2be41da
patterns: Fixed crash when applying certain attributes to types
2022-03-19 00:24:41 +01:00
WerWolv
89fe063b02
patterns: Fixed struct members that overlap with [[no_unique_address]] members not being highlighted
2022-03-17 23:32:22 +01:00
WerWolv
7061a1ebfa
patterns: Allow bitfield fields to be selected
2022-03-17 23:31:36 +01:00
WerWolv
ec9a947259
patterns: Fixed highlight colors of arrays not matching color shown in pattern data view
2022-03-17 23:31:16 +01:00
WerWolv
11441d632b
patterns: Fixed indentation of inlined variables
2022-03-17 23:30:38 +01:00
WerWolv
a17b647e79
patterns: Fixed static arrays showing same value for all entries
2022-03-17 23:29:52 +01:00
WerWolv
2d87d29fa0
patterns: Fixed recursive types
2022-03-17 00:10:16 +01:00
WerWolv
f2159e26d2
build: Updated libromfs
2022-03-16 00:15:06 +01:00
Polshakov Dmitry
d677762dff
perf(pattern): save display value in cache ( #466 )
...
Co-authored-by: Dmitry Polshakov <dmitry.polshakov@dsr-corporation.com>
2022-03-16 00:01:01 +01:00
WerWolv
3801e0d60b
build: Remove yara's cuckoo module again since we don't have jansson available
2022-03-15 23:54:55 +01:00
WerWolv
29ded2483c
sys: Make sure deferred call adding is thread safe
2022-03-15 23:46:02 +01:00
WerWolv
050e17298a
build: Updated various dependencies
2022-03-15 23:45:33 +01:00
Lukas Cone
3da1b3f05d
ui/patterns: Added settings tooltips, fixed pattern crash ( #464 )
...
* fix: pattern segfault typo
* ui: added few tooltips into settings
Co-authored-by: WerWolv <werwolv98@gmail.com>
2022-03-05 23:32:30 +01:00
WerWolv
327e904dbc
sys: Fixed many clang tidy warnings and typos
2022-03-04 20:52:39 +01:00
WerWolv
efe6137067
ui: Improved look of the about page
2022-03-04 19:06:29 +01:00
WerWolv
96e9400761
sys: Fixed unit test building
2022-03-04 14:34:37 +01:00
WerWolv
6a517feda3
sys: More Linux and macOS build fixes
2022-03-04 14:00:02 +01:00
WerWolv
3b7a928313
sys: Fixed missing includes on Unix
2022-03-04 11:44:11 +01:00
WerWolv
2739320f10
sys: Refactor of filesystem functions. Fixed crashes where fs errors weren't caught correctly
...
Addresses the crash mentioned in #462
2022-03-04 11:36:37 +01:00
WerWolv
8b2dcf976f
patterns: Fixed auto parameter crash
2022-03-03 13:34:05 +01:00
WerWolv
559b86efe1
patterns: Display actual type name of types declared with using
2022-03-03 13:33:45 +01:00
WerWolv
949a26ca0e
patterns: Fixed memory leak when using format
attribute
2022-03-03 12:11:47 +01:00
WerWolv
2880ca00da
patterns: Fixed crash when using attributes
2022-03-03 11:19:46 +01:00
WerWolv
39da62532b
fix: Trailing zero at end of string input buffers
2022-03-03 09:27:27 +01:00
WerWolv
483ba95d80
fix: Some text boxes not being writable
2022-03-03 09:24:09 +01:00
WerWolv
cc59b36c54
patterns: Properly reset back current control flow type in arrays
...
Fixes issue mentioned in #460
2022-03-01 20:57:21 +01:00
WerWolv
61d9918dae
patterns: Evaluate return value before setting control flow type
...
Fixes another issue mentioned in #460
2022-03-01 20:37:27 +01:00
WerWolv
775b3e8c52
patterns: Fixed crash when using control flow statements without value
...
Fixes #460
2022-03-01 20:17:03 +01:00
WerWolv
174cf3ed95
fix: Crash when entering too much text in various text boxes
2022-03-01 16:12:00 +01:00
WerWolv
540f468e8a
patterns: Fixed offset being incorrectly incremented when calling functions
2022-03-01 09:40:08 +01:00
WerWolv
e4a3181e1d
fix: Crash when saving projects
2022-03-01 00:03:39 +01:00
WerWolv
b57730c28b
sys: Disable buffering on log files
2022-03-01 00:03:28 +01:00
WerWolv
5a02c38fcd
store: Fixed more download issues when some folders don't have write perms
2022-02-28 23:10:04 +01:00
Lukas Cone
2847098020
patterns: Added bitfield_order pragma ( #457 )
2022-02-28 00:07:04 +01:00
WerWolv
0cc6d90e3d
patterns: Fixed off-by-one error when calculating unsized array sizes
...
Closes #453 , thanks to @Dyddye
2022-02-27 23:28:34 +01:00
WerWolv
66d1b3fd2f
patterns: Huge refactor of Pattern Language runtime to use smart pointers ( #458 )
...
* patterns: Initial work to refactor pattern language to use smart pointers
* patterns: Fixed remaining issues, moved patterns to unique files
* sys: Added missing includes for macOS
2022-02-27 23:25:39 +01:00
WerWolv
b28eaf2dbf
sys: Catch error produced in file size querying
2022-02-26 17:15:35 +01:00
WerWolv
191a99f91b
fix: Crash when trying to read from an empty file or a directory
2022-02-26 16:43:38 +01:00
WerWolv
f3f1ac939a
fix: Executable directory not getting added to paths correctly on Linux
2022-02-26 16:25:15 +01:00
WerWolv
e3fbb490df
fix: ImHex not properly loading plugins on first launch
2022-02-26 00:10:23 +01:00
WerWolv
1487f760b0
build: Bundle files from the ImHex-Patterns repo with the installation
2022-02-21 22:47:56 +01:00
WerWolv
75bd7805c9
ux: Added custom font and font size setting to settings menu, improve rebooting behaviour
2022-02-21 21:46:25 +01:00
WerWolv
ef8e9a83bb
patterns: Properly treat arrays and custom types as references
2022-02-21 20:00:54 +01:00
WerWolv
7d9c24ff51
net: Increase store load timeout to 30 seconds
2022-02-21 18:57:53 +01:00
jam1garner
57e1f7ee10
Rework libimhex-rs to use autocxx ( #451 )
...
* Rework libimhex-rs to use autocxx
* Remove Bookmarks::add overload
* Remove manual usage of cxx-rs
2022-02-20 19:14:11 -05:00
WerWolv
754eb89f04
patterns: Fixed jumping to and displaying tooltips of static array entries
2022-02-20 23:54:31 +01:00
WerWolv
2e95184d30
patterns: Allow variables to be named the same as types
2022-02-20 20:50:02 +01:00
WerWolv
9deab9c497
pattern: Allow many variable attributes to be applied directly to custom types
2022-02-19 18:03:07 +01:00
WerWolv
5ae6c8a627
fix: ImGui::TextFormattedCentered didn't properly pass format arguments forward
2022-02-19 18:02:44 +01:00
Lukas Cone
26f998ecb6
feature: User now can add custom directories ( #444 )
...
* feat: user directories
* ux: show setting categories in order they were created
* feat: add descriptable setting categories
2022-02-18 22:34:54 +01:00
Polshakov Dmitry
07ae00aa20
fix: misuse of clipper ( #445 )
...
clipper.Step() should be called in a loop until it returns false.
You don't need to call End() after it.
Co-authored-by: Dmitry Polshakov <dmitry.polshakov@dsr-corporation.com>
2022-02-18 13:32:36 +01:00
Polshakov Dmitry
39cc845df3
Fix crash on typing "#include " ( #446 )
...
* fix: scan include name until end of line
* fix: correctly check file existance
Co-authored-by: Dmitry Polshakov <dmitry.polshakov@dsr-corporation.com>
2022-02-18 13:32:05 +01:00
Lukas Cone
6c8b75a05f
pattern: add single_color attribute, fixed static array color override ( #443 )
2022-02-18 13:31:44 +01:00
WerWolv
4c8efed256
fix: Crashing when scrolling through the hex editor too quickly
2022-02-17 21:49:40 +01:00
WerWolv
7e075e5ebb
sys: Added editing support for strings and chars in the data inspector
2022-02-17 14:43:04 +01:00
WerWolv
b9508d853e
build: Fixed building and loading of Rust plugins
2022-02-17 11:42:56 +01:00
WerWolv
90753f4d42
sys: Fixed logging to file omitting all tags and new lines
2022-02-16 21:31:47 +01:00
WerWolv
7117592f38
sys: Add highlighting provider function support, move pattern highlighting code out of hex editor
2022-02-16 14:57:13 +01:00
WerWolv
60af9970c1
fix: Opening files with unicode characters in their path
2022-02-16 10:04:05 +01:00
WerWolv
33a1e7f055
sys: Added setting to override borderless window mode even on Intel
2022-02-15 23:07:48 +01:00
WerWolv
f72e9700ab
sys: Move Windows theme detection to Windows plugin
2022-02-15 22:50:04 +01:00
WerWolv
d6b887b7db
sys: Added basic editing support to data inspector
2022-02-15 21:50:27 +01:00
WerWolv
227040f82f
fix: Undo points not being created correctly
2022-02-15 21:50:02 +01:00
Polshakov Dmitry
038b7961db
pattern: Fix scopes not always getting popped again correctly ( #440 )
...
Co-authored-by: Dmitry Polshakov <dmitry.polshakov@dsr-corporation.com>
2022-02-14 20:44:43 +01:00
Polshakov Dmitry
24f3b8dd3d
pattern: Make preprocessor not drop defines after include ( #433 )
...
Co-authored-by: Dmitry Polshakov <dmitry.polshakov@dsr-corporation.com>
2022-02-13 11:50:13 +01:00
Polshakov Dmitry
9399cf873f
pattern: Add attribute to format array entries ( #435 )
...
Co-authored-by: Dmitry Polshakov <dmitry.polshakov@dsr-corporation.com>
2022-02-12 15:40:42 +01:00
Polshakov Dmitry
63455ce2be
fix: don't change list while iteration ( #434 )
...
Co-authored-by: Dmitry Polshakov <dmitry.polshakov@dsr-corporation.com>
2022-02-12 15:39:47 +01:00
WerWolv
585058b500
pattern: Fixed control flow statements not being applied correctly
2022-02-11 21:02:18 +01:00
WerWolv
57f31123e7
pattern: Cleanup log console a bit
2022-02-11 16:53:01 +01:00
WerWolv
b4a3eb240e
pattern: Don't allow negative array sizes
2022-02-11 16:52:51 +01:00
WerWolv
0e40b8a81a
pattern: Don't reset offset back after variable placements in global scope
2022-02-09 08:55:51 +01:00
WerWolv
2510f61a4e
pattern: Fixed array pattern data columns being offset
2022-02-09 08:55:00 +01:00
WerWolv
28e5f62c60
fix: ImU64 is somehow not the same as u64 on Linux
2022-02-08 22:25:25 +01:00
WerWolv
586bca4bf6
ui: Make hexadecimal prefix slightly darker than rest of text
2022-02-08 22:19:54 +01:00
WerWolv
bd30411ba7
ui: Replaced all hex input textboxes with the new ones
2022-02-08 21:51:09 +01:00
WerWolv
1b95722757
ui: Added hexadecimal input text box
2022-02-08 21:10:48 +01:00
WerWolv
1738c3f50a
build: Use correct include directory for capstone
2022-02-08 19:22:52 +01:00
WerWolv
18169b461a
pattern: Fixed selecting first member of nested patterns
2022-02-08 18:39:47 +01:00
WerWolv
abd3fe6ed1
sys/ux: Improved selection requests
2022-02-08 18:38:54 +01:00
WerWolv
e918a594f3
pattern: Improved attribute handling
2022-02-08 17:50:42 +01:00
Mark Nokalt
a52fee2248
nodes: Validate some buffer operations ( #425 )
...
* fix: NodeBufferSlice bounds validation
* fix: Make sure buffer is within u64 bounds in NodeCastBufferToInteger
* nodes: Use specific output methods in number constants
2022-02-08 08:32:10 +01:00
WerWolv
37ea9c6656
pattern: Allow pattern with nested children to be selectable, make pointers inlinable
2022-02-07 23:21:04 +01:00
WerWolv
137bfe48ca
pattern: Fixed precedence of comparison operators
2022-02-07 21:37:10 +01:00
WerWolv
94506848e0
pattern: Added left_to_right and right_to_left attribute for bitfields
2022-02-07 20:08:19 +01:00
WerWolv
97db5e9698
external: Updated STB Image library
...
Fixes #421
2022-02-07 18:34:16 +01:00
WerWolv
decfad5c99
pattern: Properly treat calculated pointers as not part of the struct
2022-02-06 19:46:39 +01:00
WerWolv
334939324c
pattern: Fixed use-after-free when accessing arrays through an r-value
2022-02-06 18:04:33 +01:00
WerWolv
99f8efac9a
pattern: Fixed pragma once memory corruption
2022-02-06 15:28:20 +01:00
WerWolv
69c48edfdf
nodes: Added Image visualizer
...
Supports JPG, PNG, TGA, BMP, PSD, GIF, HDR and PIC via stb_image
2022-02-06 01:32:15 +01:00
WerWolv
16a9d0c0c6
sys: Streamline logger functions, reorder tags for better readability
2022-02-06 00:42:38 +01:00
WerWolv
d42d87280d
pattern: Allow pattern function code to be executed separately
2022-02-06 00:18:04 +01:00
WerWolv
b8026398e0
pattern: Allow variable placements inside of structs
...
Fixes #364
2022-02-05 23:34:52 +01:00
WerWolv
cff8bab3d3
pattern: Allow assigning to global variables inside of structs
2022-02-05 23:20:44 +01:00
WerWolv
5c3bfa690b
pattern: Improved error messages when including std files or calling unknown std functions
2022-02-05 23:02:38 +01:00
WerWolv
8ab4d25e33
ux: Only show file chooser popup when there's files in the the relevant folder
2022-02-05 22:35:42 +01:00
WerWolv
eade95dff7
fix: Pattern source code being deleted when closing a provider
2022-02-05 22:26:00 +01:00
WerWolv
618eead341
sys: Drastically improve highlighting performance
2022-02-04 00:29:47 +01:00
WerWolv
ba68f463e5
ui: Added to matched yara rules
2022-02-02 21:08:46 +01:00
WerWolv
df1d302bcb
sys: Added time and source to logger output
2022-02-02 17:19:50 +01:00
WerWolv
c2bcbfb1e0
pattern: std::from_chars is not widely supported and doesn't support u128...
2022-02-02 17:12:19 +01:00
WerWolv
4c51efc5e0
pattern: Improved parsing of integer literals, added support for hex floats
2022-02-02 16:03:18 +01:00
WerWolv
876dbe8179
sys: Final cleanup to get rid of everything builtin in the main application
2022-02-02 00:36:09 +01:00
WerWolv
ce59226909
sys: Reformat all
2022-02-01 22:09:44 +01:00
WerWolv
1991afb87b
sys: Get rid of SharedData struct and cleanup code structure ( #411 )
...
* sys: Initial refactoring of the SharedData class
* sys/pattern: More refactoring, make every provider have its own patterns
* sys: Finished up refactoring. No more SharedData!
* sys: Fixed compile on Unix
* tests: Fixed unit tests
* sys: Moved view and lang files
* pattern: Added assignment operator support to for loops
* tests: Fixed compile issue
2022-02-01 18:09:40 +01:00
WerWolv
61fc479c79
pattern: Fixed many code inconsistencies and bugs
2022-01-31 14:37:12 +01:00
WerWolv
8f8f3c5415
pattern: Actually fix strings being displayed wrong
2022-01-31 12:53:04 +01:00
WerWolv
af57b39d8f
pattern: Added #pragma once to prevent multi-includes of files
2022-01-30 17:49:18 +01:00
WerWolv
7321d205fe
pattern: Make parameter packs work inside later scopes
2022-01-30 17:48:51 +01:00
WerWolv
6a724352b0
pattern: Fixed sizeof and addressof operator parsing
2022-01-30 17:48:20 +01:00
WerWolv
69bd438fe1
pattern: Added parameter packs
2022-01-30 15:18:45 +01:00
WerWolv
dd572ba024
sys: Return std::nullopt instead of {} for empty optional values
2022-01-30 12:43:43 +01:00
WerWolv
4bc074fa84
sys: Remove patched bytes when their value is the same as the original
2022-01-30 11:58:32 +01:00
WerWolv
bfa3538745
pattern: Fixed color overriding of struct members when struct has a color set already
...
Fixes #409
2022-01-29 22:17:51 +01:00
WerWolv
e6f1dd0490
tests: Improved testing environment, added helpers tests
2022-01-29 17:14:15 +01:00
WerWolv
da16be7ad8
net: Use system certificate on Linux and MacOS
2022-01-29 13:40:17 +01:00
WerWolv
7b1a146976
pattern: Fixed crashes, removed reference to evaluator in every pattern
2022-01-29 12:40:49 +01:00
WerWolv
75331cda94
pattern: Added compound assignment operators
2022-01-29 04:16:32 +01:00
WerWolv
a0a39f1c04
pattern: Added dollar operator assignment
2022-01-29 03:06:34 +01:00
WerWolv
48de158d7c
pattern: Fixed broken removing of zero-characters from strings
2022-01-29 02:52:20 +01:00
WerWolv
e71091f4a8
pattern: Fixed endian setting applied to structs not applying to its members
2022-01-29 02:52:20 +01:00
WerWolv
0e08b0226b
sys: Added clang-format file, formatted entire project
2022-01-24 20:53:17 +01:00
WerWolv
a66fec489c
ui: Added some hint text for in/out variable tab, improved centered hints
2022-01-24 00:46:19 +01:00
WerWolv
65212f22a6
pattern/ux: Added copying support to console, clip content, removed prefix
2022-01-24 00:45:46 +01:00
WerWolv
541c0d7547
build/plugin: Make plugins no longer depend on their file name
2022-01-23 23:28:56 +01:00
WerWolv
b3a8d02d19
lang: Don't hardcode fallback language anymore
2022-01-23 22:08:19 +01:00
WerWolv
49610f59ea
ux: Added interface to choose encoding files more easily
2022-01-23 21:52:43 +01:00
WerWolv
9cf7fc4a2e
store: Added encoding files to store, fixed crash when folder doesn't exist
2022-01-23 21:52:24 +01:00
WerWolv
053c897056
ui: Added ImHex logo to about page
2022-01-23 20:46:19 +01:00
WerWolv
8397af5c9b
api: Make main menus use the same priority API
2022-01-23 20:45:51 +01:00
WerWolv
714d421334
api: Moved menu item adding to a new registry-type API
2022-01-23 11:54:21 +01:00
WerWolv
48aacc0c2e
sys: (s8, s16, s32, s64, s128) -> (i8, i16, i32, i64, i128)
2022-01-22 22:37:52 +01:00
WerWolv
4e047beabb
ui/api: Added sidebar
2022-01-22 22:03:54 +01:00
WerWolv
d5d1577b43
pattern: Make sure hidden variables don't get highlighted anymore
2022-01-22 22:03:54 +01:00
WerWolv
42eea8ffba
pattern: Fixed highlighting issues with structs and arrays
2022-01-22 22:03:49 +01:00
WerWolv
10df0175d5
pattern: Added [[no_unique_address]]
attribute
2022-01-22 22:03:44 +01:00
WerWolv
d69eb440d8
pattern: Fixed memory leak when using conditionals in structs
2022-01-22 22:03:37 +01:00
WerWolv
768e74d9d3
pattern: Fixed highlighting of arrays
2022-01-22 22:03:26 +01:00
WerWolv
355b99c68f
pattern: Fixed continue and break statements in structs
2022-01-22 12:32:16 +01:00
WerWolv
e756c9d46f
fix: Jumping to bytes would move view to wrong offset
2022-01-20 23:50:57 +01:00
WerWolv
9ddd97a6eb
provider: Added insert bytes feature
2022-01-20 23:24:26 +01:00
WerWolv
ee8b665472
ui: Added API to add custom layouts, imhex application and api cleanup
2022-01-18 00:10:10 +01:00
WerWolv
8701e0f402
sys: Log to a file when ImHex wasn't opened though a terminal
2022-01-17 20:06:00 +01:00
WerWolv
40d7e4aa6e
build: More repo cleanup, move libimhex and external libs to /lib folder
2022-01-16 14:20:52 +01:00