Commit 689d327b authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Merge branch 'emitdb-path-issue' into 'master'

emitdb rev detection.

See merge request !125
parents b2b04709 cfc6301b
Pipeline #163294 passed with stages
in 18 minutes and 39 seconds
...@@ -22,7 +22,7 @@ EmitDb::EmitDb(const EmitDb& orig) ...@@ -22,7 +22,7 @@ EmitDb::EmitDb(const EmitDb& orig)
void XGamDb::load(const std::string& file, EmitDb& database) void XGamDb::load(const std::string& file, EmitDb& database)
{ {
std::string revStr = radix::split_string(".", file)[1]; std::string revStr = radix::split_string(".", radix::basename(file))[1];
int revNum = std::atoi(revStr.substr(revStr.size() - 1, 1).c_str()); int revNum = std::atoi(revStr.substr(revStr.size() - 1, 1).c_str());
int indexThreshold = 70, indexIterator = 20; int indexThreshold = 70, indexIterator = 20;
int linecount = 0; int linecount = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment