0

I am using the C# NvAPIWrapper and I am currently trying to modify a driver setting in a game's profile as shown in this code:

// create a new session              
var session = NvAPIWrapper.DRS.DriverSettingsSession.CreateAndLoad(); 
// edit a profile (all though I want to edit the existing profile called Minecraft, not create a new profile)
var profile = NvAPIWrapper.DRS.DriverSettingsProfile.CreateProfile(session, "Minecraft");
// create the minecraft application (I don't want to create a new application, just edit an existing one)
var application = NvAPIWrapper.DRS.ProfileApplication.CreateApplication(profile, "Minecraft.Windows.exe"); 
// 0X00DE429A = Hex Setting ID of Raytracing - (DXR), set it to 0x0 (false)
application.Profile.SetSetting(0X00DE429A, 0x00000000); 
// save and clear resources
application.Profile.Session.Save();
session.Dispose();

As you can see my code does not do the correct functions, because I searched the docs and source code and could not find any obvious functions or ways to edit an existing applications existing profile. I could only find ways to create new profiles for new applications, which is not what I want.

Rand Random
  • 7,300
  • 10
  • 40
  • 88
Cman
  • 11
  • 1
  • 3

0 Answers0