Skip to content

Commit

Permalink
Merge pull request #121 from ModOrganizer2/uibase_updates
Browse files Browse the repository at this point in the history
Use defaults set in UIBase
  • Loading branch information
Silarn authored Oct 4, 2023
2 parents 265b174 + 34ec663 commit 27d17ee
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 44 deletions.
30 changes: 0 additions & 30 deletions basic_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,18 +583,6 @@ def initializeProfile(
directory.absoluteFilePath(QFileInfo(iniFile).fileName())
).touch()

def primarySources(self) -> list[str]:
return []

def primaryPlugins(self) -> list[str]:
return []

def enabledPlugins(self) -> list[str]:
return []

def gameVariants(self) -> list[str]:
return []

def setGameVariant(self, variant: str) -> None:
pass

Expand All @@ -603,21 +591,6 @@ def gameVersion(self) -> str:
self.gameDirectory().absoluteFilePath(self.binaryName())
)

def iniFiles(self) -> list[str]:
return []

def DLCPlugins(self) -> list[str]:
return []

def CCPlugins(self) -> list[str]:
return []

def loadOrderMechanism(self):
return mobase.LoadOrderMechanism.PLUGINS_TXT

def sortMechanism(self):
return mobase.SortMechanism.NONE

def looksValid(self, directory: QDir):
return directory.exists(self.binaryName())

Expand All @@ -635,9 +608,6 @@ def dataDirectory(self) -> QDir:
self.gameDirectory().absoluteFilePath(self._mappings.dataDirectory.get())
)

def secondaryDataDirectories(self) -> dict[str, QDir]:
return {}

def setGamePath(self, path: Path | str) -> None:
self._gamePath = str(path)

Expand Down
26 changes: 13 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ vdf = "3.4"
lzokay = "1.1.5"

[tool.poetry.group.dev.dependencies]
mobase-stubs = { version = "^2.5.0.dev14", allow-prereleases = true }
mobase-stubs = { version = "^2.5.0.dev15", allow-prereleases = true }
pyqt6 = "^6.5.2"
pyright = "^1.1.327"
flake8 = "^6.1.0"
Expand Down

0 comments on commit 27d17ee

Please sign in to comment.