diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2025-09-10 16:19:18 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2025-09-10 16:19:18 +0200 |
| commit | 5d3ac5e0303c1b1b7d0c100b7369e4b8276a15b7 (patch) | |
| tree | f5b838bc2d8a520211eb1cc47891426bbc182d05 /disasm/disasm.cpp | |
| parent | b81ca2c41ff4d48ca03d9c0e9bb53dd39bdd0a48 (diff) | |
| download | openwar-5d3ac5e0303c1b1b7d0c100b7369e4b8276a15b7.tar.gz openwar-5d3ac5e0303c1b1b7d0c100b7369e4b8276a15b7.tar.bz2 openwar-5d3ac5e0303c1b1b7d0c100b7369e4b8276a15b7.zip | |
Diffstat (limited to 'disasm/disasm.cpp')
| -rw-r--r-- | disasm/disasm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/disasm/disasm.cpp b/disasm/disasm.cpp index 9ba018a..d0cbbdd 100644 --- a/disasm/disasm.cpp +++ b/disasm/disasm.cpp @@ -3,10 +3,10 @@ #include "extractfunction.hpp" #include <boost/filesystem.hpp> +#include <boost/filesystem/path.hpp> #include <boost/program_options.hpp> #include <iostream> -#include <fstream> int parse_dumpobject_options(std::vector<std::string> arguments); int parse_extractfunction_options(std::vector<std::string> arguments); @@ -54,7 +54,7 @@ int main(int argc, char* argv[]) { options.erase(options.begin()); } - std::string program_name = boost::filesystem::basename(argv[0]); + std::string program_name = boost::filesystem::path(argv[0]).stem().string(); if(command == "help" || vm.count("help")) { if(!vm.count("command")) { |
