-
Notifications
You must be signed in to change notification settings - Fork 72
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
Sega/Mega CD Add Configurable Backup Ram Cart size #327
Conversation
Sega/Mega CD Configurable Backup Ram Cart size
There are several issues with this commit:
As a general note, I would suggest that for commits that modify core sourcecode (files under /core directory), it would be better to first submit it upstream for review of potential flaws or impact outside libretro . Thanks. |
To address some of your concerns:
And, thank you for showing interest and expressing your concerns. Edit: I stand corrected on 0 disabling the ram cart. The BIOS shows it is not present, but any game that can directly access it will complain and refuse to load. Fix incoming. |
Hi,
The thing is, when I will add same feature upstream (there is a pending feature request for this, it was postponed to deal with formatting/conversion issues), I will do it like I suggested so there will be conflict when merging upstream changes back to libretro (which occurs regularely). Hence why I prefer that changes that have impact on mylti-platform emulation code (and could eventually have impact or benefit to other ports) to be at least submitted for review on my side. All I suggest (since you are comitting some fixes anyway) is to remove the cart_size variable and instead add a ramcart_size or ramcart_id field in existing config structure (only on libretro side if you want) so that it fits better with actual code design and future changes. |
My concern about this was more about libretro/retroarch users, as I don't think there will be any warning that Mega CD RAM cart file names need to be changed so most users (who will have no use for that new option or know it was even added) will think their existing saves are lost. I agree it is a one-time rename but it should, in my opinion, be transparent to users who, for the majority, won't change that option. |
That I didn't knew, I thought 0 was still a valid size for RAM cart (the minimal one). Thanks for the notice. |
Adds a user configurable option for setting the backup ram cart size.
Range is from 128Kbit thru 4Mbit, with 4Mbit remaining the default same as before. Also adds an option to disable the backup ram cart.
Changing backup cart sizes will reformat the cart when core is restarted.Carts will no longer be reformatted when changing sizes.Also, addressed an issue with internal backup ram being overwritten when changing from 'Per-BIOS' to 'Per-Game' if the RetroArch menu is closed after changing between the two settings, but before closing the core.
Addresses upstream issue ekeeke#267.