mirror of
				https://github.com/N64Recomp/N64ModernRuntime.git
				synced 2025-10-30 08:02:29 +00:00 
			
		
		
		
	Made DLL loading also search the DLL's path for dependency resolution (#63)
This commit is contained in:
		
							parent
							
								
									b80bb216b2
								
							
						
					
					
						commit
						46797d6cad
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -43,7 +43,7 @@ public: | |||
|     static constexpr std::string_view PlatformExtension = ".dll"; | ||||
|     DynamicLibrary() = default; | ||||
|     DynamicLibrary(const std::filesystem::path& path) { | ||||
|         native_handle = LoadLibraryW(path.c_str()); | ||||
|         native_handle = LoadLibraryExW(std::filesystem::absolute(path).c_str(), nullptr, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR); | ||||
| 
 | ||||
|         if (good()) { | ||||
|             uint32_t* recomp_api_version; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Wiseguy
						Wiseguy