JazzJackrabbit Community Forums

JazzJackrabbit Community Forums (http://www.jazz2online.com/jcf/index.php)
-   JJ2+ Issue Tracker (http://www.jazz2online.com/jcf/forumdisplay.php?f=49)
-   -   AngelScript API suggestions (and one normal suggestion :P) (http://www.jazz2online.com/jcf/showthread.php?t=20590)

Spaz Electro Sep 5, 2023 05:22 AM

AngelScript API suggestions (and one normal suggestion :P)
 
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:
Code:

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 :)


All times are GMT -8. The time now is 05:30 AM.

Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
JCF © 2001-Infinity Jazz2Online