Skip to content

Commit

Permalink
chore: Windows fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwmtr committed Mar 8, 2025
1 parent b6cb98c commit 44f8b58
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"typeindex": "cpp",
"stdio.h": "c",
"cli.hpp": "c",
"unistd.h": "c"
"unistd.h": "c",
"strstream": "cpp"
}
}
2 changes: 1 addition & 1 deletion assets/core/util/theme_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __init__(self, host="localhost", port=9123):
def verify_origin(self, origin):
return origin == "https://steambrew.app"

async def handler(self, websocket: websockets.ServerConnection):
async def handler(self, websocket):

if not self.verify_origin(websocket.request.headers.get("Origin")):
logger.error("Invalid origin")
Expand Down
4 changes: 2 additions & 2 deletions preload/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ void AllocateDevConsole()
{
std::unique_ptr<StartupParameters> startupParams = std::make_unique<StartupParameters>();

/** Check if developer mode is activated */
if (!startupParams->HasArgument("-dev"))
/** Check if CTRL+SHIFT is being held, Check if developer mode is activated */
if (!((GetAsyncKeyState(VK_MENU) & 0x8000) && (GetAsyncKeyState('M') & 0x8000)) && !startupParams->HasArgument("-dev"))
{
return;
}
Expand Down
1 change: 0 additions & 1 deletion src/core/co_spawn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ bool PythonManager::CreatePythonInstance(SettingsStore::PluginTypeSchema& plugin
// Sit on the mutex until daddy says it's time to go
std::unique_lock<std::mutex> lock(interpMutexStatePtr->mtx);
interpMutexStatePtr->cv.wait(lock, [interpMutexStatePtr] {
std::cout << "Waiting for plugin to shut down..." << std::endl;
return interpMutexStatePtr->flag.load();
});

Expand Down
2 changes: 1 addition & 1 deletion src/sys/env.cc
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ const void SetupEnvironmentVariables()
if (access(value.c_str(), R_OK) != 0) {
std::cout << fmt::format("{}{}{}{}{}", RED, "Error: ", RESET, fmt::format("Permission denied to access '{}'.", value), "\n");
}
#endif
std::cout << fmt::format("{}={}", key, value) << std::endl;
#endif
SetEnv(key, value);
}
}
2 changes: 1 addition & 1 deletion src/sys/log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ OutputLogger::OutputLogger()
{
std::unique_ptr<StartupParameters> startupParams = std::make_unique<StartupParameters>();

m_bIsConsoleEnabled = startupParams->HasArgument("-dev");
m_bIsConsoleEnabled = ((GetAsyncKeyState(VK_MENU) & 0x8000) && (GetAsyncKeyState('M') & 0x8000)) || startupParams->HasArgument("-dev");
m_bIsVersbose = startupParams->HasArgument("-verbose");
}
#elif __linux__
Expand Down

0 comments on commit 44f8b58

Please sign in to comment.