<!--
 Copyright (c) 2019 Emilian Roman
 
 This software is provided 'as-is', without any express or implied
 warranty. In no event will the authors be held liable for any damages
 arising from the use of this software.
 
 Permission is granted to anyone to use this software for any purpose,
 including commercial applications, and to alter it and redistribute it
 freely, subject to the following restrictions:
 
 1. The origin of this software must not be misrepresented; you must not
    claim that you wrote the original software. If you use this software
    in a product, an acknowledgment in the product documentation would be
    appreciated but is not required.
 2. Altered source versions must be plainly marked as such, and must not be
    misrepresented as being the original software.
 3. This notice may not be removed or altered from any source distribution.
-->

INSTANCES
=========

To handle multiple SPV3.3 installations on the filesystem without
conflicts, the loader stores the data for each SPV3 instance in
isolation.

This is accomplished by having a dedicated data directory for each
installation. Refer to the following table for examples:

  spv3 installation   data directory
  ------------------- --------------------------------------
  C:\SPV3             a6896754-5cf9-4beb-bdba-9bd11c4ccd95
  D:\SPV3             d52af2bd-79dc-42e0-9968-033d9a82d3b7

All data directories are named using universally unique identifiers
(UUID/GUID), and are located at the following path:

    %APPDATA%\SPV3

DATABASE
--------

To ensure that the mapping between a SPV3 installation and its
respective data directory is persistent, a record is kept of each SPV3
installation's data path in the following file:

    %APPDATA%\SPV3\database.xml

Unlike other files, this one stores the data directly in XML for the
sake of permitting savvy users to modify the mappings as they see fit.

IDENTIFYING
-----------

Each SPV3 instance is uniquely identified by its installation path on
the filesystem. With this in mind, moving/renaming the folder for an
SPV3 installation will practically result in a new data folder being
created for it.
