Skip to content

Commit

Permalink
[util] Remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Margen67 authored and doitsujin committed Sep 4, 2023
1 parent 4705de5 commit a53f0e8
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/util/config/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace dxvk {
{ R"(\\evelauncher\.exe$)", {{
{ "d3d11.maxFeatureLevel", "12_1" },
}} },
/* The Evil Within: Submits command lists *
/* The Evil Within: Submits command lists *
* multiple times */
{ R"(\\EvilWithin(Demo)?\.exe$)", {{
{ "d3d11.dcSingleUseMode", "False" },
Expand Down Expand Up @@ -464,7 +464,7 @@ namespace dxvk {
{ "d3d9.memoryTrackTest", "True" },
}} },
/* Dead Space uses the a NULL render target instead
of a 1x1 one if DF24 is NOT supported
of a 1x1 one if DF24 is NOT supported
Mouse and physics issues above 60 FPS
Built-in Vsync Locks the game to 30 FPS */
{ R"(\\Dead Space\.exe$)", {{
Expand Down Expand Up @@ -660,7 +660,7 @@ namespace dxvk {
{ "d3d9.memoryTrackTest", "True" },
{ "d3d9.maxAvailableMemory", "2048" },
}} },
/* Myst V End of Ages
/* Myst V End of Ages
Game has white textures on amd radv.
Expects Nvidia, Intel or ATI VendorId.
"Radeon" in gpu description also works */
Expand All @@ -675,7 +675,7 @@ namespace dxvk {
{ R"(\\swtor\.exe$)", {{
{ "d3d9.forceSamplerTypeSpecConstants", "True" },
}} },
/* Bionic Commando
/* Bionic Commando
Physics break at high fps */
{ R"(\\bionic_commando\.exe$)", {{
{ "d3d9.maxFrameRate", "60" },
Expand Down Expand Up @@ -811,11 +811,11 @@ namespace dxvk {
{ R"(\\drakensang\.exe$)", {{
{ "d3d9.deferSurfaceCreation", "True" },
}} },

/**********************************************/
/* D3D12 GAMES (vkd3d-proton with dxvk dxgi) */
/**********************************************/

/* Diablo 4 - Will complain about missing *
* GPU unless dxgi Id match actual GPU Id */
{ R"(\\Diablo IV\.exe$)", {{
Expand All @@ -841,7 +841,7 @@ namespace dxvk {
return ch == ' ' || ch == '\x9' || ch == '\r';
}


static bool isValidKeyChar(char ch) {
return (ch >= '0' && ch <= '9')
|| (ch >= 'A' && ch <= 'Z')
Expand Down Expand Up @@ -878,12 +878,12 @@ namespace dxvk {

while (n < e)
key << line[n++];

ctx.active = key.str() == env::getExeName();
} else {
while (n < line.size() && isValidKeyChar(line[n]))
key << line[n++];

// Check whether the next char is a '='
n = skipWhitespace(line, n);
if (n >= line.size() || line[n] != '=')
Expand All @@ -903,7 +903,7 @@ namespace dxvk {
} else
value << line[n++];
}

if (ctx.active)
config.setOption(key.str(), value.str());
}
Expand Down Expand Up @@ -963,7 +963,7 @@ namespace dxvk {
int32_t& result) {
if (value.size() == 0)
return false;

// Parse sign, don't allow '+'
int32_t sign = 1;
size_t start = 0;
Expand All @@ -979,7 +979,7 @@ namespace dxvk {
for (size_t i = start; i < value.size(); i++) {
if (value[i] < '0' || value[i] > '9')
return false;

intval *= 10;
intval += value[i] - '0';
}
Expand All @@ -988,8 +988,8 @@ namespace dxvk {
result = sign * intval;
return true;
}


bool Config::parseOptionValue(
const std::string& value,
float& result) {
Expand Down Expand Up @@ -1091,7 +1091,7 @@ namespace dxvk {
std::regex expr(pair.first, std::regex::extended | std::regex::icase);
return std::regex_search(appName, expr);
});

if (appConfig != g_appDefaults.end()) {
// Inform the user that we loaded a default config
Logger::info(str::format("Found built-in config:"));
Expand All @@ -1115,7 +1115,7 @@ namespace dxvk {

if (filePath == "")
filePath = "dxvk.conf";

// Open the file if it exists
std::ifstream stream(str::topath(filePath.c_str()).c_str());

Expand Down

0 comments on commit a53f0e8

Please sign in to comment.