Commit Graph

6180 Commits

Author SHA1 Message Date
WerWolv
38fecca489 git: Fix nightly CI 2026-01-08 17:53:44 +01:00
WerWolv
f655ea59a8 git: Update new ImHex website during nightly 2026-01-07 23:18:06 +01:00
WerWolv
aa7daa5c54 web: Disable splash screen 2026-01-07 23:09:07 +01:00
WerWolv
f4b2be9334 chore: Cleanup logs slightly 2026-01-07 21:27:41 +01:00
WerWolv
edbd8a811e fix: Just detach stdin/stdout redirect threads as the program will exit immediately afterwards
(cherry picked from commit aeb58b5e9c3eef9f26fde104a2adc2684423b8ac)
2026-01-07 18:32:16 +01:00
Alex
ea9b197d36 build: improve FindMagic.cmake module (#2610)
Now it properly fails if libmagic is not installed in the system.

The error message would look like:

```
CMake Error at cmake/modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Magic (missing: LIBMAGIC_LIBRARY LIBMAGIC_INCLUDE_DIR)
  (Required is at least version "5.39")
Call Stack (most recent call first):
  cmake/modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindMagic.cmake:5 (find_package_handle_standard_args)
  cmake/build_helpers.cmake:971 (find_package)
  CMakeLists.txt:81 (addBundledLibraries)
```

### Problem description

The current `FindMagic.cmake` module doesn't properly report failure
about absent libmagic libs and #includes. This behavior leads to the
compile errors on the build stage (possibly after some time, which will
be simply wasted). This Find module should set the `Magic_FOUND`
variable and handle all required variables( LIBMAGIC_INCLUDE_DIR and
LIBMAGIC_LIBRARY) to present.
But the current module sets the `libmagic_FOUND` variable, so the CMake
assumes that it is found something. This behaviour should also be
handled by `find_package_handle_standard_args()` ("FPHSA"), and it is
actually handled, but as we requested the `Magic` package to be
required, the former function ("FPHSA") didn't stop the configure
process.

### Implementation description
 - Clean up the unused ifs, as "FPHSA" already done it better.
- Use the proper name for "FPHSA" so it could set the proper
`Magic_FOUND` and could make sure that the requested package is
`REQUIRED`.

### Screenshots
Before:
```
-- Could NOT find libmagic (missing: LIBMAGIC_LIBRARY LIBMAGIC_INCLUDE_DIR)
```

<img width="1005" height="24" alt="изображение"
src="https://github.com/user-attachments/assets/082e2842-ff94-4418-8f86-86021c7dd23d"
/>

After:

```
CMake Error at cmake/modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Magic (missing: LIBMAGIC_LIBRARY LIBMAGIC_INCLUDE_DIR)
  (Required is at least version "5.39")
Call Stack (most recent call first):
  cmake/modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindMagic.cmake:5 (find_package_handle_standard_args)
  cmake/build_helpers.cmake:971 (find_package)
  CMakeLists.txt:81 (addBundledLibraries)
```

### Additional things

Closes #2244 .
2026-01-07 17:13:41 +01:00
WerWolv
a0a049a920 fix: ImHex not always exiting when forwarder is killed 2026-01-07 17:12:58 +01:00
WerWolv
550fe8e4aa impr: Add MCP Client information to footer icon tooltip 2026-01-07 17:12:40 +01:00
WerWolv
2064aea3b6 fix: ImHex processes getting stuck in the background
Fixes #2611
2026-01-07 17:12:17 +01:00
WerWolv
3411bc4577 fix: Unused variable 2026-01-07 11:13:52 +01:00
WerWolv
6eedb469e9 fix: Notifications on Web build causing exceptions 2026-01-07 09:45:30 +01:00
WerWolv
684373b88b fix: Properly forward stdin to main process from forwarder
(cherry picked from commit 1fc857cf7d2a9a525dec5fcda0727a39046b6c86)
2026-01-07 09:45:30 +01:00
iTrooz
08aa03bab6 chore: remove unused steps from nightly release CI 2026-01-06 21:05:52 +01:00
iTrooz
62bc953d53 ci: remove unused permissions to webassembly-build job 2026-01-06 09:28:20 +01:00
iTrooz
5263f81487 ci: do not give pages write permission to webassembly-build job 2026-01-06 09:23:30 +01:00
iTrooz
8272ebf68f ci: use gh CLI to download artifact instead of third party action 2026-01-06 09:13:47 +01:00
paxcut
90d8e03f2c Fixes by @AkiSakurai for bug thats caused crashing ImHex when creating recursive inheritances. (#2612)
The previous code I approved was wrong and caused ImHex to grow until
computer froze. This PR is a copy of the original fix in PR #2546 by
@AkiSakurai
2026-01-05 16:57:04 -07:00
iTrooz
0d34edc7f6 ci: replace artifact deletion action with custom script 2026-01-05 16:36:30 +01:00
Aki Sakurai
63fd61e245 Fix crash in Pattern Language syntax highlighting for self-inheriting structs (#2546)
``` rust
struct Rec : Rec {
};
```

Prevent infinite recursion in appendInheritances by erasing processed
inheritance entries during traversal, and safely iterate over
m_inheritances in appendInheritances to avoid
modification-during-iteration issues.

Co-authored-by: paxcut <53811119+paxcut@users.noreply.github.com>
2026-01-05 03:11:21 -07:00
iTrooz
58fe8a22a9 ci: use hendrikmuhs/ccache-action@v1, not @main 2026-01-05 08:21:21 +01:00
WerWolv
03dd20c263 web: Fix canvas size issues when zooming page 2026-01-04 11:07:17 +01:00
WerWolv
712a125be7 fix: listxattrs signature being different between Linux and macOS 2026-01-03 23:52:42 +01:00
WerWolv
49e14e6e7c build: Update dependencies 2026-01-03 22:44:46 +01:00
WerWolv
e8a6e102c3 feat: Add xatts to file info display 2026-01-03 22:43:34 +01:00
WerWolv
b2cc09852d fix: Weirdly worded pattern editor help message 2026-01-03 22:40:45 +01:00
WerWolv
60627b8325 impr: Only add pattern editor help text to first opened data source 2026-01-03 22:38:36 +01:00
WerWolv
8fc2d6b225 impr: Disable exception wrapping as it causes a lot of slowdowns 2026-01-03 20:41:17 +01:00
WerWolv
051cdfa305 fix: Error message rendering of visualizers 2026-01-03 13:27:52 +01:00
WerWolv
bfa807ca8b feat: Add data inspector option to reverse bit order 2026-01-03 12:04:51 +01:00
WerWolv
598914a67a fix: Windows notifications filling up tray area 2026-01-03 11:04:33 +01:00
WerWolv
3274649b77 fix: Task finished notification showing up regardless of focus state on Windows 2026-01-03 10:48:46 +01:00
paxcut
5756105347 fix: Text highlighter crash (#2595)
The assumption that the number of lines of colors will be equal to the
number of lines in the input signal is incorrect. As issue #2594 shows,
erroneous input can cause the lexer to end processing the input file
prematurely thus being unable to create tokens past the line where the
error occurred which in turn implies that no colors can be found beyond
those lines.

To fix the crash (the underlying problem is user caused and can't be
fixed) is to use the size of the vectors containing the first token
index of each line since that size must be equal to the number of lines
stored in token sequence.

Fixes #2594
2026-01-02 16:04:35 +01:00
paxcut
ed583d8bd1 fix: Division by zero in sound visualizer. (#2593)
Can happen if input is less than 2400*channels number of points. The fix
is detecting it and throwing an error.
2026-01-02 16:03:52 +01:00
WerWolv
731cf10207 fix: Goto setting hex editor scroll position to imprecise value for large addresses
#2599
2026-01-02 15:36:32 +01:00
iTrooz
cb898ce8cf ci: remove Fedora 41, 42 builds and AlmaLinux 9 2026-01-01 18:27:34 +01:00
iTrooz
892334e31a ci: update workflow to manually download cache key 2026-01-01 16:34:52 +01:00
iTrooz
a16e16853f ci: add workflow to manually download cache key 2026-01-01 02:08:52 +01:00
WerWolv
5cec83b3ef web: Render at higher resolution 2025-12-30 19:38:38 +01:00
WerWolv
a628784c6d fix: Empty entry showing up in main menu bar 2025-12-30 19:12:17 +01:00
WerWolv
fd8b70fb12 fix: Settings not always applying correctly 2025-12-30 19:12:00 +01:00
WerWolv
3dad5a43a1 web: Resize canvas right away 2025-12-30 19:11:33 +01:00
WerWolv
89dea86b3b web: Fix canvas being too big 2025-12-30 18:28:26 +01:00
WerWolv
42da24e31d patterns: Update pattern language
Fixes #2589
2025-12-30 14:51:10 +01:00
WerWolv
5b9b5d4f1f fix: Another use of ssize_t 2025-12-30 14:35:56 +01:00
paxcut
5332a26294 fixing isEmpty again. (#2591)
hopefully the last time.
2025-12-30 06:08:18 -07:00
WerWolv
54d9f8ec5c fix: Build on MSVC, properly handle empty files 2025-12-30 10:30:14 +01:00
WerWolv
73a17308cc feat: Allow opening special files with no specific size 2025-12-30 09:34:45 +01:00
paxcut
b835c48a0c fix: Unable to delete empty lines in text editor (#2588)
fixes for issue #2587
2025-12-29 20:01:26 +01:00
WerWolv
40b604c6e4 fix: ImGui-internal shortcuts not working correctly with native macOS menu bar enabled
(cherry picked from commit f0f6a22391)
2025-12-29 19:32:25 +01:00
WerWolv
1fd3580f97 web: Let ImHex Web run more standalone
(cherry picked from commit f76ea2a677)
2025-12-29 19:32:25 +01:00