mirror of
https://github.com/grp/Wii.py.git
synced 2025-06-19 07:15:49 -04:00
maybe working now
This commit is contained in:
parent
c234fbfa42
commit
025b69f436
7
TPL.py
7
TPL.py
@ -1,9 +1,14 @@
|
|||||||
import os, hashlib, struct, subprocess, fnmatch, shutil, urllib, array
|
import os, hashlib, struct, subprocess, fnmatch, shutil, urllib, array
|
||||||
import wx
|
import wx
|
||||||
from Crypto.Cipher import AES
|
|
||||||
import png
|
import png
|
||||||
|
|
||||||
|
from Crypto.Cipher import AES
|
||||||
from Struct import Struct
|
from Struct import Struct
|
||||||
|
|
||||||
|
from common import *
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class TPL():
|
class TPL():
|
||||||
"""This is the class to generate TPL texutres from PNG images, and to convert TPL textures to PNG images. The parameter file specifies the filename of the source, either a PNG image or a TPL image.
|
"""This is the class to generate TPL texutres from PNG images, and to convert TPL textures to PNG images. The parameter file specifies the filename of the source, either a PNG image or a TPL image.
|
||||||
|
|
||||||
|
7
U8.py
7
U8.py
@ -1,9 +1,14 @@
|
|||||||
import os, hashlib, struct, subprocess, fnmatch, shutil, urllib, array
|
import os, hashlib, struct, subprocess, fnmatch, shutil, urllib, array
|
||||||
import wx
|
import wx
|
||||||
from Crypto.Cipher import AES
|
|
||||||
import png
|
import png
|
||||||
|
|
||||||
|
from Crypto.Cipher import AES
|
||||||
from Struct import Struct
|
from Struct import Struct
|
||||||
|
|
||||||
|
from common import *
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class U8():
|
class U8():
|
||||||
"""This class can unpack and pack U8 archives, which are used all over the Wii. They are often used in Banners and contents in Downloadable Titles. Please remove all headers and compression first, kthx.
|
"""This class can unpack and pack U8 archives, which are used all over the Wii. They are often used in Banners and contents in Downloadable Titles. Please remove all headers and compression first, kthx.
|
||||||
|
|
||||||
|
@ -1,9 +1,3 @@
|
|||||||
__all__ = []
|
__all__ = []
|
||||||
|
|
||||||
from common import *
|
from common import *
|
||||||
from compression import *
|
|
||||||
from disc import *
|
|
||||||
from nand import *
|
|
||||||
from title import *
|
|
||||||
from TPL import *
|
|
||||||
from U8 import *
|
|
11
common.py
11
common.py
@ -1,9 +1,18 @@
|
|||||||
import os, hashlib, struct, subprocess, fnmatch, shutil, urllib, array
|
import os, hashlib, struct, subprocess, fnmatch, shutil, urllib, array
|
||||||
import wx
|
import wx
|
||||||
from Crypto.Cipher import AES
|
|
||||||
import png
|
import png
|
||||||
|
|
||||||
|
from Crypto.Cipher import AES
|
||||||
from Struct import Struct
|
from Struct import Struct
|
||||||
|
|
||||||
|
from compression import *
|
||||||
|
from disc import *
|
||||||
|
from nand import *
|
||||||
|
from title import *
|
||||||
|
from TPL import *
|
||||||
|
from U8 import *
|
||||||
|
|
||||||
|
|
||||||
def align(x, boundary):
|
def align(x, boundary):
|
||||||
return x + (x % boundary)
|
return x + (x % boundary)
|
||||||
|
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
import os, hashlib, struct, subprocess, fnmatch, shutil, urllib, array
|
import os, hashlib, struct, subprocess, fnmatch, shutil, urllib, array
|
||||||
import wx
|
import wx
|
||||||
from Crypto.Cipher import AES
|
|
||||||
import png
|
import png
|
||||||
|
|
||||||
|
from Crypto.Cipher import AES
|
||||||
from Struct import Struct
|
from Struct import Struct
|
||||||
|
|
||||||
|
from common import *
|
||||||
|
|
||||||
|
|
||||||
class LZ77():
|
class LZ77():
|
||||||
class WiiLZ77: #class by marcan
|
class WiiLZ77: #class by marcan
|
||||||
TYPE_LZ77 = 1
|
TYPE_LZ77 = 1
|
||||||
|
12
disc.py
12
disc.py
@ -1,9 +1,17 @@
|
|||||||
|
import os, hashlib, struct, subprocess, fnmatch, shutil, urllib, array
|
||||||
|
import wx
|
||||||
|
import png
|
||||||
|
|
||||||
|
from Crypto.Cipher import AES
|
||||||
|
from Struct import Struct
|
||||||
|
|
||||||
|
from common import *
|
||||||
|
|
||||||
|
|
||||||
class WOD: #WiiOpticalDisc
|
class WOD: #WiiOpticalDisc
|
||||||
def __init__(self, f):
|
def __init__(self, f):
|
||||||
self.f = f
|
self.f = f
|
||||||
|
|
||||||
|
|
||||||
class fsentry:
|
class fsentry:
|
||||||
name = ""
|
name = ""
|
||||||
parent = None
|
parent = None
|
||||||
@ -82,7 +90,7 @@ class WOD: #WiiOpticalDisc
|
|||||||
self.tmd = TMD("tmd")
|
self.tmd = TMD("tmd")
|
||||||
|
|
||||||
|
|
||||||
|
print tmd.getIOSVersion()
|
||||||
|
|
||||||
|
|
||||||
fst.seek(dataoffs)
|
fst.seek(dataoffs)
|
||||||
|
7
nand.py
7
nand.py
@ -1,9 +1,14 @@
|
|||||||
import os, hashlib, struct, subprocess, fnmatch, shutil, urllib, array
|
import os, hashlib, struct, subprocess, fnmatch, shutil, urllib, array
|
||||||
import wx
|
import wx
|
||||||
from Crypto.Cipher import AES
|
|
||||||
import png
|
import png
|
||||||
|
|
||||||
|
from Crypto.Cipher import AES
|
||||||
from Struct import Struct
|
from Struct import Struct
|
||||||
|
|
||||||
|
from common import *
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class NAND:
|
class NAND:
|
||||||
"""This class performs all NAND related things. It includes functions to copy a title (given the TMD) into the correct structure as the Wii does, and will eventually have an entire ES-like system. Parameter f to the initializer is the folder that will be used as the NAND root."""
|
"""This class performs all NAND related things. It includes functions to copy a title (given the TMD) into the correct structure as the Wii does, and will eventually have an entire ES-like system. Parameter f to the initializer is the folder that will be used as the NAND root."""
|
||||||
def __init__(self, f):
|
def __init__(self, f):
|
||||||
|
6
title.py
6
title.py
@ -1,9 +1,13 @@
|
|||||||
import os, hashlib, struct, subprocess, fnmatch, shutil, urllib, array
|
import os, hashlib, struct, subprocess, fnmatch, shutil, urllib, array
|
||||||
import wx
|
import wx
|
||||||
from Crypto.Cipher import AES
|
|
||||||
import png
|
import png
|
||||||
|
|
||||||
|
from Crypto.Cipher import AES
|
||||||
from Struct import Struct
|
from Struct import Struct
|
||||||
|
|
||||||
|
from common import *
|
||||||
|
|
||||||
|
|
||||||
class Ticket:
|
class Ticket:
|
||||||
"""Creates a ticket from the filename defined in f. This may take a longer amount of time than expected, as it also decrypts the title key. Now supports Korean tickets (but their title keys stay Korean on dump)."""
|
"""Creates a ticket from the filename defined in f. This may take a longer amount of time than expected, as it also decrypts the title key. Now supports Korean tickets (but their title keys stay Korean on dump)."""
|
||||||
class TicketStruct(Struct):
|
class TicketStruct(Struct):
|
||||||
|
Loading…
Reference in New Issue
Block a user