Log in

View Full Version : AngelScript API suggestions (and one normal suggestion :P)


Spaz Electro
Sep 5, 2023, 05:22 AM
First off, PLUS_VERSION constant, please? Second, jjSTREAM should be able to get the properties of files (properties as in file attributes, date modified date created, etc), It can be very helpful for a lot of situations, Here's an example of what I would think it would look like:

jjSTREAM myStream("testFile.asdata");
dictionary@ properties;
myStream.getProperties(properties);

int dateModifiedInUnix;
dictionary@ fileAttributes;
properties.get("dateModified", dateModifiedInUnix);
properties.get("attributes", fileAttributes);

jjConsole("That file was last modified in the unix timestamp " + dateModifiedInUnix);
jjConsole("That file has " + fileAttributes.size() + " attributes");

Another thing that could be cool is an `-skipsplash` command line parameter, or maybe even a setting in the ini, would be very nice for quickly doing stuff :)