Menu

#29 Add information of availability of EFS

none
closed
Reylak
low
2013-12-15
2013-08-27
Reylak
No

We could add either a function or a variable inside System to tell if EFS is present. Probably something like System.EFS or System.isEFSAvailable(), which is true if we have an embedded file system.

On how to do this, I can imagine setting a macro on compilation (which is where we determine if an EFS will be appended to the .nds) using gcc's option -D. It would set ULUA_EFS so then when compiling main.c we have something that test the definition of the macro and push the right value into System.EFS accordingly.

I know we can test if 'efs:' can be accessed through System.changeCurrentDirectory() but a clean way is better.

Discussion

  • Reylak

    Reylak - 2013-09-21
    • status: accepted --> pending
    • assigned_to: Reylak
    • Priority: --> low
     
  • Reylak

    Reylak - 2013-12-15
    • status: pending --> closed
     
  • Reylak

    Reylak - 2013-12-15

    Done in [feaaf5] "Fix the too long startup."

    This commit adds the variable System.EFS, which is a boolean being true if there is an Embedded File System, and false otherwise.

     

    Related

    Commit: [feaaf5]

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.