Change Copy, Rename to use Path. Remove std::string version of Exists().
Buildfixes Buildfix
This commit is contained in:
parent
0d80362c30
commit
ae06499a0c
24 changed files with 176 additions and 128 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 (File::ReadFileToString(true, engine_->CheatFilename().c_str(), str)) {
|
||||
if (File::ReadFileToString(true, engine_->CheatFilename(), 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 (File::ReadFileToString(true, engine_->CheatFilename().c_str(), str)) {
|
||||
if (File::ReadFileToString(true, engine_->CheatFilename(), str)) {
|
||||
uint64_t newHash = XXH3_64bits(str.c_str(), str.size());
|
||||
if (newHash != fileCheckHash_) {
|
||||
// This will update the hash.
|
||||
|
@ -176,7 +176,7 @@ UI::EventReturn CwCheatScreen::OnEditCheatFile(UI::EventParams ¶ms) {
|
|||
#if PPSSPP_PLATFORM(UWP)
|
||||
LaunchBrowser(engine_->CheatFilename().c_str());
|
||||
#else
|
||||
File::OpenFileInEditor(engine_->CheatFilename().ToString());
|
||||
File::OpenFileInEditor(engine_->CheatFilename());
|
||||
#endif
|
||||
}
|
||||
return UI::EVENT_DONE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue