mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-05 16:07:27 +02:00
Perhaps FileExists shouldn't erase file contents...
This commit is contained in:
@@ -230,7 +230,7 @@ bool Client::FileExists(std::string filename)
|
|||||||
bool exists = false;
|
bool exists = false;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
std::ofstream fileStream;
|
std::ifstream fileStream;
|
||||||
fileStream.open(string(filename).c_str(), ios::binary);
|
fileStream.open(string(filename).c_str(), ios::binary);
|
||||||
if(fileStream.is_open())
|
if(fileStream.is_open())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user