Skip to content

Commit

Permalink
Common: reverted an unintended function argument rename
Browse files Browse the repository at this point in the history
Is a case of accidental mass rename.
  • Loading branch information
ivan-mogilko committed Dec 21, 2023
1 parent 4be1556 commit 803abfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Common/util/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ bool File::DeleteFile(const String &filename)
return true;
}

bool File::RenameFile(const String &old_name, const String &name)
bool File::RenameFile(const String &old_name, const String &new_name)
{
return ags_file_rename(old_name.GetCStr(), name.GetCStr()) == 0;
return ags_file_rename(old_name.GetCStr(), new_name.GetCStr()) == 0;
}

bool File::CopyFile(const String &src_path, const String &dst_path, bool overwrite)
Expand Down
2 changes: 1 addition & 1 deletion Common/util/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace File
// Deletes existing file; returns TRUE if was able to delete one
bool DeleteFile(const String &filename);
// Renames existing file to the new name; returns TRUE on success
bool RenameFile(const String &old_name, const String &name);
bool RenameFile(const String &old_name, const String &new_name);
// Copies a file from src_path to dst_path; returns TRUE on success
bool CopyFile(const String &src_path, const String &dst_path, bool overwrite);

Expand Down

0 comments on commit 803abfc

Please sign in to comment.