-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from ModOrganizer2/ci/gh-action
* Fix formatting. * Ignore formatting revision. * Add github action for build and formatting. * Remove old build files.
- Loading branch information
Showing
17 changed files
with
113 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
f40a37e2704e7b9ec0376ec0f04dd6eff7f3950b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# Explicitly declare text files you want to always be normalized and converted | ||
# to native line endings on checkout. | ||
*.cpp text eol=crlf | ||
*.h text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Build TTW Plugin | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Build TTW Plugin | ||
uses: ModOrganizer2/build-with-mob-action@master | ||
with: | ||
mo2-dependencies: cmake_common uibase game_gamebryo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Lint TTW Plugin | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Check format | ||
uses: ModOrganizer2/check-formatting-action@master | ||
with: | ||
check-path: "." | ||
exclude-regex: "third-party" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
#ifndef FALLOUTTTWBSAINVALIDATION_H | ||
#define FALLOUTTTWBSAINVALIDATION_H | ||
|
||
|
||
#include "gamebryobsainvalidation.h" | ||
#include "falloutttwdataarchives.h" | ||
#include "gamebryobsainvalidation.h" | ||
|
||
#include <memory> | ||
|
||
class FalloutTTWBSAInvalidation : public GamebryoBSAInvalidation | ||
{ | ||
public: | ||
|
||
FalloutTTWBSAInvalidation(DataArchives *dataArchives, MOBase::IPluginGame const *game); | ||
FalloutTTWBSAInvalidation(DataArchives* dataArchives, | ||
MOBase::IPluginGame const* game); | ||
|
||
private: | ||
|
||
virtual QString invalidationBSAName() const override; | ||
virtual unsigned long bsaVersion() const override; | ||
|
||
}; | ||
|
||
#endif // FALLOUTTTWBSAINVALIDATION_H | ||
#endif // FALLOUTTTWBSAINVALIDATION_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
#include "falloutttwdataarchives.h" | ||
#include <utility.h> | ||
|
||
FalloutTTWDataArchives::FalloutTTWDataArchives(const QDir &myGamesDir) : | ||
GamebryoDataArchives(myGamesDir) | ||
{ | ||
} | ||
FalloutTTWDataArchives::FalloutTTWDataArchives(const QDir& myGamesDir) | ||
: GamebryoDataArchives(myGamesDir) | ||
{} | ||
|
||
QStringList FalloutTTWDataArchives::vanillaArchives() const | ||
{ | ||
return { "Fallout - Textures.bsa" | ||
, "Fallout - Textures2.bsa" | ||
, "Fallout - Meshes.bsa" | ||
, "Fallout - Voices1.bsa" | ||
, "Fallout - Sound.bsa" | ||
, "Fallout - Misc.bsa" }; | ||
return {"Fallout - Textures.bsa", "Fallout - Textures2.bsa", "Fallout - Meshes.bsa", | ||
"Fallout - Voices1.bsa", "Fallout - Sound.bsa", "Fallout - Misc.bsa"}; | ||
} | ||
|
||
QStringList FalloutTTWDataArchives::archives(const MOBase::IProfile *profile) const | ||
QStringList FalloutTTWDataArchives::archives(const MOBase::IProfile* profile) const | ||
{ | ||
QStringList result; | ||
|
||
QString iniFile = profile->localSettingsEnabled() ? QDir(profile->absolutePath()).absoluteFilePath("fallout.ini") : m_LocalGameDir.absoluteFilePath("fallout.ini"); | ||
QString iniFile = profile->localSettingsEnabled() | ||
? QDir(profile->absolutePath()).absoluteFilePath("fallout.ini") | ||
: m_LocalGameDir.absoluteFilePath("fallout.ini"); | ||
result.append(getArchivesFromKey(iniFile, "SArchiveList")); | ||
|
||
return result; | ||
} | ||
|
||
void FalloutTTWDataArchives::writeArchiveList(MOBase::IProfile *profile, const QStringList &before) | ||
void FalloutTTWDataArchives::writeArchiveList(MOBase::IProfile* profile, | ||
const QStringList& before) | ||
{ | ||
QString list = before.join(", "); | ||
|
||
QString iniFile = profile->localSettingsEnabled() ? QDir(profile->absolutePath()).absoluteFilePath("fallout.ini") : m_LocalGameDir.absoluteFilePath("fallout.ini"); | ||
QString iniFile = profile->localSettingsEnabled() | ||
? QDir(profile->absolutePath()).absoluteFilePath("fallout.ini") | ||
: m_LocalGameDir.absoluteFilePath("fallout.ini"); | ||
setArchivesToKey(iniFile, "SArchiveList", list); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
#ifndef FALLOUTTTWDATAARCHIVES_H | ||
#define FALLOUTTTWDATAARCHIVES_H | ||
|
||
|
||
#include <gamebryodataarchives.h> | ||
#include <iprofile.h> | ||
#include <QDir> | ||
#include <QString> | ||
#include <QStringList> | ||
#include <QDir> | ||
#include <gamebryodataarchives.h> | ||
#include <iprofile.h> | ||
|
||
class FalloutTTWDataArchives : public GamebryoDataArchives | ||
{ | ||
public: | ||
FalloutTTWDataArchives(const QDir &myGamesDir); | ||
FalloutTTWDataArchives(const QDir& myGamesDir); | ||
|
||
public: | ||
virtual QStringList vanillaArchives() const override; | ||
virtual QStringList archives(const MOBase::IProfile *profile) const override; | ||
virtual QStringList archives(const MOBase::IProfile* profile) const override; | ||
|
||
private: | ||
virtual void writeArchiveList(MOBase::IProfile *profile, const QStringList &before) override; | ||
|
||
virtual void writeArchiveList(MOBase::IProfile* profile, | ||
const QStringList& before) override; | ||
}; | ||
|
||
#endif // FALLOUTTTWDATAARCHIVES_H | ||
#endif // FALLOUTTTWDATAARCHIVES_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.