Update RingRayLib - raylib.c - Add Function : void StorageSaveValue(int position, int value)
@@ -994,6 +994,24 @@ RING_FUNC(ring_GetFileModTime)
}
}
+
+RING_FUNC(ring_StorageSaveValue)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ StorageSaveValue( (int ) RING_API_GETNUMBER(1), (int ) RING_API_GETNUMBER(2));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -1071,4 +1089,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("getdroppedfiles",ring_GetDroppedFiles);
ring_vm_funcregister("cleardroppedfiles",ring_ClearDroppedFiles);
ring_vm_funcregister("getfilemodtime",ring_GetFileModTime);
+ ring_vm_funcregister("storagesavevalue",ring_StorageSaveValue);
}
