Found at 80011208

Summary

Request function that queues a load for the asset file pointed to by the CD library state.

Behavior

Using the CD Library context we will need the following variables:

  • the cdlib_asset_ptr which typically points to what is considered the first gameAssetEntry in a group.
  • the cdlib_asset_table_group_index which is used to index the group and get the gameAssetEntry we are interested in

Using the above variables we get the location of the asset file in the file archive index and the load address of where to load the file into ram. We get the position and size of the file through write_pos_size passing in the file archive index. The cdArg is then built using the position, load address and size of the file in sector count.

Enqueue the list of commands needed to load the file:

  • Set the bit for double speed all other bits to 0
  • Set the seek target position (set loc)
  • Execute a nop (probably to wait?)
  • Read the file from the Cd

Function Signature

Parameters: None

Returns: Int

Always 0

References

Calls

Sony Functions:
Custom Functions:

Called By

Memory Referenced