Results 40 comments of Cirn09

`libmagic` can be used as a static library, but `DllMain` is defined in https://github.com/file/file/blob/87731415de/src/magic.c#L163. `DllMain` only initialized `_w32_dll_instance`. `_w32_dll_instance` is only used in [`get_default_magic`](https://github.com/file/file/blob/87731415de/src/magic.c#L239). In fact, when `libmagic` is used...

I write a demo: https://gist.github.com/Cirn09/5ece70e042ef465bc6300261ce85b6f0 But I haven't figured out how to name file and commands.

The user should be given options and let the user decide. Before that, I also considered the issue of too many files are selected. I have a few thoughts: One...

> 需要 `routing` 完整配置 ### `routing.json` ``` { "routing": { "domainStrategy": "IPOnDemand", "rules": [ { "type": "field", "domain": [ "geolocation-!cn" ], "inboundTag": [ "stp_in", "tp_in" ], "outboundTag": "clash_out" }, {...

> 据文档:https://xtls.github.io/config/transport.html `streamSettings` 里 没有 `"udp": true`。 尝试 修改 `"tag": "dr_out"` 为 > > ```json > { > "tag": "dr_out", > "protocol": "freedom" > } > ``` 改完之后问题依然存在

Sorry, I noticed your comment on my code only after you closed this PR. I will rewrite the code and open a new PR. For developers who use this project...

I noticed that there are still some issues with the type hints in the latest version of LIEF, which cause the type hints not work properly in VSCode. Such as...

Just next line: https://github.com/lief-project/LIEF/blob/8a6b5790299b0d7d1bf9a62f4fd67cebf33d2627/api/python/lief/PE.pyi#L2620-L2625 And here is my patch (not include return type `object` fix): Patches ```diff diff --git a/api/python/lief/DEX.pyi b/api/python/lief/DEX.pyi index 0858bdc3..5dcb6ac6 100644 --- a/api/python/lief/DEX.pyi +++ b/api/python/lief/DEX.pyi @@ -3,12...

Not all `parse` will return `None`, only this one `parse(io: object, name: str = ...)`: https://github.com/lief-project/LIEF/blob/683fc6cea7b1445729a06ed690a9927cb99c5210/api/python/src/PE/objects/pyParser.cpp#L43-L50 --- There are still some functions return `object`: https://github.com/lief-project/LIEF/blob/683fc6cea7b1445729a06ed690a9927cb99c5210/api/python/lief/PE.pyi#L1030 It seems that the common...

Another issue is that VSCode cannot find `__doc__` for any LIEF functions. Adding documentation strings like in a regular Python file should work, and in fact, other projects do this...