mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-12 06:00:39 +02:00
Windows: Switch GetSection/ExecutableFilePath to returning full paths
This commit is contained in:
1 parent
ec6767060a
commit
cd934b73ca
3 files changed
+18
-14
No files matched your search
@@ -328,7 +328,7 @@ void LoadImageVolatileMetadata(const fextl::string& ModuleName, uint64_t Address
|
||||
}
|
||||
|
||||
void HandleImageMap(uint64_t Address) {
|
||||
fextl::string ModuleName = FEX::Windows::GetSectionFilePath(Address);
|
||||
fextl::string ModuleName = fextl::string {FEX::Windows::BaseName(FEX::Windows::GetSectionFilePath(Address))};
|
||||
LogMan::Msg::DFmt("Load module {}: {:X}", ModuleName, Address);
|
||||
FEX_CONFIG_OPT(VolatileMetadata, VOLATILEMETADATA);
|
||||
if (VolatileMetadata) {
|
||||
@@ -626,8 +626,8 @@ NTSTATUS ProcessInit() {
|
||||
InitSyscalls();
|
||||
|
||||
FEX::Windows::InitCRTProcess();
|
||||
const auto ExecutablePath = FEX::Windows::GetExecutableFilePath();
|
||||
FEX::Config::LoadConfig(ExecutablePath, _environ, FEX::ReadPortabilityInformation());
|
||||
const auto ExecutableName = FEX::Windows::BaseName(FEX::Windows::GetExecutableFilePath());
|
||||
FEX::Config::LoadConfig(fextl::string {ExecutableName}, _environ, FEX::ReadPortabilityInformation());
|
||||
FEXCore::Config::ReloadMetaLayer();
|
||||
FEX::Windows::Logging::Init();
|
||||
|
||||
@@ -688,8 +688,8 @@ NTSTATUS ProcessInit() {
|
||||
StatAllocHandler = fextl::make_unique<FEX::Windows::StatAlloc>(FEXCore::SHMStats::AppType::WIN_ARM64EC);
|
||||
}
|
||||
|
||||
if (StartupSleep() && (StartupSleepProcName().empty() || ExecutablePath == StartupSleepProcName())) {
|
||||
LogMan::Msg::IFmt("[{}][{}] Sleeping for {} seconds", GetCurrentProcessId(), ExecutablePath, StartupSleep());
|
||||
if (StartupSleep() && (StartupSleepProcName().empty() || ExecutableName == StartupSleepProcName())) {
|
||||
LogMan::Msg::IFmt("[{}][{}] Sleeping for {} seconds", GetCurrentProcessId(), ExecutableName, StartupSleep());
|
||||
std::this_thread::sleep_for(std::chrono::seconds(StartupSleep()));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user