mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Replace old headers with new ones in UNIX permission calculator
This commit is contained in:
@@ -11,8 +11,7 @@ namespace hex::plugin::builtin {
|
||||
static bool setuid, setgid, sticky;
|
||||
static bool r[3], w[3], x[3];
|
||||
|
||||
ImGui::TextUnformatted("hex.builtin.tools.permissions.perm_bits"_lang);
|
||||
ImGui::Separator();
|
||||
ImGui::Header("hex.builtin.tools.permissions.perm_bits"_lang, true);
|
||||
|
||||
if (ImGui::BeginTable("Permissions", 4, ImGuiTableFlags_Borders)) {
|
||||
ImGui::TableSetupColumn("Special", ImGuiTableColumnFlags_NoSort);
|
||||
@@ -43,9 +42,7 @@ namespace hex::plugin::builtin {
|
||||
ImGui::EndTable();
|
||||
}
|
||||
|
||||
ImGui::NewLine();
|
||||
ImGui::TextUnformatted("hex.builtin.tools.permissions.absolute"_lang);
|
||||
ImGui::Separator();
|
||||
ImGui::Header("hex.builtin.tools.permissions.absolute"_lang);
|
||||
|
||||
auto result = hex::format("{}{}{}{}",
|
||||
(setuid << 2) | (setgid << 1) | (sticky << 0),
|
||||
|
||||
Reference in New Issue
Block a user