mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-29 00:07:58 +03:00
Minor changes
This commit is contained in:
parent
78e8d34c00
commit
c2c6b5f072
2 changed files with 7 additions and 3 deletions
|
@ -79,7 +79,8 @@ private:
|
||||||
|
|
||||||
bool _shortenedCalls = false;
|
bool _shortenedCalls = false;
|
||||||
|
|
||||||
std::string _consoleInput = "";
|
std::string _consoleInput = {};
|
||||||
|
|
||||||
void PerformConsoleInput();
|
void PerformConsoleInput();
|
||||||
|
|
||||||
std::string GetRequestedPath() const;
|
std::string GetRequestedPath() const;
|
||||||
|
|
|
@ -240,8 +240,7 @@ bool GenerateDummyLevel(const std::string& levelPath)
|
||||||
|
|
||||||
unsigned CALLBACK ConsoleInput(void*)
|
unsigned CALLBACK ConsoleInput(void*)
|
||||||
{
|
{
|
||||||
std::string input;
|
auto input = std::string();
|
||||||
|
|
||||||
while (!ThreadEnded)
|
while (!ThreadEnded)
|
||||||
{
|
{
|
||||||
if (!std::getline(std::cin, input))
|
if (!std::getline(std::cin, input))
|
||||||
|
@ -427,10 +426,14 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||||
// Hide console window if mode isn't debug.
|
// Hide console window if mode isn't debug.
|
||||||
#ifndef _DEBUG
|
#ifndef _DEBUG
|
||||||
if (!DebugMode)
|
if (!DebugMode)
|
||||||
|
{
|
||||||
FreeConsole();
|
FreeConsole();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
ConsoleThreadHandle = BeginThread(ConsoleInput, ConsoleThreadID);
|
ConsoleThreadHandle = BeginThread(ConsoleInput, ConsoleThreadID);
|
||||||
|
}
|
||||||
|
|
||||||
// Clear application structure.
|
// Clear application structure.
|
||||||
memset(&App, 0, sizeof(WINAPP));
|
memset(&App, 0, sizeof(WINAPP));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue