| 3D GameStudio Registry v1.0 |
Download
Use:
Free for all GameStudio projects without restrictions.
Disclaimer: If it blows up your machine it's not my fault.
Installation:
Unzip registry.wdl into your templates directory.
*3DGS 5.5+*
Unzip registry.dll into your work directory.
*3DGS 5.24*
Unzip registry52.dll into your work directory. Rename registry52.dll to registry.dll.
Publishing:
You will have to copy the DLL manually to your .cd directory when you publish.
The Windows Registry is very sensitive, if you do not know what you are doing
it is recommended that you don't interact with the registry.
Place this line at the end of your include list in your main project WDL file:
include ;
Versions:
6/14/2002 -- v1.0 -- Released.
Usage:
// ALL KEYS MUST BE ACCESSED WITH \\ INSTEAD OF \. WDL NEEDS \\ INSTEAD OF \.
// ALL DATES ARE IN FORMAT m, mm, d, dd, yy, and yyyy SEPERATED BY THE / CHARACTER
// ALL TIMES ARE IN FORMAT h, hh, n, nn, s, ss SEPERATED BY THE : CHARACTER
// EXAMPLE OF DATETIME -> "06/14/2002 11:38:00"
// pass a blank string for HKEY_CURRENT_USER
dllfunction Registry_Create(hkey);
// Write the current Key to the registry and then close the key.
dllfunction Registry_CloseKey;
// Create a new Key in the registry.
dllfunction Registry_CreateKey(Key);
// Delete a Key from the registry.
dllfunction Registry_DeleteKey(Key);
// Erases a data value for a current Key.
dllfunction Registry_DeleteValue(Name);
// Returns 1 if a Key has SubKeys
dllfunction Registry_HasSubKeys;
// Returns 1 if a Key exists.
dllfunction Registry_KeyExists(Key);
// Creates a new Key under the Rootkey and loads a registry hive file
// from Filename into Key
dllfunction Registry_LoadKey(Key, FileName);
// Key Move Oldname to Key NewName. Pass 1 to DeleteBool to delete Oldname after copy.
// On NT Subkeys of Oldname must be copied or moved seperately.
dllfunction Registry_MoveKey(Oldname, NewName, DeleteBool);
// Open Key. If CanCreateBool is 1 then create the Key if it doesn't exist.
dllfunction Registry_OpenKey(Key, CanCreateBool);
// Open Key read only.
dllfunction Registry_OpenKeyReadOnly(Key);
// Return data value for Name from the open Key. 0 is false 1 is true
dllfunction Registry_ReadBool(Name);
// Fill datestr with data value for Name from the open Key.
dllfunction Registry_ReadDate(Name, datestr);
// Fill datetimestr with data value for Name from the open Key.
dllfunction Registry_ReadDateTime(Name, datetimestr);
// Return float data value for Name from the open Key.
dllfunction Registry_ReadFloat(Name);
// Return integer data value for Name from the open Key.
dllfunction Registry_ReadInteger(Name);
// Fill string with data value for Name from the open Key.
dllfunction Registry_ReadString(Name, string);
// Fill timestr with data value for Name from the open Key.
dllfunction Registry_ReadTime(Name, timestr);
// Rename OldName key to NewName key.
dllfunction Registry_RenameValue(OldName, NewName);
// Reopen Key and overwrite any information in this key or subkeys with
// data stored in registry hive Filename file.
dllfunction Registry_RestoreKey(Key, FileName);
// Save Key and it's Subkeys to registry hive file Filename.
dllfunction Registry_SaveKey(Key, FileName);
// Returns 1 if data value Name exists in current open Key
dllfunction Registry_ValueExists(Name);
// Write Bool (0 or 1) to data value Name in current open Key
dllfunction Registry_WriteBool(Name, Bool);
// Write datestr to data value Name in current open Key
dllfunction Registry_WriteDate(Name, datestr);
// Write datetimestr to data value Name in current open Key
dllfunction Registry_WriteDateTime(Name, datetimestr);
// Write Float to data value Name in current open Key
dllfunction Registry_WriteFloat(Name, Float);
// Write Integer to data value Name in current open Key
dllfunction Registry_WriteInteger(Name, Int);
// Write string to data value Name in current open Key
dllfunction Registry_WriteString(Name, string);
// Write timestr to data value Name in current open Key
dllfunction Registry_WriteTime(Name, timestr);
// Free the current registry object
dllfunction Registry_Free;
|
|
|