Merge branch 'DLC-comments' of gitlab.com:Lyberta/goldberg_emulator

This commit is contained in:
Mr_Goldberg 2019-08-05 18:34:50 -04:00
commit 07af5737b4
No known key found for this signature in database
GPG Key ID: 8597D87419DEF278

View File

@ -215,13 +215,16 @@ Steam_Client::Steam_Client()
settings_server->unlockAllDLC(false);
PRINT_DEBUG("Locking all DLC\n");
for( std::string line; getline( input, line ); ) {
if (!line.empty() && line[line.length()-1] == '\n') {
line.erase(line.length()-1);
for( std::string line; std::getline( input, line ); ) {
if (!line.empty() && line.front() == '#') {
continue;
}
if (!line.empty() && line.back() == '\n') {
line.pop_back();
}
if (!line.empty() && line[line.length()-1] == '\r') {
line.erase(line.length()-1);
if (!line.empty() && line.back() == '\r') {
line.pop_back();
}
std::size_t deliminator = line.find("=");