Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io: use fios2 #90

Draft
wants to merge 9 commits into
base: vita
Choose a base branch
from
Draft

io: use fios2 #90

wants to merge 9 commits into from

Conversation

frangarcj
Copy link
Contributor

@frangarcj frangarcj commented Aug 21, 2022

Missing:

  • dirent.c
  • fs.c
  • pread.c
  • truncate.c
  • utime.c

#define SCE_FIOS_OPATTR_INITIALIZER { 0, 0, 0, 0, 0, 0, 0, 0 }
#define SCE_FIOS_RAM_CACHE_CONTEXT_INITIALIZER { sizeof(SceFiosRamCacheContext), 0, (64 * 1024), NULL, NULL, 0, {0, 0, 0} }

typedef enum SceFiosWhence {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those should go in headers

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know

Comment on lines +74 to +82
typedef struct SceFiosRamCacheContext {
size_t sizeOfContext;
size_t workBufferSize;
size_t blockSize;
void *pWorkBuffer;
const char *pPath;
intptr_t flags;
intptr_t reserved[3];
} SceFiosRamCacheContext;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use snake_case instead of camelCase?
eg;

  • pPtr -> ptr
  • pCallback -> callback
  • pCallbackContext -> callback_context
  • userTag -> user_tag or just tag
  • userPtr -> user_ptr or just user
  • pReserved -> reserved
  • sizeOfContext -> size_of_context
  • workBufferSize -> work_buffer_size, work_buf_size or buf_size
  • blockSize -> block_size
  • pWorkBuffer -> work_buffer, buffer or just buf
  • ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem. I'm still reversing some of the stuff and these are leftovers from vitashell.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TheOfficialFloW can you allow changing the license to LGPL or others?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@isage
Copy link
Contributor

isage commented Oct 23, 2022

@frangarcj you might want to take a look at #92 because i'm pretty sure fios rename behaves the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants