mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-18 13:28:09 +00:00
Abstracted the CDClient tables
There is now an option to utilize shared memory for some CDClient tables by adding `CD_PROVIDER_MEMORY=1` to the CMakeVariables.txt file. Allows masterconfig.ini to specify another run command for the world server, to allow for easier debugging through `valgrind`.
This commit is contained in:
@@ -171,6 +171,9 @@ void CatchUnhandled(int sig) {
|
||||
ErrorCallback,
|
||||
nullptr);
|
||||
|
||||
// Print error code
|
||||
printf("Error code: %d\n", sig);
|
||||
|
||||
struct bt_ctx ctx = {state, 0};
|
||||
Bt(state);
|
||||
|
||||
|
@@ -34,12 +34,19 @@ void dConfig::ProcessLine(const std::string& line) {
|
||||
seglist.push_back(segment);
|
||||
}
|
||||
|
||||
if (seglist.size() != 2) return;
|
||||
if (seglist.size() < 2) return;
|
||||
|
||||
// Segment #1 is combined with the rest of the line to form the value
|
||||
std::string key = seglist[0];
|
||||
std::string value = seglist[1];
|
||||
for (size_t i = 2; i < seglist.size(); ++i) {
|
||||
value += "=" + seglist[i];
|
||||
}
|
||||
|
||||
//Make sure that on Linux, we remove special characters:
|
||||
if (!seglist[1].empty() && seglist[1][seglist[1].size() - 1] == '\r')
|
||||
seglist[1].erase(seglist[1].size() - 1);
|
||||
if (!value.empty() && value[value.size() - 1] == '\r')
|
||||
value.erase(value.size() - 1);
|
||||
|
||||
m_Keys.push_back(seglist[0]);
|
||||
m_Values.push_back(seglist[1]);
|
||||
m_Keys.push_back(key);
|
||||
m_Values.push_back(value);
|
||||
}
|
Reference in New Issue
Block a user