Load files from RomFS instead of SD (Homebrew Apps)?

Discussion in '3DS - Homebrew Development and Emulators' started by xXDungeon_CrawlerXx, Oct 19, 2015.

  1. xXDungeon_CrawlerXx
    OP

    xXDungeon_CrawlerXx GBAtemp Maniac

    Member
    1,187
    510
    Jul 29, 2015
    Liverpool
    Hey Guys,

    I want to know if it's possible to load files directly from the RomFS instead of the SD-Card when using CIAs.
    For Example: I have a Homebrew (with source) which loads files normally from "sdmc:/3ds/whatever", is it possible to load them from "romfs:/<FILE>"?

    I know that we can Build CIAs with RomFS by using this in rsf:
    Code:
    RomFs:
      RootPath                : <ROMFS-DIRECTORY>
    any idea?
     
  2. xXDungeon_CrawlerXx
    This message by xXDungeon_CrawlerXx has been removed from public view by Veho, Oct 20, 2015, Reason: NO BUMPING.
    Oct 20, 2015
  3. teampleb
    This message by teampleb has been removed from public view by Veho, Oct 20, 2015, Reason: Reply to trashed post.
    Oct 20, 2015
  4. TheCruel

    TheCruel Developer

    Banned
    1,351
    2,883
    Dec 6, 2013
    United States
    Yes. It's supported in ctrulib, just call romfsInit().

    3dsxtool and makerom both support romfs for your CIA and 3dsx homebrew. And citra now even supports emulating 3dsx files using romfs.
     
    Last edited by TheCruel, Oct 20, 2015
    xXDungeon_CrawlerXx likes this.
  5. xXDungeon_CrawlerXx
    OP

    xXDungeon_CrawlerXx GBAtemp Maniac

    Member
    1,187
    510
    Jul 29, 2015
    Liverpool
    Thank you! :)
    do you know the command for loading file: "romfs:/config.txt" for example? :P
     
  6. piratesephiroth

    piratesephiroth I wish I could read

    Member
    2,999
    1,612
    Sep 5, 2013
    Brazil
    xXDungeon_CrawlerXx likes this.
  7. xXDungeon_CrawlerXx
    OP

    xXDungeon_CrawlerXx GBAtemp Maniac

    Member
    1,187
    510
    Jul 29, 2015
    Liverpool