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

Unable to edit existing profiles of existing applications #64

Open
Swedeachu opened this issue Dec 27, 2022 · 0 comments
Open

Unable to edit existing profiles of existing applications #64

Swedeachu opened this issue Dec 27, 2022 · 0 comments

Comments

@Swedeachu
Copy link

So I am currently stuck on an issue where I am unable to edit the profiles of existing games, or at least I don't know how to, as I was only able to figure out how to create new profiles and for new applications.

var session = NvAPIWrapper.DRS.DriverSettingsSession.CreateAndLoad(); // create a new session 
var profile = NvAPIWrapper.DRS.DriverSettingsProfile.CreateProfile(session, "Minecraft"); // create a profile for Minecraft
var application = NvAPIWrapper.DRS.ProfileApplication.CreateApplication(profile, "Minecraft.Windows"); // the Minecraft Application
application.Profile.SetSetting(0X00DE429A, 0x00000000); // 0X00DE429A = Hex Setting ID of Raytracing - (DXR), set it to 0x0 (false)
application.Profile.Session.Save();

But as shown in this code I do not want to make an entire new profile, just edit the one called Minecraft for the Minecraft.Windows application. Hopefully this screenshot from nspector helps explain what I mean.

image

Also, is there anything else I should do after I save the session? I don't want to leave any resource leaks behind in the nvidia driver after run time.
If it isn't obvious already I am fumbling around a lot and I am not even entirely sure if I am setting the profile settings correctly, so please do correct any other portions of my code if needed.

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

No branches or pull requests

1 participant