mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3407
This commit is contained in:
parent
1c30f4054a
commit
54e6050f0b
|
@ -862,7 +862,7 @@ void STARFIELD::update_stars(float dt) {
|
|||
mode_lines();
|
||||
glColor4f(1.0, 1.0, 1.0, 1.0);
|
||||
for (i=0; i<nstars; i++) {
|
||||
stars[i].z -= speed*dt/50;
|
||||
stars[i].z -= speed*dt/500;
|
||||
if (stars[i].z < 0) stars[i].z += zmax;
|
||||
if (stars[i].z > zmax) stars[i].z -= zmax;
|
||||
|
||||
|
|
|
@ -12420,3 +12420,15 @@ David May 19 2004
|
|||
cs_benchmark.C
|
||||
dhrystone.C
|
||||
whetstone.C
|
||||
|
||||
David May 19 2004
|
||||
- boinc_fopen: if opening for read, and file doesn't exist,
|
||||
return 0 immediately (avoid 5-sec delays)
|
||||
- boinc_resolve_filename: use boinc_fopen() to open symlink file
|
||||
- graphics: scale starfield velocity down by a factor of 10
|
||||
|
||||
api/
|
||||
gutil.C
|
||||
lib/
|
||||
app_ipc.C
|
||||
filesys.C
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include "parse.h"
|
||||
#include "error_numbers.h"
|
||||
#include "util.h"
|
||||
#include "filesys.h"
|
||||
|
||||
#include "app_ipc.h"
|
||||
|
||||
|
@ -311,7 +312,8 @@ int boinc_resolve_filename(const char *virtual_name, char *physical_name, int le
|
|||
safe_strncpy(physical_name, virtual_name, len);
|
||||
|
||||
// Open the file and load the first line
|
||||
fp = fopen(virtual_name, "r");
|
||||
//
|
||||
fp = boinc_fopen(virtual_name, "r");
|
||||
if (!fp) return ERR_FOPEN;
|
||||
|
||||
fgets(buf, 512, fp);
|
||||
|
|
|
@ -340,6 +340,14 @@ int dir_size(const char* dirpath, double& size) {
|
|||
FILE* boinc_fopen(const char* path, const char* mode) {
|
||||
FILE* f;
|
||||
|
||||
// if opening for read, and file isn't there,
|
||||
// leave now (avoid 5-second delay!!)
|
||||
//
|
||||
if (strchr(mode, 'r')) {
|
||||
if (!boinc_file_exists(path)) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
f = fopen(path, mode);
|
||||
#ifdef _WIN32
|
||||
// on Windows: if fopen fails, try again for 5 seconds
|
||||
|
|
Loading…
Reference in New Issue