PulleyBack: Simplify code fetching functions from DLL
authorAdriaan de Groot <groot@kde.org>
Wed, 6 Jul 2016 19:19:08 +0000 (21:19 +0200)
committerAdriaan de Groot <groot@kde.org>
Wed, 6 Jul 2016 21:25:35 +0000 (23:25 +0200)
commit780bc38b44e8b5478da3ab2d4821b80f7ac888d9
tree15e9b441cc5d92dea2e4ca80a0a4aa2d86f5c197
parentb483bf313e41c4cdde0705b54a2f28a6e1104044
PulleyBack: Simplify code fetching functions from DLL

 - First templated code in SteamWorks
 - This allows a one-liner to grab the function pointer
   with dlfunc() and store it in the correct place,
   with validity being checked and set with each function;
   if any one fails, the destructor (guaranteed to be
   called) will reset all of the function pointers.

This saves a complicated test-set-and-cleanup construction
for each function pointer.
src/pulley/backend.cpp