mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
common: refactor common library pt2 (#8588)
- remove common lib - split settings, remove common-md - move ipc interop/kb_layout to interop - rename core -> settings, settings -> old_settings - os-detect header-only; interop -> PowerToysInterop - split notifications, move single-use headers where they're used - winstore lib - rename com utils - rename Updating and Telemetry projects - rename core -> settings-ui and remove examples folder - rename settings-ui folder + consisent common/version include
This commit is contained in:
22
src/common/version/version.cpp
Normal file
22
src/common/version/version.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "version.h"
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
version_architecture get_current_architecture()
|
||||
{
|
||||
// TODO: detect ARM build with #ifdef
|
||||
return version_architecture::x64;
|
||||
}
|
||||
|
||||
const wchar_t* get_architecture_string(const version_architecture v)
|
||||
{
|
||||
switch (v)
|
||||
{
|
||||
case version_architecture::x64:
|
||||
return L"x64";
|
||||
case version_architecture::arm:
|
||||
return L"arm";
|
||||
default:
|
||||
throw std::runtime_error("unknown architecture");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user