mirror of
https://github.com/R2Northstar/NorthstarLauncher
synced 2026-08-23 20:26:04 -04:00
Bumps the vendored silver-bun library to the newest commit in upstream Co-authored-by: F1F7Y <filip.bartos07@proton.me> Co-authored-by: IcePixelx <41352111+IcePixelx@users.noreply.github.com>
19 lines
643 B
C++
19 lines
643 B
C++
#include "tier1.h"
|
|
|
|
// Note: this file is tier1/interface.cpp in primedev, but given that tier0 is yet to be split
|
|
// I am following the existing "pattern" and putting this here
|
|
|
|
CMemory Sys_GetFactoryPtr(const std::string& svModuleName, const std::string& svFactoryName)
|
|
{
|
|
HMODULE hModule = GetModuleHandleA(svModuleName.c_str());
|
|
|
|
if (!hModule)
|
|
{
|
|
spdlog::error("Failed to get module handle of '{}'!", svModuleName.c_str());
|
|
exit(EXIT_FAILURE);
|
|
}
|
|
|
|
CreateInterfaceFn fnCreateInterface = reinterpret_cast<CreateInterfaceFn>(GetProcAddress(hModule, CREATEINTERFACE_PROCNAME));
|
|
|
|
return fnCreateInterface(svFactoryName.c_str(), NULL);
|
|
}
|