-
Notifications
You must be signed in to change notification settings - Fork 55
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 #27 from Holt59/v2.3.x
Update on 2.3.x from master.
- Loading branch information
Showing
4 changed files
with
77 additions
and
7 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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
from ..basic_game import BasicGame | ||
|
||
import os | ||
from PyQt5.QtCore import QDir | ||
|
||
|
||
class KingdomComeDeliveranceGame(BasicGame): | ||
Name = "Kingdom Come Deliverance Support Plugin" | ||
Author = "Silencer711" | ||
Version = "1.0.0" | ||
|
||
GameName = "Kingdom Come: Deliverance" | ||
GameShortName = "kingdomcomedeliverance" | ||
GameNexusName = "kingdomcomedeliverance" | ||
GameNexusId = 2298 | ||
GameSteamId = [379430] | ||
GameGogId = [1719198803] | ||
GameBinary = "bin/Win64/KingdomCome.exe" | ||
GameDataPath = "mods" | ||
GameSaveExtension = "whs" | ||
GameDocumentsDirectory = "%GAME_PATH%" | ||
GameSavesDirectory = "%USERPROFILE%/Saved Games/kingdomcome/saves" | ||
|
||
def iniFiles(self): | ||
return ["custom.cfg", "system.cfg", "user.cfg"] | ||
|
||
def initializeProfile(self, path: QDir, settings: int): | ||
# Create .cfg files if they don't exist | ||
for iniFile in self.iniFiles(): | ||
iniPath = self.documentsDirectory().absoluteFilePath(iniFile) | ||
if not os.path.exists(iniPath): | ||
with open(iniPath, "w") as _: | ||
pass | ||
|
||
# Create the mods directory if it doesn't exist | ||
modsPath = self.dataDirectory().absolutePath() | ||
if not os.path.exists(modsPath): | ||
os.mkdir(modsPath) | ||
|
||
super().initializeProfile(path, settings) |
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,18 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
from ..basic_game import BasicGame | ||
|
||
|
||
class NoMansSkyGame(BasicGame): | ||
|
||
Name = "Mo Man's Sky Support Plugin" | ||
Author = "Luca/EzioTheDeadPoet" | ||
Version = "1.0.0" | ||
|
||
GameName = "Mo Man's Sky" | ||
GameShortName = "nomanssky" | ||
GaneNexusHame = "nomanssky" | ||
GameSteamId = 275850 | ||
GameGogId = 1446213994 | ||
GameBinary = "Binaries/NMS.exe" | ||
GameDataPath = "GAMEDATA/PCBANKS/MODS" |