Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
initial sync ui part
Browse files Browse the repository at this point in the history
  • Loading branch information
mq1n committed Jul 2, 2021
1 parent aa20186 commit 102afe4
Show file tree
Hide file tree
Showing 354 changed files with 161,657 additions and 791 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,9 @@
/build

# Debug symbols
*.pdb
*.pdb

# Config/Log files
*.cfg
*.ini
*.log
54 changes: 54 additions & 0 deletions Bin/I18n/en_us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
// Common
"1": {
"1": "Unknown",
"2": "Initializing...",
"3": "Compatible!",
"4": "NOT Compatible!",
"5": "Status",
"6": "Details",
"7": "Export",
"8": "Dark Mode",
"9": "Capable",
"10": "Enabled",
"11": "disabled",
"12": "Version",
"13": "Build",
"14": "Result",
"15": "System can upgradable to Windows 11",
"16": "System can NOT upgradable to Windows 11",
"17": "Result data succesfully exported to: %s",
"18": "Result data export failed!",
"19": "# More on Windows 11",
"20": "# System specifications",
"21": "\t> Supported CPU List:"
},
// Menu
"2": {
"1": "Summary",
"2": "OS",
"3": "Boot",
"4": "CPU",
"5": "RAM",
"6": "Disk",
"7": "Display",
"8": "Internet"
},
// System details
"3": {
"1": "OS Version",
"2": "OS Service pack",
"3": "OS Build",
"4": "OS Platform",
"5": "OS Product Type",
"6": "Boot Firmware",
"7": "Secure Boot status",
"8": "TPM",
"9": "Processor name",
"10": "Processor details",
"11": "Processor architecture",
"12": "Active processor count",
"13": "Processor count",
"14": "Total Memory"
}
}
50 changes: 46 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,30 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ../Bin/)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL ../Bin/)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO ../Bin/)

add_definitions(-DFMT_HEADER_ONLY)
add_definitions(-DIMGUI_IMPL_WIN32_DISABLE_GAMEPAD)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

if (CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(-DTARGET_ARCH_STR="64")
set(ARCH_STR "64")
else()
add_definitions(-DTARGET_ARCH_STR="86")
set(ARCH_STR "86")
endif()

execute_process ( COMMAND git rev-list HEAD OUTPUT_VARIABLE GIT_REV_LIST_OUTPUT ERROR_VARIABLE GIT_REV_LIST_OUTPUT RESULT_VARIABLE GIT_REV_LIST_RESULT WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
if( NOT ${GIT_REV_LIST_RESULT} EQUAL 0 )
message( FATAL_ERROR "get_git_revision(): can not get git revision. log followed: ${GIT_REV_LIST_OUTPUT}")
endif()
string(STRIP ${GIT_REV_LIST_OUTPUT} GIT_REV_LIST_OUTPUT)
string(REPLACE "\n" ";" GIT_REV_LIST ${GIT_REV_LIST_OUTPUT} )
list(LENGTH GIT_REV_LIST gitVersion )
add_definitions(-D_GIT_VERSION_="${gitVersion}")

if(MSVC)
set(LIB_RT_SUFFIX "mt")
set(LIB_RT_OPTION "/MT")
Expand All @@ -31,9 +51,31 @@ if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${MT_BUILD}")
endif()

add_executable (${PROJECT_NAME}
include/main.h
src/main.cpp
include_directories(${PROJECT_SOURCE_DIR}/extern/imgui-1.83)
include_directories(${PROJECT_SOURCE_DIR}/extern/imgui-1.83/backends)
include_directories(${PROJECT_SOURCE_DIR}/extern/spdlog-1.8.5)
include_directories(${PROJECT_SOURCE_DIR}/extern/fmt-7.1.3)
include_directories(${PROJECT_SOURCE_DIR}/extern/mINI)
include_directories(${PROJECT_SOURCE_DIR}/extern/rapidjson)
include_directories(${PROJECT_SOURCE_DIR}/extern/imgui-notify)
link_directories(${PROJECT_SOURCE_DIR}/extern/d3d9/lib_x${ARCH_STR})
link_directories(${PROJECT_SOURCE_DIR}/extern/spdlog-1.8.5)

file(GLOB HEADERS
"${PROJECT_SOURCE_DIR}/include/*.hpp"
)
file(GLOB SOURCES
"${PROJECT_SOURCE_DIR}/extern/imgui-1.83/backends/imgui_impl_win32.cpp"
"${PROJECT_SOURCE_DIR}/extern/imgui-1.83/backends/imgui_impl_dx9.cpp"
"${PROJECT_SOURCE_DIR}/extern/imgui-1.83/*.cpp"
"${PROJECT_SOURCE_DIR}/src/*.cpp"
)

add_executable(
${PROJECT_NAME}
${HEADERS}
${SOURCES}
)

target_link_libraries(${PROJECT_NAME} dxguid PowrProf WinInet Tbs)
target_precompile_headers(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include/pch.hpp)
target_link_libraries(${PROJECT_NAME} d3d9 d3dx9 DxErr dinput8 dwmapi dxguid PowrProf WinInet Tbs)
14 changes: 14 additions & 0 deletions Win11SysCheck.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"workbench.colorCustomizations": {
"activityBar.background": "#203123",
"titleBar.activeBackground": "#2D4531",
"titleBar.activeForeground": "#F9FBFA"
}
}
}
Loading

0 comments on commit 102afe4

Please sign in to comment.