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