Skip to content
This repository was archived by the owner on Mar 22, 2025. It is now read-only.

Commit 70a3510

Browse files
committed
Updated null-sdk.
1 parent 8dc3602 commit 70a3510

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

backends/opengl3/src/null-render-backend-opengl3/wrapper/opengl3.h

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2499,13 +2499,8 @@ namespace opengl {
24992499
class c_opengl_dll : public ntl::c_dll {
25002500
public: using c_dll::c_dll;
25012501
public:
2502-
c_dll::i_export* find_stored_export(std::string_view _name) override {
2503-
c_dll::i_export* finded_export = c_dll::find_stored_export(_name);
2504-
return finded_export && finded_export->address ? finded_export : nullptr;
2505-
}
2506-
2507-
ntl::address_t load_export(std::string_view _name) override {
2508-
if(ntl::address_t address = c_dll::load_export(_name); address) return address;
2502+
ntl::address_t get_export(std::string_view _name) override {
2503+
if(ntl::address_t address = c_dll::get_export(_name); address) return address;
25092504
return wglGetProcAddress(_name.data());
25102505
}
25112506
} inline opengl32{ "opengl32.dll" };
@@ -2522,13 +2517,13 @@ namespace opengl {
25222517
public:
25232518
c_opengl_export(const std::string_view& _name) {
25242519
name = _name;
2525-
if(i_export* finded = opengl32.find_stored_export(_name)) address = (*finded).address;
2520+
if(i_export* finded = opengl32.get_export(_name)) address = (*finded).address;
25262521
else opengl32.stored_exports.push_back(this);
25272522
}
25282523

25292524
public:
25302525
return_t operator()(args_t... args) {
2531-
if(!address) { address = opengl32.load_export(name); }
2526+
if(!address) { address = opengl32.get_export(name); }
25322527
if(!address) { ntl::sdk::logger(ntl::sdk::e_log_type::error, "'{}' export address == nullptr.", name.empty() ? "unknown" : name); return return_t{ }; }
25332528
return ((prototype_t)address)(args...);
25342529
}

third-party/null-sdk

0 commit comments

Comments
 (0)