mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-13 11:27:42 +01:00
Tidy tidy
This commit is contained in:
parent
73447f205d
commit
abe27891c3
1 changed files with 7 additions and 25 deletions
|
|
@ -473,20 +473,17 @@ void open_folder_and_select_items(HWND hwndOpener, const std::wstring& path) {
|
|||
ILFree(piid);
|
||||
}
|
||||
|
||||
std::vector <IDXGIAdapter1*> EnumerateAdapters(void)
|
||||
std::vector<IDXGIAdapter1*> enum_dxgi_adapters()
|
||||
{
|
||||
IDXGIAdapter1* pAdapter;
|
||||
std::vector <IDXGIAdapter1*> vAdapters;
|
||||
std::vector<IDXGIAdapter1*> vAdapters;
|
||||
|
||||
IDXGIFactory1* pFactory = NULL;
|
||||
|
||||
|
||||
// Create a DXGIFactory object.
|
||||
if (FAILED(CreateDXGIFactory1(__uuidof(IDXGIFactory1), (void**)&pFactory)))
|
||||
{
|
||||
return vAdapters;
|
||||
}
|
||||
|
||||
|
||||
IDXGIAdapter1* pAdapter;
|
||||
for (UINT i = 0;
|
||||
pFactory->EnumAdapters1(i, &pAdapter) != DXGI_ERROR_NOT_FOUND;
|
||||
++i)
|
||||
|
|
@ -501,7 +498,6 @@ std::vector <IDXGIAdapter1*> EnumerateAdapters(void)
|
|||
}
|
||||
|
||||
return vAdapters;
|
||||
|
||||
}
|
||||
|
||||
void export_tspack(HWND hWndParent, const std::filesystem::path& logDir, const std::string& crashLog, const std::string& troubleshootingPackData) {
|
||||
|
|
@ -1057,26 +1053,12 @@ int main() {
|
|||
log << std::format(L"CPU Vendor: {}", vendor) << std::endl;
|
||||
log << std::format(L"CPU Brand: {}", brand) << std::endl;
|
||||
|
||||
std::vector <IDXGIAdapter1*> availableAdapters = EnumerateAdapters();
|
||||
|
||||
for (int i = 0; i < availableAdapters.size(); i++) {
|
||||
auto& myAdapter = *availableAdapters[i];
|
||||
auto adapterDescription = DXGI_ADAPTER_DESC1();
|
||||
myAdapter.GetDesc1(&adapterDescription);
|
||||
// Print description to console here
|
||||
for (IDXGIAdapter1* adapter : enum_dxgi_adapters()) {
|
||||
DXGI_ADAPTER_DESC1 adapterDescription{};
|
||||
myAdapter->GetDesc1(&adapterDescription);
|
||||
log << std::format(L"GPU Desc: {}", adapterDescription.Description) << std::endl;
|
||||
}
|
||||
|
||||
/*
|
||||
for_each(availableAdapters.begin(), availableAdapters.end(), [](IDXGIAdapter1* adapter, , std::wostream log) {
|
||||
auto& myAdapter = *adapter;
|
||||
auto adapterDescription = DXGI_ADAPTER_DESC1();
|
||||
myAdapter.GetDesc1(&adapterDescription);
|
||||
// Print description to console here
|
||||
log << std::format(L"GPU Desc: {}", adapterDescription.Description) << std::endl;
|
||||
});
|
||||
*/
|
||||
|
||||
log << L"\n" << stackTrace << std::endl;
|
||||
|
||||
if (pProgressDialog)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue