mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 01:45:46 -04:00
libretro: Re-enable hw context switch, add auto option
This commit is contained in:
@ -49,6 +49,7 @@ add_library(common
|
||||
jit_code_buffer.h
|
||||
log.cpp
|
||||
log.h
|
||||
make_array.h
|
||||
md5_digest.cpp
|
||||
md5_digest.h
|
||||
minizip_helpers.cpp
|
||||
|
@ -66,6 +66,7 @@
|
||||
<ClInclude Include="iso_reader.h" />
|
||||
<ClInclude Include="jit_code_buffer.h" />
|
||||
<ClInclude Include="log.h" />
|
||||
<ClInclude Include="make_array.h" />
|
||||
<ClInclude Include="md5_digest.h" />
|
||||
<ClInclude Include="null_audio_stream.h" />
|
||||
<ClInclude Include="progress_callback.h" />
|
||||
|
@ -101,6 +101,7 @@
|
||||
<ClInclude Include="image.h" />
|
||||
<ClInclude Include="minizip_helpers.h" />
|
||||
<ClInclude Include="win32_progress_callback.h" />
|
||||
<ClInclude Include="make_array.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="jit_code_buffer.cpp" />
|
||||
@ -210,4 +211,4 @@
|
||||
<UniqueIdentifier>{642ff5eb-af39-4aab-a42f-6eb8188a11d7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
12
src/common/make_array.h
Normal file
12
src/common/make_array.h
Normal 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)...};
|
||||
}
|
Reference in New Issue
Block a user