]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - prvm_cmds.c
374
[xonotic/darkplaces.git] / prvm_cmds.c
index 9930c3318d551dc3844856476b4366799ec9dee4..e06c23f75a94a13390c4c05defba8f4864362633 100644 (file)
@@ -1448,7 +1448,7 @@ void VM_fopen(void)
                modestring = "wb";
                break;
        default:
-               Con_Printf("VM_fopen: %s no such mode %i (valid: 0 = read, 1 = append, 2 = write)\n", PRVM_NAME, mode);
+               Con_Printf("VM_fopen: %s: no such mode %i (valid: 0 = read, 1 = append, 2 = write)\n", PRVM_NAME, mode);
                PRVM_G_FLOAT(OFS_RETURN) = -3;
                return;
        }
@@ -1461,13 +1461,13 @@ void VM_fopen(void)
        if (VM_FILES[filenum] == NULL)
        {
                if (developer.integer)
-                       Con_Printf("fopen: %s mode %s failed\n", filename, modestring);
+                       Con_Printf("VM_fopen: %s: %s mode %s failed\n", PRVM_NAME, filename, modestring);
                PRVM_G_FLOAT(OFS_RETURN) = -1;
        }
        else
        {
                if (developer.integer)
-                       Con_Printf("fopen: %s mode %s opened as #%i\n", filename, modestring, filenum);
+                       Con_Printf("VM_fopen: %s: %s mode %s opened as #%i\n", PRVM_NAME, filename, modestring, filenum);
                PRVM_G_FLOAT(OFS_RETURN) = filenum;
        }
 }
@@ -1498,7 +1498,7 @@ void VM_fclose(void)
                return;
        }
        if (developer.integer)
-               Con_Printf("fclose #%i\n", filenum);
+               Con_Printf("VM_fclose: %s: #%i closed\n", PRVM_NAME, filenum);
        FS_Close(VM_FILES[filenum]);
        VM_FILES[filenum] = NULL;
 }