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 が宣言と競合するというエラーが表示されます。何が間違っているのか、および/またはこれを修正するために何をしなければならないのかわかりません。どんな助けでも大歓迎です!