Skip to content

Ecliptica game fixes #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crc32constexper.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ constexpr uint16_t calculateCrc16(const char* data, size_t size, uint32_t initia
constexpr uint16_t calculateCrc8(const char* data, size_t size, uint32_t initialCrc = 0xFFFFFFFF) {
return calculateCrc32(data, size, initialCrc) % 0xFF;
}

#define LITIRAL_CRC32(str) \
(QuasarAppUtils::calculateCrc32(str, sizeof(str) - 1))
}

#endif // CRC32CONSTEXPER_H
2 changes: 1 addition & 1 deletion qalogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void messageHandler(QtMsgType type, const QMessageLogContext & context, const QS


if (checkLogType(type, _verboseLevel)) {
if (_toFile && _logFile->size()) {
if (_toFile && !_logFile.isDestroyed() && _logFile->size()) {
QFile logFile(*_logFile);
if (logFile.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text)) {
QTextStream stream(&logFile);
Expand Down