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

convert ioplib in a standalone iop library #648

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

israpps
Copy link
Contributor

@israpps israpps commented Jul 12, 2024

Currently there are a bunch of IRX modules around (AFAIK) using ioplib:

The Idea is to stop having local copies of ioplib.h and ioplib.c on every project that requires manipulating exports of other modules.

Therefore, converting this into a library wich is part of the PS2SDK seemed like the most reasonable approach, having one implementation for all the use cases. instead of local copies

@israpps israpps marked this pull request as ready for review July 12, 2024 14:32
@israpps
Copy link
Contributor Author

israpps commented Jul 12, 2024

havent tested it yet if the mx4sio driver works normally after this (although it should?)

Copy link
Member

@rickgaiser rickgaiser left a comment

Choose a reason for hiding this comment

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

Good idea, I created this 'ioplib' some time ago, based on sources from elsewhere (OPL I think it was). Since then I've made many copies = bad practice.

For naming consistency, if you name the library modhook which I think covers what the library does better that ioplib, then I think the include header should also be named modhook.h. Also the function names should then begin with something like modhook_* or mh_*.

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.

2 participants