mirror of
https://github.com/NinjaCheetah/libWiiPy.git
synced 2025-04-26 05:11:02 -04:00
Renamed package from libWiiPy_NinjaCheetah to just libWiiPy
This commit is contained in:
parent
2c10a73d8a
commit
87685d3c98
@ -1,5 +1,5 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "libWiiPy_NinjaCheetah"
|
name = "libWiiPy"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
authors = [
|
authors = [
|
||||||
{ name="NinjaCheetah", email="ninjacheetah@ncxprogramming.com" },
|
{ name="NinjaCheetah", email="ninjacheetah@ncxprogramming.com" },
|
||||||
|
@ -95,12 +95,15 @@ class TMD:
|
|||||||
self.boot_index = tmdfile.read(2)
|
self.boot_index = tmdfile.read(2)
|
||||||
|
|
||||||
def get_title_id(self):
|
def get_title_id(self):
|
||||||
|
"""Returns the TID of the TMD's associated title."""
|
||||||
return self.title_id
|
return self.title_id
|
||||||
|
|
||||||
def get_title_version(self):
|
def get_title_version(self):
|
||||||
|
"""Returns the version of the TMD's associated title."""
|
||||||
return self.title_version
|
return self.title_version
|
||||||
|
|
||||||
def get_title_region(self):
|
def get_title_region(self):
|
||||||
|
"""Returns the region of the TMD's associated title."""
|
||||||
match self.region:
|
match self.region:
|
||||||
case 0:
|
case 0:
|
||||||
return "JAP"
|
return "JAP"
|
||||||
@ -114,18 +117,22 @@ class TMD:
|
|||||||
return "KOR"
|
return "KOR"
|
||||||
|
|
||||||
def get_is_vwii_title(self):
|
def get_is_vwii_title(self):
|
||||||
|
"""Returns whether the TMD is designed for the vWii or not."""
|
||||||
if self.vwii == 1:
|
if self.vwii == 1:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def get_required_ios_tid(self):
|
def get_required_ios_tid(self):
|
||||||
|
"""Returns the TID of the required IOS for the title."""
|
||||||
return self.ios_tid
|
return self.ios_tid
|
||||||
|
|
||||||
def get_required_ios(self):
|
def get_required_ios(self):
|
||||||
|
"""Returns the required IOS version for the title."""
|
||||||
return self.ios_version
|
return self.ios_version
|
||||||
|
|
||||||
def get_title_type(self):
|
def get_title_type(self):
|
||||||
|
"""Returns the type of the TMD's associated title."""
|
||||||
title_id_high = self.title_id[:8]
|
title_id_high = self.title_id[:8]
|
||||||
match title_id_high:
|
match title_id_high:
|
||||||
case '00000001':
|
case '00000001':
|
Loading…
x
Reference in New Issue
Block a user