From 2c71f61bfc4bae6a38e3a0fd997bb9e719eb4739 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 31 Jul 2021 18:33:55 +0200 Subject: [PATCH] git: Improve indexing performance of repo --- .gitmodules | 4 ++++ plugins/libimhex/source/resources.cpp | 12 +++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitmodules b/.gitmodules index 37e0a3a47..3568d9516 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,7 @@ [submodule "external/nativefiledialog"] path = external/nativefiledialog url = https://github.com/btzy/nativefiledialog-extended + ignore = dirty [submodule "external/yara/yara"] path = external/yara/yara url = https://github.com/VirusTotal/yara @@ -8,9 +9,12 @@ [submodule "external/xdgpp"] path = external/xdgpp url = https://git.sr.ht/~danyspin97/xdgpp + ignore = dirty [submodule "external/fmt"] path = external/fmt url = https://github.com/fmtlib/fmt + ignore = dirty [submodule "external/curl"] path = external/curl url = https://github.com/curl/curl + ignore = dirty diff --git a/plugins/libimhex/source/resources.cpp b/plugins/libimhex/source/resources.cpp index 15bfacc0e..c3e286e3d 100644 --- a/plugins/libimhex/source/resources.cpp +++ b/plugins/libimhex/source/resources.cpp @@ -1,4 +1,5 @@ #if defined(OS_WINDOWS) + #define RESOURCE(name, path) __asm__ ( \ ".section .rodata\n" \ ".global " #name "\n" \ @@ -9,6 +10,7 @@ ".int " #name "_size - " #name "\n" \ ".align 8\n" \ ) + #else #define RESOURCE(name, path) __asm__ ( \ @@ -16,12 +18,12 @@ ".global " #name "\n" \ ".global " #name "_size\n" \ #name ":\n" \ - ".incbin \"" path "\"\n" \ - ".type " #name ", @object\n" \ - ".size " #name "_size, 1\n" \ + ".incbin \"" path "\"\n" \ + ".type " #name ", @object\n" \ + ".size " #name "_size, 1\n" \ #name "_size:\n" \ - ".int " #name "_size - " #name "\n" \ - ".align 8\n" \ + ".int " #name "_size - " #name "\n" \ + ".align 8\n" \ ) #endif