mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[App] Abort out early with an error message if CPU does not support AVX.
This commit is contained in:
parent
28b494dadc
commit
08be8af5c0
|
|
@ -37,6 +37,8 @@
|
||||||
#include "xenia/hid/xinput/xinput_hid.h"
|
#include "xenia/hid/xinput/xinput_hid.h"
|
||||||
#endif // XE_PLATFORM_WIN32
|
#endif // XE_PLATFORM_WIN32
|
||||||
|
|
||||||
|
#include "third_party/xbyak/xbyak/xbyak_util.h"
|
||||||
|
|
||||||
DEFINE_string(apu, "any", "Audio system. Use: [any, nop, xaudio2]");
|
DEFINE_string(apu, "any", "Audio system. Use: [any, nop, xaudio2]");
|
||||||
DEFINE_string(gpu, "any", "Graphics system. Use: [any, vulkan, null]");
|
DEFINE_string(gpu, "any", "Graphics system. Use: [any, vulkan, null]");
|
||||||
DEFINE_string(hid, "any", "Input system. Use: [any, nop, winkey, xinput]");
|
DEFINE_string(hid, "any", "Input system. Use: [any, nop, winkey, xinput]");
|
||||||
|
|
@ -138,6 +140,14 @@ int xenia_main(const std::vector<std::wstring>& args) {
|
||||||
Profiler::Initialize();
|
Profiler::Initialize();
|
||||||
Profiler::ThreadEnter("main");
|
Profiler::ThreadEnter("main");
|
||||||
|
|
||||||
|
Xbyak::util::Cpu cpu;
|
||||||
|
if (!cpu.has(Xbyak::util::Cpu::tAVX)) {
|
||||||
|
xe::FatalError(
|
||||||
|
"Your CPU is too old to support Xenia. See the FAQ for system "
|
||||||
|
"requirements at https://xenia.jp");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
// Figure out where content should go.
|
// Figure out where content should go.
|
||||||
std::wstring content_root;
|
std::wstring content_root;
|
||||||
if (!FLAGS_content_root.empty()) {
|
if (!FLAGS_content_root.empty()) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue