PR Review comments

This commit is contained in:
émeryc
2023-07-12 22:10:23 -04:00
parent 12e7cb0625
commit 43d1e07aba
10 changed files with 11 additions and 13 deletions

View File

@@ -1,7 +1,6 @@
#include "OS.h"
#include <chrono>
#include "String.h"
#include <Windows.h>
using namespace Nuake;
@@ -11,7 +10,7 @@ int OS::GetTime()
return static_cast<int>(std::chrono::system_clock::now().time_since_epoch().count());
}
void OS::OpenInFileExplorer(const std::string& filePath)
void OS::ShowInFileExplorer(const std::string& filePath)
{
ShellExecuteA(nullptr, "open", "explorer.exe", ("/select," + std::string(filePath)).c_str(), nullptr, SW_SHOWDEFAULT);
}