mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 22:52:42 +01:00
fix: parse out-of-band appids as NSGs
This commit is contained in:
1 parent
d8239f1c34
commit
8c29b9b35a
3 files changed
+27
-8
No files matched your search
@@ -46,6 +46,13 @@ class Shortcuts:
|
||||
wrapped_exe = f'"{exe}"'
|
||||
return appname + wrapped_exe
|
||||
|
||||
def find_appname_by_unsigned_id(self, appid: int) -> str:
|
||||
# NOTE: bitmask signed int back to 32-bit CRC
|
||||
for key in self.shortcuts["shortcuts"].keys():
|
||||
if self.shortcuts["shortcuts"][key]["appid"] & 0xFFFFFFFF == appid:
|
||||
return self.shortcuts["shortcuts"][key]["appname"]
|
||||
return None
|
||||
|
||||
def get_shortcuts(self) -> Any:
|
||||
return self.shortcuts
|
||||
|
||||
|
||||
Reference in new issue
Block a user