antonioginer / switchres

Modeline generation engine for emulation
49 stars 12 forks source link

Added option to load custom ini (WIP) #77

Closed alphanu1 closed 3 years ago

alphanu1 commented 3 years ago

Load a custom ini when using as a library (.so, .dll)

Sorry about the multiple commits.

alphanu1 commented 3 years ago

@substring Thanks for the nice welcome. Send me a invite to the channel please 😊

I have sorted these changes.

substring commented 3 years ago

And forgot to ask you to squash your commits ;)

For the invitation : https://discord.gg/YtQ6pJh

alphanu1 commented 3 years ago

@substring, no worries. Will do that shortly

alphanu1 commented 3 years ago

@substring all done.

substring commented 3 years ago

Reading again, and forgive me as I should have mentioned this at first : the function needs to be in the srAPI struct (in both .h and .cpp).

alphanu1 commented 3 years ago

@substring not really your fault. To be honest I should have noticed that. Should all be sorted now, hopefully 😊

substring commented 3 years ago

So, I finally took the time to test this MR. In the current API state, it only works before sr_init_disp(), is that OK with you ?

alphanu1 commented 3 years ago

Yeah, that should be fine.