Skip to content

Commit

Permalink
fix(proxy): default template
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Dec 3, 2023
1 parent 766f500 commit d5a8a95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/proxy.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ namespace lime
{
inline FARPROC proxy_originals[@EXPORT_COUNT@] = {};

template <typename T>
static inline void setup_proxy(const std::basic_string_view<T>& path)
template <typename T = char>
static inline void setup_proxy(std::basic_string_view<T> path)
{
auto *const original = LoadLibrary(path.c_str());
auto *const original = LoadLibrary(path.data());

#define LIME_LOAD_ORIGINAL(index, name) proxy_originals[(index)-1] = GetProcAddress(original, name);
LIME_MAP_EXPORTS(LIME_LOAD_ORIGINAL)
Expand Down

0 comments on commit d5a8a95

Please sign in to comment.