- Joined
- Dec 12, 2008
- Messages
- 7,385
This is a simple (but fun-to-use) interface for the Preload-bug:
Feel free to comment..
JASS:
/****************************
*
* FileGen
* v1.0.0.0
* By Magtheridon96
*
* - Used to create files on player's computer.
*
* API:
* ----
*
* - function ResetBuffer takes nothing returns nothing
* - Clears text buffer
* - function NewFile takes nothing returns nothing
* - Allows you to add text to the file
* - function AddTextLine takes string s returns nothing
* - Adds line of text
* - function SaveFile takes string s returns nothing
* - Saves a file to the computer. (Requires type)
*
****************************/
library FileGen
function ResetBuffer takes nothing returns nothing
call PreloadGenClear()
endfunction
function NewFile takes nothing returns nothing
call PreloadGenStart()
endfunction
function AddTextLine takes string s returns nothing
call Preload("\")\n"+s+"\n//")
endfunction
function SaveFile takes string s returns nothing
call PreloadGenEnd(s)
endfunction
endlibrary
Feel free to comment..
Last edited: