Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,15 +724,15 @@ def MatchingFor(*versions):
Object(Matching, "revolution/VF/pf_fclose.c"),
Object(Matching, "revolution/VF/pf_finfo.c"),
Object(Matching, "revolution/VF/pf_fopen.c"),
Object(NonMatching, "revolution/VF/pf_format.c"),
Object(Matching, "revolution/VF/pf_format.c"),
Object(Matching, "revolution/VF/pf_fread.c"),
Object(Matching, "revolution/VF/pf_fseek.c"),
Object(NonMatching, "revolution/VF/pf_fsfirst.c"),
Object(NonMatching, "revolution/VF/pf_fsnext.c"),
Object(Matching, "revolution/VF/pf_fsfirst.c"),
Object(Matching, "revolution/VF/pf_fsnext.c"),
Object(Matching, "revolution/VF/pf_fwrite.c"),
Object(Matching, "revolution/VF/pf_getdev.c"),
Object(Matching, "revolution/VF/pf_init_prfile2.c"),
Object(NonMatching, "revolution/VF/pf_mkdir.c"),
Object(Matching, "revolution/VF/pf_mkdir.c"),
Object(Matching, "revolution/VF/pf_remove.c"),
Object(Matching, "revolution/VF/pf_unmount.c"),
Object(Matching, "revolution/VF/pf_filelock.c"),
Expand Down
4 changes: 4 additions & 0 deletions include/revolution/VF.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,15 @@ extern "C" {
#include <revolution/VF/pf_fclose.h>
#include <revolution/VF/pf_finfo.h>
#include <revolution/VF/pf_fopen.h>
#include <revolution/VF/pf_format.h>
#include <revolution/VF/pf_fread.h>
#include <revolution/VF/pf_fseek.h>
#include <revolution/VF/pf_fsfirst.h>
#include <revolution/VF/pf_fsnext.h>
#include <revolution/VF/pf_fwrite.h>
#include <revolution/VF/pf_getdev.h>
#include <revolution/VF/pf_init_prfile2.h>
#include <revolution/VF/pf_mkdir.h>
#include <revolution/VF/pf_remove.h>
#include <revolution/VF/pf_unmount.h>
#include <revolution/VF/pf_filelock.h>
Expand Down
3 changes: 3 additions & 0 deletions include/revolution/VF/pf_dir.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
extern "C" {
#endif

s32 VFiPFDIR_fsfirst(struct PF_STR* p_path, u8 attr, struct PF_DTA* p_dta);
s32 VFiPFDIR_fsnext(struct PF_DTA* p_dta);
s32 VFiPFDIR_mkdir(struct PF_STR* p_path);
void VFiPFDIR_FinalizeAllDirs(struct PF_VOLUME* p_vol);

#ifdef __cplusplus
Expand Down
13 changes: 13 additions & 0 deletions include/revolution/VF/pf_format.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef RVL_SDK_VF_PF_FORMAT_H
#define RVL_SDK_VF_PF_FORMAT_H
#include <types.h>
#ifdef __cplusplus
extern "C" {
#endif

int VFipf2_format(s8 drive, const u8* param);

#ifdef __cplusplus
}
#endif
#endif
13 changes: 13 additions & 0 deletions include/revolution/VF/pf_fsfirst.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef RVL_SDK_VF_PF_FSFIRST_H
#define RVL_SDK_VF_PF_FSFIRST_H
#include <types.h>
#ifdef __cplusplus
extern "C" {
#endif

int VFipf2_fsfirst(const s8* path, u8 attr, struct PF_DTA* p_dta);

#ifdef __cplusplus
}
#endif
#endif
13 changes: 13 additions & 0 deletions include/revolution/VF/pf_fsnext.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef RVL_SDK_VF_PF_FSNEXT_H
#define RVL_SDK_VF_PF_FSNEXT_H
#include <types.h>
#ifdef __cplusplus
extern "C" {
#endif

int VFipf2_fsnext(struct PF_DTA* p_dta);

#ifdef __cplusplus
}
#endif
#endif
13 changes: 13 additions & 0 deletions include/revolution/VF/pf_mkdir.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef RVL_SDK_VF_PF_MKDIR_H
#define RVL_SDK_VF_PF_MKDIR_H
#include <types.h>
#ifdef __cplusplus
extern "C" {
#endif

int VFipf2_mkdir(const s8* path);

#ifdef __cplusplus
}
#endif
#endif
1 change: 0 additions & 1 deletion src/revolution/VF/d_vf_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ union VFSysDeviceTableEntry {
};

s32 VFSysSetSyncMode(s32 i_handle_idx, u32 i_mode);
int VFipf2_format(s8 drive, const s8* param);

static union VFSysDeviceTableEntry* l_vfsys_dev_table[26];
static struct PDM_INIT_DISK l_dev_init_info_table[26];
Expand Down
8 changes: 8 additions & 0 deletions src/revolution/VF/pf_format.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <revolution/VF.h>

int VFipf2_format(s8 drive, const u8* param) {
s32 err;

err = VFiPFVOL_format(drive, param);
return VFiPFAPI_convertReturnValue(err);
}
17 changes: 17 additions & 0 deletions src/revolution/VF/pf_fsfirst.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <revolution/VF.h>

extern PF_VOLUME_SET VFipf_vol_set;

int VFipf2_fsfirst(const s8* path, u8 attr, struct PF_DTA* p_dta) {
s32 err;
struct PF_STR path_str;

err = VFiPFSTR_InitStr(&path_str, (const s8*)path, 1);
if (err == 0) {
err = VFiPFDIR_fsfirst(&path_str, attr, p_dta);
} else {
VFipf_vol_set.last_error = err;
}

return VFiPFAPI_convertReturnValue(err);
}
8 changes: 8 additions & 0 deletions src/revolution/VF/pf_fsnext.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <revolution/VF.h>

int VFipf2_fsnext(struct PF_DTA* p_dta) {
s32 err;

err = VFiPFDIR_fsnext(p_dta);
return VFiPFAPI_convertReturnValue(err);
}
17 changes: 17 additions & 0 deletions src/revolution/VF/pf_mkdir.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <revolution/VF.h>

extern PF_VOLUME_SET VFipf_vol_set;

int VFipf2_mkdir(const s8* path) {
s32 err;
struct PF_STR path_str;

err = VFiPFSTR_InitStr(&path_str, (const s8*)path, 1);
if (err == 0) {
err = VFiPFDIR_mkdir(&path_str);
} else {
VFipf_vol_set.last_error = err;
}

return VFiPFAPI_convertReturnValue(err);
}
Loading