mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
work around lack of errno in ce
svn-id: r29387
This commit is contained in:
parent
c640d1c604
commit
b6165d3280
@ -236,12 +236,13 @@ bool DefaultSaveFileManager::removeSavefile(const char *filename) {
|
||||
join_paths(filename, getSavePath(), buf, sizeof(buf));
|
||||
|
||||
if (remove(buf) != 0) {
|
||||
#ifndef _WIN32_WCE
|
||||
if (errno == EACCES)
|
||||
setError(SFM_DIR_ACCESS, Common::String("Search or write permission denied"));
|
||||
|
||||
if (errno == ENOENT)
|
||||
setError(SFM_DIR_NOENT, Common::String("A component of the path does not exist, or the path is an empty string"));
|
||||
|
||||
#endif
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user