forked from metin-server/m2dev-server
feat: Fixes in DB engines, SQL queries, added and improved Python management scripts, changed max level.
This commit is contained in:
@@ -57,6 +57,7 @@ def setup_links_game(target_dir, name):
|
||||
try_symlink(os.path.join(GAMEDIR, "share", "data"), "data", is_dir=True)
|
||||
try_symlink(os.path.join(GAMEDIR, "share", "locale"), "locale", is_dir=True)
|
||||
try_symlink(os.path.join(GAMEDIR, "share", "mark"), "mark", is_dir=True)
|
||||
try_symlink(os.path.join(GAMEDIR, "share", "package"), "package", is_dir=True)
|
||||
try_symlink(os.path.join(GAMEDIR, "share", "bin", "game"), name, is_dir=False)
|
||||
|
||||
# Helper function to create symlinks cross-platform
|
||||
@@ -86,6 +87,9 @@ if os.path.exists(channels_dir):
|
||||
print_green("> Clearing up channels...")
|
||||
shutil.rmtree(channels_dir)
|
||||
|
||||
package_dir = os.path.join(GAMEDIR, "share", "package")
|
||||
if not os.path.exists(package_dir):
|
||||
os.makedirs(package_dir)
|
||||
## DB Setup
|
||||
print_green("> Setting up environment for the DB Cache...")
|
||||
db_dir = os.path.join(GAMEDIR, "channels", "db")
|
||||
|
||||
Reference in New Issue
Block a user