Esempio n. 1
0
    public static void SaveSettings()
    {
        SettingsDb db = new SettingsDb();

        db.StoreSetting("master_volume", "" + Session.session.masterVolume);
        db.StoreSetting("sfx_volume", "" + Session.session.sfxVolume);
        db.StoreSetting("music_volume", "" + Session.session.musicVolume);
        db.StoreSetting("mouse_sensitivity_x", "" + Session.session.mouseSensitivityX);
        db.StoreSetting("mouse_sensitivity_y", "" + Session.session.mouseSensitivityY);
        db.StoreSetting("username", Session.session.userName);
        db.StoreSetting("player1_device", "" + (int)Session.session.player1Device);
        GD.Print("Saving player device as " + (int)Session.session.player1Device);
        Sound.RefreshVolume();
    }
Esempio n. 2
0
    public static void SaveSettings()
    {
        SettingsDb db = SettingsDb.Init();

        db.StoreSetting("master_volume", "" + Session.session.masterVolume);
        db.StoreSetting("sfx_volume", "" + Session.session.sfxVolume);
        db.StoreSetting("music_volume", "" + Session.session.musicVolume);
        db.StoreSetting("mouse_sensitivity_x", "" + Session.session.mouseSensitivityX);
        db.StoreSetting("mouse_sensitivity_y", "" + Session.session.mouseSensitivityY);
        db.StoreSetting("username", Session.session.userName);

        db.Close();
        Sound.RefreshVolume();
    }