public void SteamaccountGrab()
{
if (Directory.Exists(steamaccountDir32))
{
string steamaccountDir = @"C:\Program Files\Steam\config";
}
else
{
if (Directory.Exists(steamaccountDir64))
{
string steamaccountDir = @"C:\Program Files (x86)\Steam\config";
}
else
{
bool steamisinstalled = false;
}
}
if (steamisinstalled)
{
}
}
顺便说一句,我已经将 bool steamisinstalled 声明为 true
在这段代码中,它在“if (steamisinstalled)”处给了我一个错误,说 steamisinstalled 与声明冲突我不知道我做错了什么和/或我必须做些什么来解决这个问题。任何帮助都会非常感激!