1. cearp

    cearp 瓜老外
    Developer

    Joined:
    May 26, 2008
    Messages:
    8,427
    Country:
    Tuvalu
    savedatafiler, it does everything you will ever need for saves
     
  2. Akira

    Akira I'm not a SHRIMP!!!!
    Member

    Joined:
    Apr 28, 2013
    Messages:
    1,249
    Country:
    United States
    Do I need to insert the game cartridge to back up all my saves? I can't seem to find all my other saves except for the e-shop installed games and the one which is currently inserted on my 3DS.

    Please help
     
  3. Xenosaiga

    Xenosaiga Time to switch it up
    Member

    Joined:
    Oct 9, 2015
    Messages:
    1,501
    Country:
    United States
    So I've been looking and apparently savedatafiler is mainly for gateway users... And from my understanding, gateway is where you run off a specialized game cartridge.

    I'm not doing that. I have an actual Omega Ruby game cartridge. And I want to transfer its data to my CIA version of Omega Ruby.
     
  4. Fureshyu

    Fureshyu GBAtemp Regular
    Member

    Joined:
    Nov 20, 2015
    Messages:
    149
    Country:
    United States
    I have a game cartridge of Fire Emblem If: Hoshido Version and I want to extract the saves I have on there onto my .cia version of the Special Edition however whenever I boot up SVDT on the cartridge, it freezes on the yellow screen. I can't play it either on regionfour on the homebrew app. What can I do to extract the save I have on there?
     
  5. A_Random_Guy

    A_Random_Guy Officially That Dev
    Member

    Joined:
    May 22, 2015
    Messages:
    859
    Country:
    Malaysia
    savedatafiller is a save extractor that can extract saves from REAL CARTRIDGES and CIAs. Gateway emulate the catridge slot with the Gateway Red Card
     
  6. DarkenedMatter

    DarkenedMatter GBAtemp Advanced Fan
    Member

    Joined:
    Jul 26, 2013
    Messages:
    591
    Country:
    United States
    Can't you use 3DS Action Replay to get the save from the cartridge?
     
  7. cearp

    cearp 瓜老外
    Developer

    Joined:
    May 26, 2008
    Messages:
    8,427
    Country:
    Tuvalu
    ok.
    then use savadatafiler.
    it's a nintendo tool. not specialized for gw in anyway way :)
     
  8. tobiobito

    tobiobito Member
    Newcomer

    Joined:
    Jan 4, 2016
    Messages:
    41
    Country:
    United States
    Hey I am trying to compile the program however I get quite a few errors mind pointing me in the right direction?

    c:\devkitPro\projects\svdt-master>make
    filesystem.c
    arm-none-eabi-gcc -MMD -MP -MF /c/devkitPro/projects/svdt-master/build/filesystem.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/devkitPro/projects/svdt-master/include -I/c/devkitPro/ctrulib/libctru/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/libctru/include -I/c/devkitPro/projects/svdt-master/build -DARM11 -D_3DS -c /c/devkitPro/projects/svdt-master/source/filesystem.c -o filesystem.o
    In file included from c:/devkitPro/projects/svdt-master/source/filesystem.c:7:0:
    c:/devkitPro/projects/svdt-master/source/filesystem.h:5:8: error: unknown type name 'FS_archive'
    extern FS_archive saveGameArchive, sdmcArchive;
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.h:10:45: error: unknown type name 'FS_archive'
    Result FSUSER_ControlArchive(Handle handle, FS_archive archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.h:12:40: error: unknown type name 'FS_archive'
    Result loadFile(char* path, void* dst, FS_archive* archive, Handle* fsHandle, u64 maxSize);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.h:13:50: error: unknown type name 'FS_archive'
    Result writeFile(char* path, u8* data, u32 size, FS_archive* archive, Handle* fsHandle);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.h:14:31: error: unknown type name 'FS_archive'
    Result deleteFile(char* path, FS_archive* archive, Handle* fsHandle);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.h:15:26: error: unknown type name 'FS_archive'
    u64 sizeFile(char* path, FS_archive* archive, Handle* fsHandle);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.h:19:65: error: unknown type name 'FS_archive'
    Result doesFileNotExist(const char* filename, Handle* fsHandle, FS_archive archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:10:1: error: unknown type name 'FS_archive'
    FS_archive saveGameArchive, sdmcArchive;
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:14:5: error: unknown type name 'FS_dirent'
    FS_dirent thisLine;
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c: In function 'filesystemInit':
    c:/devkitPro/projects/svdt-master/source/filesystem.c:49:26: warning: passing argument 1 of 'FSUSER_Initialize' makes integer from pointer without a cast [-Wint-conversion]
    ret = FSUSER_Initialize(&saveGameFsHandle);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:279:8: note: expected 'Handle {aka long unsigned int}' but argument is of type 'Handle * {aka long unsigned int *}'
    Result FSUSER_Initialize(Handle session);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:55:21: error: 'FS_archive' undeclared (first use in this function)
    saveGameArchive = (FS_archive){0x00000004, (FS_path){PATH_EMPTY, 1, (u8*)""}};
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:55:21: note: each undeclared identifier is reported only once for each function it appears in
    c:/devkitPro/projects/svdt-master/source/filesystem.c:55:32: error: expected ';' before '{' token
    saveGameArchive = (FS_archive){0x00000004, (FS_path){PATH_EMPTY, 1, (u8*)""}};
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:56:27: warning: passing argument 1 of 'FSUSER_OpenArchive' from incompatible pointer type [-Wincompatible-pointer-types]
    ret = FSUSER_OpenArchive(&saveGameFsHandle, &saveGameArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:369:8: note: expected 'FS_Archive * {aka struct <anonymous> *}' but argument is of type 'Handle * {aka long unsigned int *}'
    Result FSUSER_OpenArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:56:8: error: too many arguments to function 'FSUSER_OpenArchive'
    ret = FSUSER_OpenArchive(&saveGameFsHandle, &saveGameArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:369:8: note: declared here
    Result FSUSER_OpenArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:58:28: error: expected ';' before '{' token
    sdmcArchive = (FS_archive){0x00000009, (FS_path){PATH_EMPTY, 1, (u8*)""}};
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:59:27: warning: passing argument 1 of 'FSUSER_OpenArchive' from incompatible pointer type [-Wincompatible-pointer-types]
    ret = FSUSER_OpenArchive(&sdmcFsHandle, &sdmcArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:369:8: note: expected 'FS_Archive * {aka struct <anonymous> *}' but argument is of type 'Handle * {aka long unsigned int *}'
    Result FSUSER_OpenArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:59:8: error: too many arguments to function 'FSUSER_OpenArchive'
    ret = FSUSER_OpenArchive(&sdmcFsHandle, &sdmcArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:369:8: note: declared here
    Result FSUSER_OpenArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c: In function 'filesystemExit':
    c:/devkitPro/projects/svdt-master/source/filesystem.c:68:28: warning: passing argument 1 of 'FSUSER_CloseArchive' from incompatible pointer type [-Wincompatible-pointer-types]
    ret = FSUSER_CloseArchive(&saveGameFsHandle, &saveGameArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:386:8: note: expected 'FS_Archive * {aka struct <anonymous> *}' but argument is of type 'Handle * {aka long unsigned int *}'
    Result FSUSER_CloseArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:68:8: error: too many arguments to function 'FSUSER_CloseArchive'
    ret = FSUSER_CloseArchive(&saveGameFsHandle, &saveGameArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:386:8: note: declared here
    Result FSUSER_CloseArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:69:28: warning: passing argument 1 of 'FSUSER_CloseArchive' from incompatible pointer type [-Wincompatible-pointer-types]
    ret = FSUSER_CloseArchive(&sdmcFsHandle, &sdmcArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:386:8: note: expected 'FS_Archive * {aka struct <anonymous> *}' but argument is of type 'Handle * {aka long unsigned int *}'
    Result FSUSER_CloseArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:69:8: error: too many arguments to function 'FSUSER_CloseArchive'
    ret = FSUSER_CloseArchive(&sdmcFsHandle, &sdmcArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:386:8: note: declared here
    Result FSUSER_CloseArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c: In function 'filesystemSoftReset':
    c:/devkitPro/projects/svdt-master/source/filesystem.c:81:28: warning: passing argument 1 of 'FSUSER_CloseArchive' from incompatible pointer type [-Wincompatible-pointer-types]
    ret = FSUSER_CloseArchive(&saveGameFsHandle, &saveGameArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:386:8: note: expected 'FS_Archive * {aka struct <anonymous> *}' but argument is of type 'Handle * {aka long unsigned int *}'
    Result FSUSER_CloseArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:81:8: error: too many arguments to function 'FSUSER_CloseArchive'
    ret = FSUSER_CloseArchive(&saveGameFsHandle, &saveGameArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:386:8: note: declared here
    Result FSUSER_CloseArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:82:28: warning: passing argument 1 of 'FSUSER_CloseArchive' from incompatible pointer type [-Wincompatible-pointer-types]
    ret = FSUSER_CloseArchive(&sdmcFsHandle, &sdmcArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:386:8: note: expected 'FS_Archive * {aka struct <anonymous> *}' but argument is of type 'Handle * {aka long unsigned int *}'
    Result FSUSER_CloseArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:82:8: error: too many arguments to function 'FSUSER_CloseArchive'
    ret = FSUSER_CloseArchive(&sdmcFsHandle, &sdmcArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:386:8: note: declared here
    Result FSUSER_CloseArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:84:21: error: 'FS_archive' undeclared (first use in this function)
    saveGameArchive = (FS_archive){0x00000004, (FS_path){PATH_EMPTY, 1, (u8*)""}};
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:84:32: error: expected ';' before '{' token
    saveGameArchive = (FS_archive){0x00000004, (FS_path){PATH_EMPTY, 1, (u8*)""}};
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:85:27: warning: passing argument 1 of 'FSUSER_OpenArchive' from incompatible pointer type [-Wincompatible-pointer-types]
    ret = FSUSER_OpenArchive(&saveGameFsHandle, &saveGameArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:369:8: note: expected 'FS_Archive * {aka struct <anonymous> *}' but argument is of type 'Handle * {aka long unsigned int *}'
    Result FSUSER_OpenArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:85:8: error: too many arguments to function 'FSUSER_OpenArchive'
    ret = FSUSER_OpenArchive(&saveGameFsHandle, &saveGameArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:369:8: note: declared here
    Result FSUSER_OpenArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:87:28: error: expected ';' before '{' token
    sdmcArchive = (FS_archive){0x00000009, (FS_path){PATH_EMPTY, 1, (u8*)""}};
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:88:27: warning: passing argument 1 of 'FSUSER_OpenArchive' from incompatible pointer type [-Wincompatible-pointer-types]
    ret = FSUSER_OpenArchive(&sdmcFsHandle, &sdmcArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:369:8: note: expected 'FS_Archive * {aka struct <anonymous> *}' but argument is of type 'Handle * {aka long unsigned int *}'
    Result FSUSER_OpenArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:88:8: error: too many arguments to function 'FSUSER_OpenArchive'
    ret = FSUSER_OpenArchive(&sdmcFsHandle, &sdmcArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:369:8: note: declared here
    Result FSUSER_OpenArchive(FS_Archive* archive);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c: At top level:
    c:/devkitPro/projects/svdt-master/source/filesystem.c:93:45: error: unknown type name 'FS_archive'
    Result FSUSER_ControlArchive(Handle handle, FS_archive archive)
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:132:40: error: unknown type name 'FS_archive'
    Result loadFile(char* path, void* dst, FS_archive* archive, Handle* fsHandle, u64 maxSize)
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:159:50: error: unknown type name 'FS_archive'
    Result writeFile(char* path, u8* data, u32 size, FS_archive* archive, Handle* fsHandle)
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:186:31: error: unknown type name 'FS_archive'
    Result deleteFile(char* path, FS_archive* archive, Handle* fsHandle)
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:201:26: error: unknown type name 'FS_archive'
    u64 sizeFile(char* path, FS_archive* archive, Handle* fsHandle)
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c: In function 'readBytesFromSaveFile':
    c:/devkitPro/projects/svdt-master/source/filesystem.c:223:74: warning: implicit declaration of function 'FS_makePath' [-Wimplicit-function-declaration]
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:223:86: error: 'PATH_CHAR' undeclared (first use in this function)
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:223:122: error: 'FS_ATTRIBUTE_NONE' undeclared (first use in this function)
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:223:44: error: incompatible type for argument 2 of 'FSUSER_OpenFile'
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:289:8: note: expected 'FS_Archive {aka struct <anonymous>}' but argument is of type 'Handle * {aka long unsigned int *}'
    Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:223:57: error: incompatible type for argument 3 of 'FSUSER_OpenFile'
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:289:8: note: expected 'FS_Path {aka struct <anonymous>}' but argument is of type 'int'
    Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:223:9: error: too many arguments to function 'FSUSER_OpenFile'
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:289:8: note: declared here
    Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c: In function 'writeBytesToSaveFile':
    c:/devkitPro/projects/svdt-master/source/filesystem.c:238:86: error: 'PATH_CHAR' undeclared (first use in this function)
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_WRITE | FS_OPEN_CREATE, FS_ATTRIBUTE_NONE);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:238:140: error: 'FS_ATTRIBUTE_NONE' undeclared (first use in this function)
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_WRITE | FS_OPEN_CREATE, FS_ATTRIBUTE_NONE);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:238:44: error: incompatible type for argument 2 of 'FSUSER_OpenFile'
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_WRITE | FS_OPEN_CREATE, FS_ATTRIBUTE_NONE);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:289:8: note: expected 'FS_Archive {aka struct <anonymous>}' but argument is of type 'Handle * {aka long unsigned int *}'
    Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:238:57: error: incompatible type for argument 3 of 'FSUSER_OpenFile'
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_WRITE | FS_OPEN_CREATE, FS_ATTRIBUTE_NONE);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:289:8: note: expected 'FS_Path {aka struct <anonymous>}' but argument is of type 'int'
    Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:238:9: error: too many arguments to function 'FSUSER_OpenFile'
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_WRITE | FS_OPEN_CREATE, FS_ATTRIBUTE_NONE);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:289:8: note: declared here
    Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:247:33: error: incompatible type for argument 1 of 'FSUSER_ControlArchive'
    ret = FSUSER_ControlArchive(saveGameFsHandle, saveGameArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:380:8: note: expected 'FS_Archive {aka struct <anonymous>}' but argument is of type 'Handle {aka long unsigned int}'
    Result FSUSER_ControlArchive(FS_Archive archive, FS_ArchiveAction action, void* input, u32 inputSize, void* output, u32 outputSize);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:247:11: error: too few arguments to function 'FSUSER_ControlArchive'
    ret = FSUSER_ControlArchive(saveGameFsHandle, saveGameArchive);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:380:8: note: declared here
    Result FSUSER_ControlArchive(FS_Archive archive, FS_ArchiveAction action, void* input, u32 inputSize, void* output, u32 outputSize);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c: In function 'getSaveGameFileSize':
    c:/devkitPro/projects/svdt-master/source/filesystem.c:256:86: error: 'PATH_CHAR' undeclared (first use in this function)
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:256:122: error: 'FS_ATTRIBUTE_NONE' undeclared (first use in this function)
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:256:44: error: incompatible type for argument 2 of 'FSUSER_OpenFile'
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:289:8: note: expected 'FS_Archive {aka struct <anonymous>}' but argument is of type 'Handle * {aka long unsigned int *}'
    Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:256:57: error: incompatible type for argument 3 of 'FSUSER_OpenFile'
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:289:8: note: expected 'FS_Path {aka struct <anonymous>}' but argument is of type 'int'
    Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:256:9: error: too many arguments to function 'FSUSER_OpenFile'
    ret=FSUSER_OpenFile(&saveGameFsHandle, &fileHandle, saveGameArchive, FS_makePath(PATH_CHAR, filename), FS_OPEN_READ, FS_ATTRIBUTE_NONE);
    ^
    In file included from c:/devkitPro/libctru/include/3ds.h:37:0,
    from c:/devkitPro/projects/svdt-master/source/filesystem.c:5:
    c:/devkitPro/libctru/include/3ds/services/fs.h:289:8: note: declared here
    Result FSUSER_OpenFile(Handle* out, FS_Archive archive, FS_Path path, u32 openFlags, u32 attributes);
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c: At top level:
    c:/devkitPro/projects/svdt-master/source/filesystem.c:270:65: error: unknown type name 'FS_archive'
    Result doesFileNotExist(const char* filename, Handle* fsHandle, FS_archive archive)
    ^
    make[1]: *** [filesystem.o] Error 1
    make: *** [build] Error 2
     
    Last edited by tobiobito, Jan 13, 2016
  9. Slashcash

    Slashcash GBAtemp Fan
    Member

    Joined:
    Oct 15, 2015
    Messages:
    338
    Country:
    Italy
    It is written with an old version of ctrulib, and you're compiling it with the new version
     
  10. tobiobito

    tobiobito Member
    Newcomer

    Joined:
    Jan 4, 2016
    Messages:
    41
    Country:
    United States
    ahh do you happen to know what version is needed?

    — Posts automatically merged - Please don't double post! —

    I downgraded to an early version now I have this error
    c:\devkitPro\projects\svdt-master>make
    filesystem.c
    arm-none-eabi-gcc -MMD -MP -MF /c/devkitPro/projects/svdt-master/build/filesystem.d -g -Wall -O2 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/devkitPro/projects/svdt-master/include -I/c/devkitPro/ctrulib/libctru/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/libctru/include -I/c/devkitPro/projects/svdt-master/build -DARM11 -D_3DS -c /c/devkitPro/projects/svdt-master/source/filesystem.c -o filesystem.o
    c:/devkitPro/projects/svdt-master/source/filesystem.c: In function '_srvGetServiceHandle':
    c:/devkitPro/projects/svdt-master/source/filesystem.c:36:31: warning: implicit declaration of function 'srvGetSessionHandle' [-Wimplicit-function-declaration]
    if((rc = svcSendSyncRequest(*srvGetSessionHandle())))return rc;
    ^
    c:/devkitPro/projects/svdt-master/source/filesystem.c:36:30: error: invalid type argument of unary '*' (have 'int')
    if((rc = svcSendSyncRequest(*srvGetSessionHandle())))return rc;
    ^
    make[1]: *** [filesystem.o] Error 1
    make: *** [build] Error 2
     
  11. Slashcash

    Slashcash GBAtemp Fan
    Member

    Joined:
    Oct 15, 2015
    Messages:
    338
    Country:
    Italy
    Looking at the code i suppose it should compile with the r44 of devkitpro. Delete your devkitpro and reinstall everything.
     
  12. tobiobito

    tobiobito Member
    Newcomer

    Joined:
    Jan 4, 2016
    Messages:
    41
    Country:
    United States
    ahh darn too much work before work so I'll work on it later thanks for all the help :)
     
  13. RastaJedi

    RastaJedi Newbie
    Newcomer

    Joined:
    Jan 14, 2016
    Messages:
    3
    Country:
    United States
    What exactly is 'asr.dat'? I've tried searching the forums and on Google and just can't really find anything about it.
     
  14. Februarysn0w

    Februarysn0w GBAtemp Maniac
    Member

    Joined:
    Oct 31, 2014
    Messages:
    1,205
    Country:
    Japan
    there is some game id that has ars.
     
  15. tylerxian

    tylerxian GBAtemp Regular
    Member

    Joined:
    Jan 7, 2009
    Messages:
    170
    Country:
    United States
    Is there a tutorial on converting cart save files to the cia version of games? The closest one I've found here had mostly to do with Gateway and wasn't that straightforward.
     
  16. RyanVashEngstrom

    Newcomer

    Joined:
    Sep 12, 2012
    Messages:
    36
    could this be used to back up the activity log?
     
  17. Hihomaster

    Hihomaster GBAtemp Regular
    Member

    Joined:
    Jun 25, 2008
    Messages:
    184
    Country:
    France
    is it possible to backup a save from a cia and inject it to another cia? i'm struggling to transfer my mario paper jam save from my o3ds to my n3ds
     
  18. cearp

    cearp 瓜老外
    Developer

    Joined:
    May 26, 2008
    Messages:
    8,427
    Country:
    Tuvalu
  19. Hihomaster

    Hihomaster GBAtemp Regular
    Member

    Joined:
    Jun 25, 2008
    Messages:
    184
    Country:
    France
  20. ihaveamac

    ihaveamac GBAtemp Guru
    Member

    Joined:
    Apr 20, 2015
    Messages:
    5,938
    Country:
    United States
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - explorer, manager,