fix cat_load newline issue
This commit is contained in:
parent
9d653a8fa1
commit
74a687ffac
@ -110,6 +110,9 @@ void load_thread(const int ArgC, const std::string ArgS)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
std::string backup = ArgS;
|
||||||
|
std::string ArgS = backup;
|
||||||
|
ArgS.erase(std::remove(ArgS.begin(), ArgS.end(), '\n'), ArgS.end());
|
||||||
#if ENABLE_VISUALS
|
#if ENABLE_VISUALS
|
||||||
loader.loadFrom(std::string(DATA_PATH "/configs/") + ArgS + ".conf");
|
loader.loadFrom(std::string(DATA_PATH "/configs/") + ArgS + ".conf");
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user