mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 14:46:09 +00:00
Refactor main module resolution & HMODULE handle behavior
This commit is contained in:
@@ -169,8 +169,8 @@ namespace msvcrt {
|
||||
std::string converted = files::hostPathListToWindows(value);
|
||||
std::string result = converted.empty() ? value : converted;
|
||||
std::string exeDir;
|
||||
if (wibo::argv && wibo::argv[0]) {
|
||||
std::filesystem::path exePath = std::filesystem::absolute(std::filesystem::path(wibo::argv[0])).parent_path();
|
||||
if (!wibo::guestExecutablePath.empty()) {
|
||||
auto exePath = wibo::guestExecutablePath.parent_path();
|
||||
if (!exePath.empty()) {
|
||||
exeDir = files::pathToWindows(exePath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user