In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "/shared2"

From WiiBrew
Jump to navigation Jump to search
(Used official names for the NAND permissions)
m (Replaced another OpenFilePrivileged)
Line 7: Line 7:
 
'''/shared2''' is a general purpose directory used as a shared savefile-like space, much like how [[:/shared1]] holds shared title contents. It was probably created later in the Wii's development, since some shared files are instead in the [[System Menu]]'s savefile ([[:/title/00000001/00000002/data]]).
 
'''/shared2''' is a general purpose directory used as a shared savefile-like space, much like how [[:/shared1]] holds shared title contents. It was probably created later in the Wii's development, since some shared files are instead in the [[System Menu]]'s savefile ([[:/title/00000001/00000002/data]]).
  
The NAND SDK library seems to deny access to /shared2 through the main <code>NANDOpen</code>, although a separate function (<code>NANDPrivateOpen</code>) exists without this restriction, and due to the lack of memory protection in [[Revolution OS]], <code>OpenFilePrivileged</code> can be freely called.
+
The NAND SDK library seems to deny access to /shared2 through the main <code>NANDOpen</code>, although a separate function (<code>NANDPrivateOpen</code>) exists without this restriction, and due to the lack of memory protection in [[Revolution OS]], <code>NANDPrivateOpen</code> can be freely called.
  
 
A quick (and incomplete) overview of the containing folders:
 
A quick (and incomplete) overview of the containing folders:

Revision as of 20:48, 7 January 2022

/shared2
TypeDirectory
OwnerIOS
Group ID0

/shared2 is a general purpose directory used as a shared savefile-like space, much like how /shared1 holds shared title contents. It was probably created later in the Wii's development, since some shared files are instead in the System Menu's savefile (/title/00000001/00000002/data).

The NAND SDK library seems to deny access to /shared2 through the main NANDOpen, although a separate function (NANDPrivateOpen) exists without this restriction, and due to the lack of memory protection in Revolution OS, NANDPrivateOpen can be freely called.

A quick (and incomplete) overview of the containing folders:

  • /menu/FaceLib/RFL_DB.dat - this is the database-file where Mii's are stored
  • /sys/net/dhcp.dat - This file contains IP-addresses used by the Wii when connecting to the internet
  • /sys/NANDBOOTINFO - This file keeps state about what title was most recently launched by the System Menu.
  • /expired - contains something like a PlayTime-limit? (Reference: OSPlayTime.c - PlayTime: %d seconds left [found in mariokart-channel])
  • /test2/dvderror.dat - This file keeps track of disc drive errors
  • /test2/nanderr.log - This file presumably keeps track of NAND errors
  • /ec - State kept by the Wii Store (EC = "Electronic Commerce", probably)
  • /succession - contains shop.log and transfer.id, both presumably have something to do with the shop channel.
  • /menu - Public state managed by the system menu