Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@vmaster
- uses: actions/checkout@master
- uses: actions/setup-python@master
with:
python-version: 3.x
Expand Down
4 changes: 2 additions & 2 deletions src/compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ GameEntry::Types Compositor::saveAll(GameEntry &game, QString completeBaseName,
bool esdeMiximage) {
bool createSubfolder = false;
QString fn = "/" % completeBaseName;
QString subPath = getSubpath(game.path);
QString subPath = getMediaSubpath(game.path);
if (subPath != ".") {
fn.prepend("/" % subPath);
createSubfolder = true;
Expand Down Expand Up @@ -581,7 +581,7 @@ void Compositor::processChildLayers(GameEntry &game, Layer &layer) {
}
}

QString Compositor::getSubpath(const QString &absPath) {
QString Compositor::getMediaSubpath(const QString &absPath) {
QString subPath = ".";
if (config->frontend == "esde") {
// ES-DE expects media files in same subpath (tree structure) as
Expand Down
3 changes: 1 addition & 2 deletions src/compositor.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ class Compositor : public QObject {
void processXml();
GameEntry::Types saveAll(GameEntry &game, QString completeBaseName,
bool isEsde);
// TODO: check, does member fit in here?
QString getSubpath(const QString &absPath);
QString getMediaSubpath(const QString &absPath);

private:
void addChildLayers(Layer &layer, QXmlStreamReader &xml);
Expand Down
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ BOOL WINAPI ConsoleHandler(DWORD dwType) {
if (skyscraper != nullptr) {
if (skyscraper->state == Skyscraper::OpMode::SINGLE) {
// Nothing important going on, just exit
exit(1);
exit(2);
} else if (skyscraper->state == Skyscraper::OpMode::NO_INTR) {
// Ignore signal, something important is going on
// that needs to finish!
Expand All @@ -119,12 +119,12 @@ BOOL WINAPI ConsoleHandler(DWORD dwType) {
skyscraper->queue->clearAll();
}
} else {
exit(1);
exit(2);
}
} else {
ncprintf("\033[1;31mUser REALLY wants to quit NOW, forcing "
"unclean exit...\033[0m\n");
exit(1);
exit(2);
}
}
#if defined(Q_OS_WIN)
Expand Down
2 changes: 1 addition & 1 deletion src/scraperworker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ void ScraperWorker::run() {
}
// copy extra media files (not part of compositor/artwork)
const QString baseName = info.completeBaseName();
const QString subPath = compositor.getSubpath(game.path);
const QString subPath = compositor.getMediaSubpath(game.path);
frontend->copyMedia(mediaSaved, baseName, subPath, game);
}

Expand Down
Loading