Changes

Jump to navigation Jump to search
732 bytes added ,  02:42, 5 January 2015
Line 819: Line 819:  
|  
 
|  
 
|  
 
|  
| [[Filesystem_services|FSUSER:GetCardType]] is used here. AM commands are then used to check whether a gamecard is inserted, when a gamecard is inserted  the gamecard ExeFS:/icon is then read to check the auto-boot flag(see the auto-boot section on this page). The system-setup-required flag is then read here if needed, as mentioned under the auto-boot section of this page.
+
| [[Filesystem_services|FSUSER:GetCardType]] is used here. AM commands are then used to get the inserted gamecard programID, when successful the gamecard ExeFS:/icon is then read to check the auto-boot flag(see the auto-boot section on this page). The system-setup-required flag is then read here if needed, as mentioned under the auto-boot section of this page.
 
|-
 
|-
 
|  
 
|  
Line 946: Line 946:  
| Prior to doing the read, Home Menu uses [[FSFile:GetSize]].
 
| Prior to doing the read, Home Menu uses [[FSFile:GetSize]].
 
|-
 
|-
| NAND extdata 0xf000000b
  −
| "/CFL_OldDB.dat"
   
|  
 
|  
| Home Menu just closes this file immediately after opening it, when opening it was successful at least.
+
|
 +
|
 +
| Home Menu opens NAND shared extdata archive 0xf000000b again.
 
|-
 
|-
 
| NAND extdata 0xf000000b
 
| NAND extdata 0xf000000b
Line 957: Line 957:  
|-
 
|-
 
| NAND extdata 0xf000000b
 
| NAND extdata 0xf000000b
| "/gamecoin.dat"
+
| "/CFL_OldDB.dat"
 +
|
 +
| Home Menu just closes this file immediately after opening it, when opening it was successful at least.
 +
|-
 +
|
 +
|
 +
|
 +
| Home Menu loads the [[Config_Savegame|cfg]] data for blkID 0x000C0000 here.
 +
|-
 +
|
 +
|
 +
|
 +
| Home Menu opens NAND shared extdata archive 0xf000000b again.
 +
|-
 +
| NAND extdata 0xf000000b
 +
| [[Extdata|"/gamecoin.dat"]]
 
| 0x14
 
| 0x14
| This is for loading the file containing play-coins info. Immediately after reading this file, Home Menu then uses [[FSFile:GetSize]], then Home Menu writes to gamecoin.dat for updating the date data.
+
| Home Menu first tries to use [[FS:CreateFile]] with this, which will fail when the file already exists. This file is then opened with openflags=RW. After reading this file, Home Menu then uses [[PTM:GetTotalStepCount]], then uses [[FSFile:GetSize]]. Then the service handle for [[NDM_Services|"ndm:u"]] is initialized with srv_GetServiceHandle(done from a separate thread perhaps?). Then Home Menu writes to the already opened gamecoin.dat file.
 +
|-
 +
|
 +
|
 +
|
 +
| [[Filesystem_services|FSUSER:CardSlotIsInserted]] and [[Filesystem_services|FSUSER:GetCardType]] is used here. AM commands are then used to get the inserted gamecard programID, when successful the gamecard ExeFS:/icon is then read.
 
|-
 
|-
 
| NAND [[extdata]] 0xf000000c
 
| NAND [[extdata]] 0xf000000c

Navigation menu