mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Update JSBaker.cpp
This commit is contained in:
parent
258c32f9aa
commit
4fd0452694
1 changed files with 6 additions and 8 deletions
|
@ -76,7 +76,9 @@ void JSBaker::bakeJS(QFile* inputFile) {
|
|||
} else if (nextCharacter == '*') {
|
||||
// Check if multi line comment i.e. /*
|
||||
handleMultiLineComments(&in);
|
||||
|
||||
if (hasErrors()) {
|
||||
return;
|
||||
}
|
||||
//Start fresh after handling comments
|
||||
previousCharacter = '\n';
|
||||
in >> currentCharacter;
|
||||
|
@ -147,13 +149,9 @@ void JSBaker::bakeJS(QFile* inputFile) {
|
|||
|
||||
// Reading done. Closing the inputFile
|
||||
inputFile->close();
|
||||
|
||||
if (hasErrors()) {
|
||||
return;
|
||||
} else {
|
||||
// Bake successful, Export the compressed outputFile
|
||||
exportJS(&outputFile);
|
||||
}
|
||||
|
||||
// Bake successful, Export the compressed outputFile
|
||||
exportJS(&outputFile);
|
||||
}
|
||||
|
||||
void JSBaker::exportJS(QFile* bakedFile) {
|
||||
|
|
Loading…
Reference in a new issue