Changes

2,294 bytes added ,  17:02, 18 June 2013
no edit summary
Line 1: Line 1: −
3DS使用SD卡来储存附加的游戏数据、音乐以及用3DS拍摄的照片。
+
== 概述 ==
 +
3DS使用SD卡存储游戏数据、音乐以及使用3DS拍摄的照片和视频
 +
 
 +
SD卡
 +
├── DCIM 目录
 +
└── Nintendo 3DS 目录
 +
    ├── <ID0>
 +
    │  └── <ID1>
 +
    │      ├── [[SD数据备份]]
 +
    │      ├── [[Title Database|dbs]]
 +
    │      ├── [[extdata]]
 +
    │      ├── [[Title Data Structure|title]]
 +
    │      └── [[DSiWare_Exports|Nintendo DSiWare]]
 +
    └── [[SD Filesystem#Private|Private]]
 +
   
 +
* 存储在sdmc/Nintendo 3DS/<ID0>/<ID1>目录下的所有数据都是console-unique [[AES|keyslots]]加密的, 存储在 [[Flash Filesystem|nand/data/<ID0>]] 目录下的文件只用于MAC keyslots. 这些目录的CTR文件都使用 [[nand/private/movable.sed]] 初始化keyslots.
 +
* ID0 是SHA256 [[nand/private/movable.sed|hash]] 的前 0x10-bytes from .
 +
* ID1是从SD卡初始化创建的CID获得的。从CID生存目录名,首先把生成该目录名称的CID翻转8位到左边,然后每个U16以下表所示的方式加密:
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Input rotated CID u16 index
 +
!  Output CID u16 index
 +
|-
 +
|  6
 +
|  0
 +
|-
 +
|  7
 +
|  1
 +
|-
 +
|  4
 +
|  2
 +
|-
 +
|  5
 +
|  3
 +
|-
 +
|  2
 +
|  4
 +
|-
 +
|  3
 +
|  5
 +
|-
 +
|  0
 +
|  6
 +
|-
 +
|  1
 +
|  7
 +
|}
 +
 
 +
 
 +
'''DCIM''' - [[Nintendo 3DS Camera]]拍摄的相片和影片存储在这里. 网络浏览器下载的图像也存储在这里。
 +
 
 +
Note: 播放/录制 (3D)视频是在[[3.0.0-5]]系统新增的功能.3D视频是MJPG编码的avi格式的文件。
 +
 
 +
'''SD数据备份''' - 这个目录包含了SD Title 的数据备份。欲了解更多信息,请参阅[[SD数据备份]]。
 +
 
 +
'''dbs''' - 包含安装于SD卡中title相关的数据库. 这些文件是加密的,详见[[Title Database]]。
 +
 
 +
'''title''' - 安装于SD卡中的title.这个目录的所有数据是 [[AES|keyslot]] console-unique加密的. SD卡中的title列表可以在 [[Title list]] 查看. title数据结构的更多信息,请参阅 [[Title Data Structure]]。
 +
 
 +
'''Nintendo DSiWare''' - DSiWare titles 详见 [[DSiWare_Exports|exported]]。
 +
 
 +
 
   −
/DCIM - 照片及因特网浏览器(Internet Browser)下载的图像。
  −
/Music - 音乐文件。
  −
/Nintendo 3DS - 游戏数据。
     −
/DCIM 在[[3.0.0-5]]版本中也存储.avi格式的3D视频,视频框架为MJPG。
  −
(with [[3.0.0-5]] also stores .avi 3D videos from the camera title, video frames use MJPG.)
      
== Extdata ==
 
== Extdata ==
Line 67: Line 124:  
(The above title directories contain two dirs: content and data. content contains 00000000.tmd, .app files, and some cmd dir containing 00000001.cmd, all of which are encrypted with a console-unique key. The data dir contains 00000001.sav, this is the title's encrypted savegame. Although these saves look similar to FLASH savegames, these savegames use proper unique CTR for each AES block in the file, and the CTR properly changes for each savegame write. Renaming these savegames causes home-menu to hang while launching titles, modifying saves throws the usual checksum/hash corruption like gamecard flash saves.)
 
(The above title directories contain two dirs: content and data. content contains 00000000.tmd, .app files, and some cmd dir containing 00000001.cmd, all of which are encrypted with a console-unique key. The data dir contains 00000001.sav, this is the title's encrypted savegame. Although these saves look similar to FLASH savegames, these savegames use proper unique CTR for each AES block in the file, and the CTR properly changes for each savegame write. Renaming these savegames causes home-menu to hang while launching titles, modifying saves throws the usual checksum/hash corruption like gamecard flash saves.)
   −
When renaming ''any'' of these files/dir under content, the icon in home-menu is still displayed. Modifying any of these files has same result as renaming them. When renaming the cmd dir/cmd file, or 00000000.app, the 3D banner isn't displayed. When renaming the cmd dir or the file contained in that dir, home-menu will refuse to run the title, and the manual will not work.(will display the black screen saying sdcard isn't inserted) Manual won't load when 00000001.app is renamed, so that .app might be the manual? When the main 00000000.app binary is renamed, the title will not launch and in the manual placeholder text is used for the title name/icon. Home-menu doesn't care at all when tmd is renamed.
+
重命名content文件夹下任意文件或目录的时候,主菜单上的图标仍会被显示。修改这些文件与重命名有同样效果。重命名cmd文件夹下的cmd文件,或 00000000.app ,则3D标题会消失。重命名cmd目录或目录下的文件时,主菜单会拒绝运行游戏程序,说明书(译者注:即菜单里的软件说明书,3DSware和马里奥大陆3D这样的游戏会自带)将无法工作。(会显示“SD卡未插入”的黑屏)。重命名 00000001.app时,说明书将不会被载入,因此 .app 可能是说明书?主 00000000.app 二进制文件被重命名的时候,无法启动该游戏程序,并且显示说明书的地方将显示游戏程序的图标和标题。(译者注:这段按本人理解翻译,有兴趣的可以亲自试验一下,记得先备份SD卡内容)重命名tmp文件夹里面的文件将不会引起主菜单的任何改变。
 +
 
 +
(When renaming ''any'' of these files/dir under content, the icon in home-menu is still displayed. Modifying any of these files has same result as renaming them. When renaming the cmd dir/cmd file, or 00000000.app, the 3D banner isn't displayed. When renaming the cmd dir or the file contained in that dir, home-menu will refuse to run the title, and the manual will not work.(will display the black screen saying sdcard isn't inserted) Manual won't load when 00000001.app is renamed, so that .app might be the manual? When the main 00000000.app binary is renamed, the title will not launch and in the manual placeholder text is used for the title name/icon. Home-menu doesn't care at all when tmd is renamed.
    
== Private ==
 
== Private ==
"Private" 数据保存在这里:
+
保存在这里的Private数据似乎是明文:
 
   
  /Nintendo 3DS/Private/<Title ID Low>/
 
  /Nintendo 3DS/Private/<Title ID Low>/
   Line 77: Line 135:  
  00020500 - Nintendo 3DS Sound
 
  00020500 - Nintendo 3DS Sound
   −
 
+
camera private 目录是 [[phtcache.bin]].
3DS的Sound/Canera "Private"数据是明文(cleartext)。
+
想在3DS放入并能查看图片的时候,重命名为8位数字的mpo文件并保存到/DCIM目录下。
camera 私有目录下是 [[phtcache.bin]], 似乎是SD卡上图片的列表?
+
sound private 目录是 voice/XX/*.m4a. 这里的XX是01-10,存储为m4a文件.
当你想在3DS放入并能查看到新图片的时候,重命名为8位数字的.mpo并保存到/DCIM目录下。
  −
 
  −
(When you want to install and see pictures with 3DS,rename to 8 numbers.mpo and save it on /DCIM .)
  −
 
  −
Sound目录下是: voice/XX/*.m4a.XX为01-10,保存着名为 .m4a的声音文件。
  −
 
  −
(Under the sound priv dir is: voice/XX/*.m4a. Where XX is 01-10, with sound saved as .m4a.)
 
155

edits