# Path: fofix/core/VFS.py
# class Mount(object):
# class StatResult(object):
#     def __init__(self):
#     def resolveRead(self, path):
#     def resolveWrite(self, path):
#     def listdir(self, path):
# def mount(dir, mountpt):
# def mountWritable(dir, mountpt):
# def _convertPath(path):
# def resolveRead(path):
# def resolveWrite(path):
#     def __init__(self, path):
#     def __len__(self):
#     def __getitem__(self, idx):
#     def __repr__(self):
# def stat(path):
# def listdir(path):
# def glob(pattern):
# def unlink(path):
# def mkdir(path):
# def rmdir(path):
# def rename(src, dest):
# def exists(path):
# def isfile(path):
# def isdir(path):
# def open(path, mode='r'):
# def openSqlite3(path):
# def getWritableResourcePath():


import logging
import os
import pygame
from fofix.core import Version
from fofix.core import VFS
from fofix.core.VideoPlayer import VideoLayer, VideoPlayerError
from fofix.core.GameEngine import GameEngine
from fofix.game.MainMenu import MainMenu
from fofix.core import Config
        self.fullscreen = self.args['fullscreen']
        self.resolution = self.args['resolution']
        self.theme = self.args['theme']

        self.config = self.load_config(self.configfile)

        # Lysdestic - Allow support for manipulating fullscreen via CLI
        if self.fullscreen is not None:
            Config.set("video", "fullscreen", self.fullscreen)

        # Lysdestic - Change resolution from CLI
        if self.resolution is not None:
            Config.set("video", "resolution", self.resolution)

        # Lysdestic - Alter theme from CLI
        if self.theme is not None:
            Config.set("coffee", "themename", self.theme)

        self.engine = GameEngine(self.config)

        self.videoLayer = False
        self.restartRequested = False

    @staticmethod
    def load_config(configPath):
        ''' Load the configuration file. '''
        if configPath is not None:
            if configPath.lower() == "reset":

                # Get os specific location of config file, and remove it.

# Path: fofix/core/VFS.py
# class Mount(object):
# class StatResult(object):
#     def __init__(self):
#     def resolveRead(self, path):
#     def resolveWrite(self, path):
#     def listdir(self, path):
# def mount(dir, mountpt):
# def mountWritable(dir, mountpt):
# def _convertPath(path):
# def resolveRead(path):
# def resolveWrite(path):
#     def __init__(self, path):
#     def __len__(self):
#     def __getitem__(self, idx):
#     def __repr__(self):
# def stat(path):
# def listdir(path):
# def glob(pattern):
# def unlink(path):
# def mkdir(path):
# def rmdir(path):
# def rename(src, dest):
# def exists(path):
# def isfile(path):
# def isdir(path):
# def open(path, mode='r'):
# def openSqlite3(path):
# def getWritableResourcePath():


# Path: fofix/game/Main.py
import logging
import os
import pygame
from fofix.core import Version
from fofix.core import VFS
from fofix.core.VideoPlayer import VideoLayer, VideoPlayerError
from fofix.core.GameEngine import GameEngine
from fofix.game.MainMenu import MainMenu
from fofix.core import Config

        self.fullscreen = self.args['fullscreen']
        self.resolution = self.args['resolution']
        self.theme = self.args['theme']

        self.config = self.load_config(self.configfile)

        # Lysdestic - Allow support for manipulating fullscreen via CLI
        if self.fullscreen is not None:
            Config.set("video", "fullscreen", self.fullscreen)

        # Lysdestic - Change resolution from CLI
        if self.resolution is not None:
            Config.set("video", "resolution", self.resolution)

        # Lysdestic - Alter theme from CLI
        if self.theme is not None:
            Config.set("coffee", "themename", self.theme)

        self.engine = GameEngine(self.config)

        self.videoLayer = False
        self.restartRequested = False

    @staticmethod
    def load_config(configPath):
        ''' Load the configuration file. '''
        if configPath is not None:
            if configPath.lower() == "reset":

                # Get os specific location of config file, and remove it.

                fileName = os.path.join(VFS.getWritableResourcePath(), Version.PROGRAM_UNIXSTYLE_NAME + ".ini")