mirror of
https://github.com/ChronosX88/nesca.git
synced 2024-11-23 10:42:21 +00:00
Verbose codepage fixed.
This commit is contained in:
parent
886fa0aa02
commit
a17ba5a4b2
@ -36,7 +36,6 @@ void checkWeb(const char *fileName, std::string *oldLM) {
|
|||||||
if(lm.compare(*oldLM) != 0) {
|
if(lm.compare(*oldLM) != 0) {
|
||||||
*oldLM = lm;
|
*oldLM = lm;
|
||||||
std::string res(buffer.substr(buffer.find("\r\n\r\n") + 4).c_str());
|
std::string res(buffer.substr(buffer.find("\r\n\r\n") + 4).c_str());
|
||||||
//std::replace(res.begin(), res.end(), '\r', '\n');
|
|
||||||
res.erase(std::remove(res.begin(), res.end(), '\r'), res.end());
|
res.erase(std::remove(res.begin(), res.end(), '\r'), res.end());
|
||||||
std::ofstream out(fileName);
|
std::ofstream out(fileName);
|
||||||
out << std::string(res);
|
out << std::string(res);
|
||||||
|
@ -22,10 +22,13 @@ void Threader::fireThread(std::string ip, void *func(void)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Threader::cleanUp() {
|
void Threader::cleanUp() {
|
||||||
|
ready = true;
|
||||||
|
cv.notify_one();
|
||||||
std::unique_lock<std::mutex> lk(m);
|
std::unique_lock<std::mutex> lk(m);
|
||||||
lk.unlock();
|
lk.unlock();
|
||||||
lk.release();
|
lk.release();
|
||||||
threadId = 0;
|
threadId = 0;
|
||||||
std::queue<std::string> empty = {};
|
std::queue<std::string> empty = {};
|
||||||
std::swap(ipQueue, empty);
|
std::swap(ipQueue, empty);
|
||||||
|
ready = false;
|
||||||
}
|
}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
|
|
2
main.cpp
2
main.cpp
@ -7,7 +7,7 @@ int main(int argc, char *argv[])
|
|||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
|
|
||||||
QStringList list;
|
QStringList list;
|
||||||
list << "Eurostile.ttf";
|
list << "small_font.ttf";
|
||||||
int fontID(-1);
|
int fontID(-1);
|
||||||
bool fontWarningShown(false);
|
bool fontWarningShown(false);
|
||||||
for (QStringList::const_iterator constIterator = list.constBegin(); constIterator != list.constEnd(); ++constIterator) {
|
for (QStringList::const_iterator constIterator = list.constBegin(); constIterator != list.constEnd(); ++constIterator) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/nesca_3">
|
<qresource prefix="/nesca_3">
|
||||||
<file>Eurostile.ttf</file>
|
<file>small_font.ttf</file>
|
||||||
<file>nesca.ico</file>
|
<file>nesca.ico</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
BIN
nesca_3.rc
BIN
nesca_3.rc
Binary file not shown.
479
nesca_3.ui
479
nesca_3.ui
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
BIN
small_font.ttf
Normal file
BIN
small_font.ttf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user