-
Notifications
You must be signed in to change notification settings - Fork 8
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
Can't edit platforms.json #20
Comments
I am self-taught and still learning as I go so there's a chance that any or all of this is wrong, but here's what I see when I look at this:
For I can tell, these lines retain the two files from the remote repository (the
This line copies those read-only install-backup copies from the Indeed, this does overwrites an existing file in the same location (for this is necessary in order to obtain updates, else, upstream changes would not be propagated and the local platforms list would merely stagnate.) As the active copy, this also is where I would make my custom edits.
I actually don't understand what this part is supposed to be doing, here. I don't know if we (RetroPie) even use this part, or if maybe it's bypassed by our install module? I see that it says it won't overwrite an existing file, but I don't even have the *(I do not have a (non-example) In any case, the module could be written to behave the same way, and ignore that file if it already exists. The problem I'm envisioning with that is a situation like this: Upstream repo
Then, I add my own custom platform "grue":
...this is where I'm at right now, with a custom system edited in to my "active" copy of the file at So now, sometime in the future, say upstream adds a different new system "bleen":
To get the new "bleen" system, I need to overwrite the file with the new upstream version. But at the same time, to retain my custom "grue" system, I need to not overwrite the file. It seems to me, that in order to have both "grue" and "bleen," I need a "merged" file that combines the upstream additions with my own edits:
(I have to manually maintain this, re-inserting my custom system whenever an update changes the upstream version) Or, a separate file for my customizations: File
And file
(I wouldn't need to maintain anything, except when I wanted to alter my local edits. Upstream changes would happen automatically with a package update, and would co-exist peacefully with my custom edits.) If I am misunderstanding, then how else can I obtain the new systems added upstream, and while retain my own custom additions? |
You might want to have a try with PR #24. Thanks for challenging my assumptions:
This code segment is actually not used in the retropie context, you are right as
In the
Yes. Right. However, I changed it in the PR to use TL;DR: There were two causes which overwrite a customized The changes in the PR will put any new files from this repo with the suffix When PR #22 also gets accepted you can keep your changes at the beginning or at the end of HTH |
Yeah that looks like probably the best solution for us at this time. This is what I meant about not receiving updates automatically but, really, I suppose that's not like something that's going to happen frequently anyway. |
I mean...I "can", but when-if-ever I update, I have two choices: either it gets overwritten, and I lose my edits or, on the other hand, suppose I don't update that file. Well, then I get to keep my own edits, but I miss out on any new additions from upstream.
(I suppose the same applies to
screenscraper.json
too.)I think there ought to be a "system" copy and a separate, optional, non-updating user-configurable "extra" copy of each these files, so we can add our edits and receive updates, without sacrificing either.
The text was updated successfully, but these errors were encountered: