Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoAnsems committed Aug 20, 2024
2 parents 985affe + d240756 commit cc535e2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 30 deletions.
29 changes: 15 additions & 14 deletions src/Engine/GameId.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
// Copyright (C) 2024 Arno Ansems
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/

#pragma once

#include <map>
#include <list>
#include <cstdint>

enum class GameId
{
Expand Down Expand Up @@ -61,4 +62,4 @@ inline const std::list<GameId>& getAllGameIds()
GameId::Catacomb3Dv122
};
return allGameIds;
}
}
32 changes: 16 additions & 16 deletions src/System/CatacombGL.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// Copyright (C) 2018 Arno Ansems
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/

//
// This source file is the main entry point of the CatacombGL executable. It contains the WinMain function.
Expand Down Expand Up @@ -137,7 +137,7 @@ int main(int argc, char* argv[])
const fs::path configPath = system.GetConfigurationFilePath();
system.CreatePath(configPath);

const fs::path logFilename = commandLineParser.getFilenameLog().empty() ? configPath / "CatacombGL_log.txt" : commandLineParser.getFilenameLog();
const fs::path logFilename = commandLineParser.getFilenameLog().empty() ? (fs::path) configPath / "CatacombGL_log.txt" : (fs::path) commandLineParser.getFilenameLog();
Logging::Instance().SetLogFile(logFilename);
Logging::Instance().AddLogMessage("Configuration file used .... " + logFilename.string());

Expand All @@ -146,7 +146,7 @@ int main(int argc, char* argv[])

Logging::Instance().AddLogMessage("Running on " + system.GetOSVersion());

const fs::path configFilename = commandLineParser.getFilenameIni().empty() ? configPath / "CatacombGL.ini" : commandLineParser.getFilenameIni();
const fs::path configFilename = commandLineParser.getFilenameIni().empty() ? (fs::path) configPath / "CatacombGL.ini" : (fs::path) commandLineParser.getFilenameIni();
Logging::Instance().AddLogMessage("Loading CatacombGL.ini");
config.LoadFromFile(configFilename);

Expand Down Expand Up @@ -442,4 +442,4 @@ int main(int argc, char* argv[])
delete console;

return 0;
}
}

0 comments on commit cc535e2

Please sign in to comment.