FS:RenameDirectory: Difference between revisions

Steveice10 (talk | contribs)
Steveice10 (talk | contribs)
m Use common types, minor cleanup.
Line 1: Line 1:
Renames or moves a directory. The file is moved from the path srcDirLowPath in archive srcArchive to destDirLowPath in destArchive. ('''NOTE:''' Moving directories to different archives wasn't tested.)
=Request=
=Request=
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Index Word !! Description
! Index Word
|-
! Description
| 0 || Header code [0x080A0244]
|-
| 1 || Transaction (usually 0)
|-
|-
| 2 || srcArchive.handleLow
| 0
| Header code [0x080A0244]
|-
|-
| 3 || srcArchive.handleHigh
| 1
| Transaction (usually 0)
|-
|-
| 4 || srcDirLowPath.type
| 2-3
| u64, Source Archive Handle
|-
|-
| 5 || srcDirLowPath.size
| 4
| [[Filesystem_services#PathType|Source Directory Path Type]]
|-
|-
| 6 || destArchive.handleLow
| 5
| Source Directory Path Size
|-
|-
| 7 || destArchive.handleHigh
| 6-7
| u64, Destination Archive Handle
|-
|-
| 8 || destDirLowPath.type
| 8
| [[Filesystem_services#PathType|Destination Directory Path Type]]
|-
|-
| 9 || destDirLowPath.size
| 9
| Destination Directory Path Size
|-
|-
| 10 || (srcDirLowPath.size << 14) <nowiki>|</nowiki> 0x402
| 10
| (SourceDirectoryPathSize << 14) <nowiki>|</nowiki> 0x402
|-
|-
| 11 || srcDirLowPath.data
| 11
| Source Directory Path Data Pointer
|-
|-
| 12 || (destDirLowPath.size << 14) <nowiki>|</nowiki> 0x802
| 12
| (DestinationDirectoryPathSize << 14) <nowiki>|</nowiki> 0x802
|-
|-
| 13 || destDirLowPath.data
| 13
| Destination Directory Path Data Pointer
|}
|}


Line 38: Line 45:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Index Word !! Description
! Index Word
! Description
|-
|-
| 0 || Header code
| 0
| Header code
|-
|-
| 1 || Resultcode
| 1
| Result code
|}
|}
=Description=
Renames or moves a directory. The file is moved from the path srcDirLowPath in archive srcArchive to destDirLowPath in destArchive. ('''NOTE:''' Moving directories to different archives wasn't tested.)


=Errors=
=Errors=