Merge pull request #869 from isaak654/patch-8

Improve code comments in NewBoxWindow.cpp
This commit is contained in:
DavidXanatos 2021-06-05 14:49:41 +02:00 committed by GitHub
commit 2a007c67ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -99,17 +99,17 @@ void CNewBoxWindow::CreateBox()
{ {
case eHardened: case eHardened:
pBox.objectCast<CSandBoxPlus>()->SetBool("DropAdminRights", true); pBox.objectCast<CSandBoxPlus>()->SetBool("DropAdminRights", true);
//pBox.objectCast<CSandBoxPlus>()->SetBool("FakeAdminRights", true); // Note: making the app think its dmin has no security downsides,but can help with ompatybility //pBox.objectCast<CSandBoxPlus>()->SetBool("FakeAdminRights", true); // Note: making the app think it has admin rights has no security downsides, but it can help with compatibility
pBox.objectCast<CSandBoxPlus>()->SetBool("ClosePrintSpooler", true); pBox.objectCast<CSandBoxPlus>()->SetBool("ClosePrintSpooler", true);
break; break;
case eLegacy: case eLegacy:
pBox.objectCast<CSandBoxPlus>()->SetBool("UnrestrictedSCM", true); pBox.objectCast<CSandBoxPlus>()->SetBool("UnrestrictedSCM", true);
//pBox.objectCast<CSandBoxPlus>()->SetBool("ExposeBoxedSystem", true); //pBox.objectCast<CSandBoxPlus>()->SetBool("ExposeBoxedSystem", true);
//pBox.objectCast<CSandBoxPlus>()->SetBool("RunServicesAsSystem", true); // legacy behavioure but there should be no normal use cases which require this //pBox.objectCast<CSandBoxPlus>()->SetBool("RunServicesAsSystem", true); // legacy behaviour, but there should be no normal use cases which require this
pBox.objectCast<CSandBoxPlus>()->SetBool("OpenPrintSpooler", true); pBox.objectCast<CSandBoxPlus>()->SetBool("OpenPrintSpooler", true);
pBox.objectCast<CSandBoxPlus>()->InsertText("Template", "OpenSmartCard"); pBox.objectCast<CSandBoxPlus>()->InsertText("Template", "OpenSmartCard");
default: default:
pBox.objectCast<CSandBoxPlus>()->InsertText("Template", "OpenBluetooth"); // most unity games needs that an most modern gmes are unitybased pBox.objectCast<CSandBoxPlus>()->InsertText("Template", "OpenBluetooth"); // most Unity games needs that, besides most modern games are Unity based
break; break;
} }
} }