diff --git a/include/checks.cpp b/include/checks.cpp index f462c06d6..cb7e81ee4 100755 --- a/include/checks.cpp +++ b/include/checks.cpp @@ -183,6 +183,12 @@ bool cantwrite_box(const char* filename) return error_box(FR("Impossibile scrivere '%s'"), filename); } +bool cantaccess_box(const char* filename) +{ + if (filename == NULL || *filename < ' ') + filename = TR("questa funzione"); + return error_box(FR("L'utente %s non puņ accedere a %s"), (const char*)user(), filename); +} // @doc EXTERNAL // @msg __trace | Permette di mandare dei messaggi nel file trace.log diff --git a/include/checks.h b/include/checks.h index fd19a39bf..8e2c3d977 100755 --- a/include/checks.h +++ b/include/checks.h @@ -21,6 +21,7 @@ extern "C" { bool yesnofatal_box(const char* fmt, ...); bool cantread_box(const char* filename); bool cantwrite_box(const char* filename); + bool cantaccess_box(const char* filename); bool __trace(const char* fmt, ...); bool __tracemem(const char* fmt); #ifdef __cplusplus