Move remaining FileUtil functions into the File namespace.
This commit is contained in:
parent
0ccc63b43e
commit
1b13badeb4
32 changed files with 103 additions and 103 deletions
|
@ -63,7 +63,7 @@ void CwCheatScreen::LoadCheatInfo() {
|
|||
|
||||
// We won't parse this, just using it to detect changes to the file.
|
||||
std::string str;
|
||||
if (readFileToString(true, engine_->CheatFilename().c_str(), str)) {
|
||||
if (File::readFileToString(true, engine_->CheatFilename().c_str(), str)) {
|
||||
fileCheckHash_ = XXH3_64bits(str.c_str(), str.size());
|
||||
}
|
||||
fileCheckCounter_ = 0;
|
||||
|
@ -120,7 +120,7 @@ void CwCheatScreen::update() {
|
|||
if (fileCheckCounter_++ >= FILE_CHECK_FRAME_INTERVAL && engine_) {
|
||||
// Check if the file has changed. If it has, we'll reload.
|
||||
std::string str;
|
||||
if (readFileToString(true, engine_->CheatFilename().c_str(), str)) {
|
||||
if (File::readFileToString(true, engine_->CheatFilename().c_str(), str)) {
|
||||
uint64_t newHash = XXH3_64bits(str.c_str(), str.size());
|
||||
if (newHash != fileCheckHash_) {
|
||||
// This will update the hash.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue