mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-08 22:59:31 +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;
|
||||
|
@ -148,13 +150,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);
|
||||
}
|
||||
}
|
||||
|
||||
void JSBaker::exportJS(QFile* bakedFile) {
|
||||
// save the relative path to this JS inside the output folder
|
||||
|
|
Loading…
Reference in a new issue