Example usage for com.badlogic.gdx.backends.lwjgl3 Lwjgl3ApplicationConfiguration setPreferencesConfig

List of usage examples for com.badlogic.gdx.backends.lwjgl3 Lwjgl3ApplicationConfiguration setPreferencesConfig

Introduction

In this page you can find the example usage for com.badlogic.gdx.backends.lwjgl3 Lwjgl3ApplicationConfiguration setPreferencesConfig.

Prototype

public void setPreferencesConfig(String preferencesDirectory, Files.FileType preferencesFileType) 

Source Link

Document

Sets the directory where Preferences will be stored, as well as the file type to be used to store them.

Usage

From source file:com.agateau.pixelwheels.desktop.DesktopLauncher.java

License:Apache License

public static void main(String[] arg) {
    Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
    config.setWindowedMode(PwStageScreen.WIDTH, PwStageScreen.HEIGHT);
    config.setTitle("Pixel Wheels");
    config.setPreferencesConfig(".config/agateau.com", Files.FileType.External);
    config.useVsync(true);/*from w w  w.  j a  v a 2  s .c  om*/
    FileUtils.appName = "pixelwheels";
    new Lwjgl3Application(new PwGame(), config);
}