public static synchronized File getStorageFolder() { return getStorageFolder(StorageFolderType.External); }
/** * Creates a new program cache associated with the specified context and * devices. * The cached programs are built against the specified device and also * only the binaries linked to that device are stored. * @param context the OpenCL context * @param device the OpenCL device */ public ProgramCache(Context context, Device device) { this.context = context; this.device = device; if (JmeSystem.isLowPermissions()) { tmpFolder = null; } else { tmpFolder = JmeSystem.getStorageFolder(); } }
Savable sav = null; try { File baseFolder = JmeSystem.getStorageFolder(storageType); if (baseFolder == null) { Logger.getLogger(SaveGame.class.getName()).log(Level.SEVERE, "Error reading base storage folder!");
OutputStream os = null; try { File baseFolder = JmeSystem.getStorageFolder(storageType); if (baseFolder == null) { Logger.getLogger(SaveGame.class.getName()).log(Level.SEVERE, "Error creating save file!");
@Override public void initialize(AppStateManager stateManager, Application app) { super.initialize(stateManager, app); this.app = app; this.oldTimer = app.getTimer(); app.setTimer(new IsoTimer(framerate)); if (file == null) { String filename = JmeSystem.getStorageFolder(JmeSystem.StorageFolderType.External) + File.separator + "jMonkey-" + System.currentTimeMillis() / 1000 + ".avi"; logger.log(Level.INFO, "fileName: {0}", filename); file = new File(filename); } processor = new VideoProcessor(); List<ViewPort> vps = app.getRenderManager().getPostViews(); for (int i = vps.size() - 1; i >= 0; i-- ) { lastViewPort = vps.get(i); if (lastViewPort.isEnabled()) { break; } } lastViewPort.addProcessor(processor); }
File tmpFolder = JmeSystem.getStorageFolder(); File binaryFile = new File(tmpFolder, getClass().getSimpleName()+".clc"); try {
file = new File(JmeSystem.getStorageFolder() + File.separator + filename + ".png").getAbsoluteFile(); } else { file = new File(filePath + filename + ".png").getAbsoluteFile();
Spatial model = assetManager.loadModel("Models/gltf/zophrac/scene.gltf"); File storageFolder = JmeSystem.getStorageFolder(); file = new File(storageFolder.getPath() + File.separator + "zophrac.j3o"); BinaryExporter be = new BinaryExporter();
File storageFolder = JmeSystem.getStorageFolder(); file = new File(storageFolder.getPath() + File.separator + "newJaime.j3o"); BinaryExporter be = new BinaryExporter();
node.addControl(ac); File storageFolder = JmeSystem.getStorageFolder(); file = new File(storageFolder.getPath() + File.separator + "test.j3o"); BinaryExporter be = new BinaryExporter();
/** * Using this constructor, the screenshot files will be written sequentially * to the system default storage folder. */ public PHATScreenshotAppState() { this.filePath = JmeSystem.getStorageFolder() + File.separator; this.fileName = "screenshot"; }
public static synchronized File getStorageFolder() { return getStorageFolder(StorageFolderType.External); }
private static void setStorageExtractionDir() { logger.log(Level.WARNING, "Working directory is not writable. Using home directory instead."); extractionDir = new File(JmeSystem.getStorageFolder(), "natives_" + Integer.toHexString(computeNativesHash())); if (!extractionDir.exists()) { extractionDir.mkdir(); } }
/** * Creates a new program cache associated with the specified context and * devices. * The cached programs are built against the specified device and also * only the binaries linked to that device are stored. * @param context the OpenCL context * @param device the OpenCL device */ public ProgramCache(Context context, Device device) { this.context = context; this.device = device; if (JmeSystem.isLowPermissions()) { tmpFolder = null; } else { tmpFolder = JmeSystem.getStorageFolder(); } }
Savable sav = null; try { File baseFolder = JmeSystem.getStorageFolder(storageType); if (baseFolder == null) { Logger.getLogger(SaveGame.class.getName()).log(Level.SEVERE, "Error reading base storage folder!");
OutputStream os = null; try { File baseFolder = JmeSystem.getStorageFolder(storageType); if (baseFolder == null) { Logger.getLogger(SaveGame.class.getName()).log(Level.SEVERE, "Error creating save file!");
file = new File(JmeSystem.getStorageFolder() + File.separator + filename + ".png").getAbsoluteFile(); } else { file = new File(filePath + filename + ".png").getAbsoluteFile();