Persona Talk and Demom Talk tables addr
TODO! Demon MultiFile IMPORT!
This commit is contained in:
@@ -1216,27 +1216,22 @@ rleEnd:
|
|||||||
Update0032SummonScriptTable(addresses) 'summon scripts table in 0032 & 33. Summon and mutation code
|
Update0032SummonScriptTable(addresses) 'summon scripts table in 0032 & 33. Summon and mutation code
|
||||||
|
|
||||||
|
|
||||||
|
Case 862
|
||||||
|
UpdateCharContactFileTable(addresses, &H4B1B8) 'Updating Personas contact filetable
|
||||||
Case 863
|
Case 863
|
||||||
UpdateCharContactFileTable(addresses) 'Updating Char contact
|
UpdateCharContactFileTable(addresses, &H4A98C) 'Updating Char contact filetable
|
||||||
|
Case 864
|
||||||
|
UpdateCharContactFileTable(addresses, &H4AD9C) 'Updating Demons contact filetable
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'SaveFile To Sector
|
'SaveFile To Sector
|
||||||
Dim cd = New ISOTools
|
Dim cd = New ISOTools
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Dim f = getFilnam()
|
Dim f = getFilnam()
|
||||||
|
|
||||||
'My.Computer.FileSystem.WriteAllBytes(savFile, finalPack.ToArray, False)
|
'My.Computer.FileSystem.WriteAllBytes(savFile, finalPack.ToArray, False)
|
||||||
cd.saveCDfile(f, importSector.Text, finalPack.Count, finalPack.ToArray)
|
cd.saveCDfile(f, importSector.Text, finalPack.Count, finalPack.ToArray)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'Update SectorNumber and FileSize In FileArray
|
'Update SectorNumber and FileSize In FileArray
|
||||||
files1(CDFileList.SelectedIndex).Sizw = finalPack.Count
|
files1(CDFileList.SelectedIndex).Sizw = finalPack.Count
|
||||||
files1(CDFileList.SelectedIndex).Sector = importSector.Text
|
files1(CDFileList.SelectedIndex).Sector = importSector.Text
|
||||||
@@ -1244,22 +1239,17 @@ rleEnd:
|
|||||||
'Update FileTable In ISO
|
'Update FileTable In ISO
|
||||||
cd.UpdateFileListTable(f, files1)
|
cd.UpdateFileListTable(f, files1)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'Done
|
'Done
|
||||||
MsgBox(String.Format("Imported {0} files in {1} - {2} bytes", UBound(OpenFileDialog1.FileNames) + 1, CDFileList.SelectedIndex, finalPack.Count), MsgBoxStyle.Exclamation)
|
MsgBox(String.Format("Imported {0} files in {1} - {2} bytes", UBound(OpenFileDialog1.FileNames) + 1, CDFileList.SelectedIndex, finalPack.Count), MsgBoxStyle.Exclamation)
|
||||||
End Sub
|
End Sub
|
||||||
Public Sub UpdateCharContactFileTable(ByRef addr As List(Of Integer))
|
Public Sub UpdateCharContactFileTable(ByRef addr As List(Of Integer), ByVal codeOffset As Integer)
|
||||||
|
|
||||||
Dim cd = New ISOTools
|
Dim cd = New ISOTools
|
||||||
Dim codeFile = cd.getCDfile(UserPath.Text, files1(789).Sector, files1(789).Sizw).ToArray() 'Battle Code
|
Dim codeFile = cd.getCDfile(UserPath.Text, files1(789).Sector, files1(789).Sizw).ToArray() 'Battle Code
|
||||||
Dim TableOffset = 305548
|
|
||||||
Dim curElement = 0
|
Dim curElement = 0
|
||||||
|
|
||||||
For a = 0 To addr.Count - 1
|
For a = 0 To addr.Count - 1
|
||||||
Dim curAddr = curElement * 4 + TableOffset
|
Dim curAddr = curElement * 4 + codeOffset
|
||||||
Dim value = BitConverter.ToUInt32(codeFile, curAddr)
|
Dim value = BitConverter.ToUInt32(codeFile, curAddr)
|
||||||
Dim origOffset = value And &H7FF
|
Dim origOffset = value And &H7FF
|
||||||
Dim origSectors = (value And &H1FFFFFF) >> &HB
|
Dim origSectors = (value And &H1FFFFFF) >> &HB
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user