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

[Feature Request]: copy or set game config through command-line. #12244

Open
jacobmix opened this issue Jan 27, 2025 · 0 comments
Open

[Feature Request]: copy or set game config through command-line. #12244

jacobmix opened this issue Jan 27, 2025 · 0 comments
Labels
Enhancement / Feature Request FR: Medium Complexity Requires some codebase knowledge. A proficient developer should be able to manage. FR: Medium Priority The request can bring some quality of life to the average emulator user.

Comments

@jacobmix
Copy link

jacobmix commented Jan 27, 2025

Description

Been trying to set up so my patched roms (Randomizer so different every time) uses their own saves automatically.
But can't seem to get it working. Only way is to manually change it. But would rather automate it if possible.

I quickly tried to just manually calculate the CRC since ini names were [Serial_CRC.ini] so a way to auto copy could work.
But get different string when just using CRC32 on the iso. Couldn't find much info online about how to actually get it to match so gave up.

Reason

Something similar has been asked before tho: #11087
But i think here it was just denied because "per-game options already does everything you need"
I would like to streamline my setup so i won't manually have to change the save every time i start a new rando run.

Examples

Like old WX commands here: https://wiki.pcsx2.net/Command-line_support
Just -gamecfg "Randomizer.ini" would create/overwrite the current gamesettings ini for the game being booted.
Example. If i just wanted it to not use the base game saves it would copy this ini:

[Achievements]
Enabled = false


[MemoryCards]
Slot1_Filename = Randomizers.ps2
Slot2_Enable = false
Slot1_Enable = true


[EmuCore]
McdFolderAutoManage = true

Using a whole custom PCSX2.ini till shutdown might also work. But might cause conflict in some cases.

Edit: If anyone wants to know how PCSX2 get's it's CRC:

u32 ElfObject::GetCRC() const
{
    u32 CRC = 0;

    const u32* srcdata = reinterpret_cast<const u32*>(data.data());
    for (u32 i = static_cast<u32>(data.size()) / 4; i; --i, ++srcdata)
        CRC ^= *srcdata;

    return CRC;
}

On the main executable (the elf file). You might find it mentioned in "SYSTEM.CNF" or a name similar to the serial.

@jacobmix jacobmix added Enhancement / Feature Request FR: Awaiting Consideration The feature request is awaiting a team members consideration. labels Jan 27, 2025
@F0bes F0bes added FR: Medium Priority The request can bring some quality of life to the average emulator user. FR: Medium Complexity Requires some codebase knowledge. A proficient developer should be able to manage. and removed FR: Awaiting Consideration The feature request is awaiting a team members consideration. labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement / Feature Request FR: Medium Complexity Requires some codebase knowledge. A proficient developer should be able to manage. FR: Medium Priority The request can bring some quality of life to the average emulator user.
Projects
None yet
Development

No branches or pull requests

2 participants