Skip to content

protonfixes: move more protonfixes related functions out of the proton script #324

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

loathingKernel
Copy link
Contributor

I am not certain about these changes myself, it might have the opposite result, but the goal is to reduce the modifications required for any proton version to include umu and protonfixes.

In that regard, the modifications for running winetricks and setting up mountpoint drives have been moved into protonfixes. There is one more group of modifications that might be movable, the ones related to moving prefixes between steamdeck and normal modes.

@loathingKernel
Copy link
Contributor Author

Usage example

    g_session.init_wine()

    import protonfixes

    if g_proton.missing_default_prefix():
        g_proton.make_default_prefix()

    g_session.init_session(sys.argv[1] != "runinprefix")

    protonfixes.setup(g_session.env, "PATH", ld_path_var, prepend_to_env_str)
    protonfixes.setup_mount_drives(setup_dir_drive)
    protonfixes.winetricks(g_session.env, g_proton.wine_bin, g_proton.wineserver_bin)
    protonfixes.execute()

    #determine mode
    rc = 0
    if sys.argv[1] == "run":

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.

1 participant