Add VGA nag upon starting the script.

This commit is contained in:
sorgelig
2019-06-11 01:31:13 +08:00
parent ded363e6ef
commit 22140fa65d
4 changed files with 42 additions and 41 deletions

View File

@@ -518,9 +518,9 @@ int FileWriteSec(fileTYPE *file, void *pBuffer)
return FileWriteAdv(file, pBuffer, 512);
}
int FileSave(const char *name, void *pBuffer, int size, int sys)
int FileSave(const char *name, void *pBuffer, int size)
{
if(!sys) sprintf(full_path, "%s/%s", getRootDir(), name);
if(name[0] != '/') sprintf(full_path, "%s/%s", getRootDir(), name);
else strcpy(full_path, name);
int fd = open(full_path, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, S_IRWXU | S_IRWXG | S_IRWXO);
@@ -549,9 +549,9 @@ int FileSaveConfig(const char *name, void *pBuffer, int size)
return FileSave(path, pBuffer, size);
}
int FileLoad(const char *name, void *pBuffer, int size, int sys)
int FileLoad(const char *name, void *pBuffer, int size)
{
if (!sys) sprintf(full_path, "%s/%s", getRootDir(), name);
if (name[0] != '/') sprintf(full_path, "%s/%s", getRootDir(), name);
else strcpy(full_path, name);
int fd = open(full_path, O_RDONLY);