Add ability to paste hex bytes with 0x
Sometimes you may have string in the following format: 0xaa 0x1 0xbb 0x2. It's useful to have an ability to paste them as is, without editing
Fixed But to be honest, I didn't test it. That's because after dropping clang support ImHex become uncompilable on my Mac.
- It doesn't check if compiler is GCC and silently stop working with clang
- After installing and specifying GCC12 as a compiler I have a lot of issues in some macOS internals
FYI error.log
@Diadlo Thanks for the changes!
Your compile issues seem to mostly stem from objc files being compiled with gcc. We only compile C and C++ code with gcc, everything else that's apple specific still is using clang.
This here is the build command the CI uses which works fine there:
CC=$(brew --prefix gcc@12)/bin/gcc-12 \
CXX=$(brew --prefix gcc@12)/bin/g++-12 \
OBJC=$(brew --prefix llvm)/bin/clang \
OBJCXX=$(brew --prefix llvm)/bin/clang++ \
cmake ..
Basically we tell cmake to use gcc as C and C++ compiler and llvm clang as ObjC and ObjC++ compiler. It should work fine after that. If you need any more help with getting it to work, feel free to ask!
@WerWolv It works. Thanks!
Now PR is tested and one issue is fixed
@WerWolv Is there anything else that should be done?