mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
* Initial commit of network improvements Seperated server properties into their own file, this will eventually help facilitate a headless server. Fixed the localhost ip mapping to give the correct IP Address instead of failing and defaulting to "localhost" Fixed UPnP as well as added some additional options and choices regarding UPnP Added localization strings to all language files. (Translators will need to translate these, but the current English string is there for easy reference so they dont have to search the en-US file) * Initial commit of network improvements Seperated server properties into their own file, this will eventually help facilitate a headless server. Fixed the localhost ip mapping to give the correct IP Address instead of failing and defaulting to "localhost" Fixed UPnP as well as added some additional options and choices regarding UPnP Added localization strings to all language files. (Translators will need to translate these, but the current English string is there for easy reference so they dont have to search the en-US file) * Fixed properties file reference * Refactored server address parsing logic to use the Java URI class for improved readability and robustness. Extracted reusable code into separate functions to enhance modularity and maintainability. General code cleanup to improve structure and readability. * Fixed a potential issue if a protocol was already specified in the connection url. * Removed logger implementation as changing loggers is out of scope for this PR Reverted to JUPnP as its implementation is fixed in #7367 Made some of the new localization strings generic as they can be used elsewhere Added a server.preferences.example file removed the server port from the old location (forge.progile.properties.example) Added a server port back into ForgeConstants as it doesnt make sense for the prefered hosting port of the user to override the default Forge connection port. * resolve conflicts between this branch and master * Implemented a parent class for all preference Enums so they can be passed into a function regardless of type using IPref, necessary since I separated server settings into its own FNetPref file Added server preferences section to the preferences Desktop GUI Added a port preference setting and a UPnP preference setting to the aforementioned server preferences section Added a localizedComboBox and localizedComboBoxListener so that localized strings can be used in combobox dropdowns in the server preferences section. TODO: (In scope) The new server preferences section needs to be added to Android and IOS perhaps? TODO: (out of scope) GamePlayerUtil has a bunch on non localized english strings that should be converted to localized * Fixed unused import * Resolved merge conflicts Added server settings to the reset to defaults function
88 lines
3.8 KiB
Plaintext
88 lines
3.8 KiB
Plaintext
#
|
|
# forge.profile.properties.example
|
|
#
|
|
# To get started using this file, just copy or rename it to
|
|
# forge.profile.properties and edit one or more of the paths below.
|
|
#
|
|
# Normally, users will not need to do anything here. Keeping the default paths
|
|
# is an easy way to make sure your Forge settings and data are kept safe when
|
|
# you upgrade Forge, even if you install to a different path or delete the
|
|
# entire Forge program directory before you upgrade.
|
|
#
|
|
# If you need to, though, you can use this file to set the locations that Forge
|
|
# will use to store your data. However, remember that whenever you install a
|
|
# new version of Forge into a different directory, it will not see your data
|
|
# unless you copy this file into the new program directory.
|
|
#
|
|
# If you specify a relative path in this file, it will be relative to the Forge
|
|
# program directory. Note that paths defined in this file will each have the
|
|
# whitespace trimmed from their start and end. If you need the path to start or
|
|
# end with a space or tab character, put a slash before or after it, as
|
|
# appropriate. For example, for the directory "<forge dir>/ local ", use:
|
|
# xxxDir=./ local /
|
|
#
|
|
# Also note that all backslashes in this file need to be escaped themselves with
|
|
# a backslash. For example: d:\\mtg-pics. Forwards slashes work on all
|
|
# platforms, including Windows, and do not need to be escaped: d:/mtg-pics.
|
|
#
|
|
# EXAMPLES
|
|
# --------
|
|
#
|
|
# To have Forge use the default directories:
|
|
# userDir=
|
|
# cacheDir=
|
|
# cardPicsDir=
|
|
#
|
|
# To use a specific user data directory but the default cache dir on Windows:
|
|
# userDir=D:/ForgeData
|
|
# cacheDir=
|
|
# cardPicsDir=
|
|
#
|
|
# To put everything under a specific path on a Unix-based system:
|
|
# userDir=/local/path/forge
|
|
# cacheDir=/local/path/forge/cache
|
|
# cardPicsDir=
|
|
|
|
# This is where Forge will save your personal data, such as your saved decks,
|
|
# preferences, and quest progress. If you want to back up your data or copy it
|
|
# to another computer, this is the directory to copy. The default value is
|
|
# platform-specific, and may differ a bit from what is listed here if you have
|
|
# an older version of Windows:
|
|
# Windows: <your application data directory>/Forge/
|
|
# (usually, C:/Users/<your username>/Application Data/Roaming/Forge/)
|
|
# OSX: <your home directory>/Library/Application Support/Forge/
|
|
# Linux: <your home directory>/.forge/
|
|
userDir=
|
|
|
|
# This is where forge will keep downloaded content, such as card pictures and
|
|
# updated price lists. The default values are:
|
|
# Windows: <your local application data directory>/Forge/Cache/
|
|
# (usually C:/Users/<your username>/Application Data/Local/Forge/Cache/)
|
|
# OSX: <your home directory>/Library/Caches/Forge/
|
|
# Linux: <your home directory>/.cache/forge/
|
|
cacheDir=
|
|
|
|
# This is where forge will download and/or look for card picture data. The
|
|
# directory structure and filenames are the same as those used by Magic
|
|
# Workstation, and if you have both programs installed, you can share the same
|
|
# picture database between them. The default value (for all plaforms) is:
|
|
# <the cacheDir defined above>/pics/cards/
|
|
cardPicsDir=
|
|
|
|
# You may also specify custom folder names for each set, just in case you are
|
|
# using any uncommon picture storage folder structure. Specify 3-letter codes
|
|
# from res/blockdata/setsdata.txt, an arrow (->) and the sub-folder name that
|
|
# holds card images from that edition. Separate records by a vertical bar (|).
|
|
# Ex: cardPicsSubDirs=LEA->Alpha|ROE->Rise of Eldrazi
|
|
cardPicsSubDirs=
|
|
|
|
# This is the top level directory that forge will use for storing and
|
|
# locating decklists. The default value (for all plaforms) is:
|
|
# <the userDir defined above>/decks/
|
|
decksDir=
|
|
|
|
# This is where forge will look for your constructed format decklists.
|
|
# The default value (for all plaforms) is:
|
|
# <the decksDir defined above>/constructed/
|
|
decksConstructedDir=
|