•  Back 
  •  VDI FSMGDOS 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-Filev_savecache()
v_flushcache()
v_loadcache()                                                           VDI

Syntax

WORD v_loadcache( handle, fname, mode)
WORD handle;
char *fname;
WORD mode;

Function      v_loadcache() loads a previously saved cache file from disk.

Opcode        250

Availability  Supported only by FSMGDOS and SpeedoGDOS.

Parameters    handle specifies a valid workstation handle. fname specifies
              the GEMDOS file specification of the cache file to load.
              mode specifies whether current data will be flushed first.
              A value of 0 will append the loaded cache to the current
              cache whereas a value of 1 will flush the cache prior to
              loading.

Binding       WORD i = 1;

              intin[0] = mode;
              while(intin[i++] = (WORD)*fname++);

              contrl[0] = 250;
              contrl[1] = 0;
              contrl[3] = i;
              contrl[6] = handle;

              vdi();

              return intout[0];

Return Value  v_loadcache() returns 0 if successful or -1 if an error
              occurred.

Comments      This command only affects the cache responsible for storing
              bitmaps created from outline characters.

See Also      v_savecache(), v_flushcache()

Group         VDI FSMGDOS