• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

OS and File IO Lib

Status
Not open for further replies.
Here you go.

JASS:
native FileCreate takes string filename returns nothing
native FileCopy   takes string filename, string dest returns nothing
native FileDelete takes string filename returns nothing
native FileWrite  takes string filename, string contents returns nothing
native FileAppend takes string filename, string contents returns nothing
native FileMove   takes string filename, string dest returns nothing
native FileRead   takes string filename returns string
native FileExists takes string filename returns boolean

native GetInstallPath takes nothing returns string

native OSVersion takes nothing returns string
 

Attachments

  • plugins.rar
    1.2 KB · Views: 84
Level 19
Joined
Aug 8, 2007
Messages
2,765
Yes, SharpCraft

Like writing it's own data in files, without preloading or setting the data to the player's name.

Why?...

Preload natives work fine and theyre not buggy (not to mention work without installing SharpCraft)

the shit that doesnt work is synchronization.

e/ genius idea-

A .bat file is used to enable local files on the user's PC
can't we make that .bat file also throw in a hotfix for the SyncStoredString native?
 

Kazeon

Hosted Project: EC
Level 34
Joined
Oct 12, 2011
Messages
3,449
Here you go.

JASS:
native FileCreate takes string filename returns nothing
native FileCopy   takes string filename, string dest returns nothing
native FileDelete takes string filename returns nothing
native FileWrite  takes string filename, string contents returns nothing
native FileAppend takes string filename, string contents returns nothing
native FileMove   takes string filename, string dest returns nothing
native FileRead   takes string filename returns string
native FileExists takes string filename returns boolean

native GetInstallPath takes nothing returns string

native OSVersion takes nothing returns string

Cool. But just want to mention that OS plugin still has a script error.
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
I suggest limiting these natives so that you cant add extension, or it will automatically append .txt or something at the end of the file name, so you cant do what you can with preloads(Create bananas in "On system startup")
 
Status
Not open for further replies.
Top