libretro: Re-enable hw context switch, add auto option

This commit is contained in:
Connor McLaughlin
2020-08-23 14:42:53 +10:00
parent df14519a97
commit 17b5c749bf
6 changed files with 42 additions and 33 deletions

12
src/common/make_array.h Normal file
View File

@ -0,0 +1,12 @@
#pragma once
#include <array>
#include <type_traits>
// Source: https://gist.github.com/klmr/2775736#file-make_array-hpp
template<typename... T>
constexpr auto make_array(T&&... values)
-> std::array<typename std::decay<typename std::common_type<T...>::type>::type, sizeof...(T)>
{
return {std::forward<T>(values)...};
}