mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-25 20:07:51 +02:00
Fixed issues hopefully
This commit is contained in:
@ -35,7 +35,7 @@ namespace backend {
|
||||
int PollUnicodeChars();
|
||||
|
||||
void doPartialInit() {
|
||||
std::string root = core::args["root"];
|
||||
std::string root = (std::string)core::args["root"];
|
||||
backend::init();
|
||||
style::loadFonts(root + "/res"); // TODO: Don't hardcode, use config
|
||||
icons::load(root + "/res");
|
||||
|
@ -74,14 +74,14 @@ int sdrpp_main(int argc, char* argv[]) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool serverMode = core::args["server"];
|
||||
bool serverMode = (bool)core::args["server"];
|
||||
|
||||
#ifdef _WIN32
|
||||
if (!core::args["con"].b() && !serverMode) { FreeConsole(); }
|
||||
#endif
|
||||
|
||||
// Check root directory
|
||||
std::string root = core::args["root"];
|
||||
std::string root = (std::string)core::args["root"];
|
||||
if (!std::filesystem::exists(root)) {
|
||||
spdlog::warn("Root directory {0} does not exist, creating it", root);
|
||||
if (!std::filesystem::create_directories(root)) {
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
FileSelect::FileSelect(std::string defaultPath, std::vector<std::string> filter) {
|
||||
_filter = filter;
|
||||
root = core::args["root"];
|
||||
root = (std::string)core::args["root"];
|
||||
setPath(defaultPath);
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <core.h>
|
||||
|
||||
FolderSelect::FolderSelect(std::string defaultPath) {
|
||||
root = core::args["root"];
|
||||
root = (std::string)core::args["root"];
|
||||
setPath(defaultPath);
|
||||
}
|
||||
|
||||
|
@ -148,8 +148,8 @@ namespace server {
|
||||
sigpath::sourceManager.selectSource(sourceList[sourceId]);
|
||||
|
||||
// TODO: Use command line option
|
||||
std::string host = core::args["addr"];
|
||||
int port = core::args["port"];
|
||||
std::string host = (std::string)core::args["addr"];
|
||||
int port = (int)core::args["port"];
|
||||
listener = net::listen(host, port);
|
||||
listener->acceptAsync(_clientHandler, NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user