Skip to content
Permalink
Browse files

bring back the old legacy dot-dir prefix as netradiant expects it to …

…do some divination for windows and macos
  • Loading branch information...
illwieckz committed May 18, 2019
1 parent b48e32d commit 9762b1f30b02c8dc65ee1a5be5afa4d59a110d80
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<game archivetypes="dpk" basegame="pkg" basegamename="Unvanquished" brushtypes="quake3" engine_linux="daemon" engine_macos="daemon.app" engine_win32="daemon.exe" enginepath_linux="/usr/lib/unvanquished/" enginepath_macos="/Applications/Unvanquished/" enginepath_win32="C:/Program Files/Unvanquished/" entities="quake3" entityclass="quake3" index="1" maptypes="mapq3" modeltypes="md5mesh md3 ase lwo obj 3ds picoterrain" name="Unvanquished" patchtypes="quake3" prefix=".local/share/unvanquished" q3map2_type="unvanquished" shaderpath="scripts" shaders="quake3" type="unvanquished" unknowngamename="Custom Unvanquished modification">
<game archivetypes="dpk" basegame="pkg" basegamename="Unvanquished" brushtypes="quake3" engine_linux="daemon" engine_macos="daemon.app" engine_win32="daemon.exe" enginepath_linux="/usr/lib/unvanquished/" enginepath_macos="/Applications/Unvanquished/" enginepath_win32="C:/Program Files/Unvanquished/" entities="quake3" entityclass="quake3" index="1" maptypes="mapq3" modeltypes="md5mesh md3 ase lwo obj 3ds picoterrain" name="Unvanquished" patchtypes="quake3" prefix=".unvanquished" q3map2_type="unvanquished" shaderpath="scripts" shaders="quake3" type="unvanquished" unknowngamename="Custom Unvanquished modification">
<filetype>
<texture>
<extension>tga</extension>
@@ -1,3 +1,3 @@
<?xml version="1.0" ?>
<game archivetypes="dpk" basegame="pkg" basegamename="Unvanquished" brushtypes="quake3" engine_linux="daemon" engine_macos="daemon.app" engine_win32="daemon.exe" enginepath_linux="/usr/lib/unvanquished/" enginepath_macos="/Applications/Unvanquished/" enginepath_win32="C:/Program Files/Unvanquished/" entities="quake3" entityclass="quake3" entityclasstype="def" index="1" maptypes="mapq3" modeltypes="iqm md5mesh md3 ase lwo obj 3ds picoterrain" name="Unvanquished" patchtypes="quake3" prefix=".local/share/unvanquished" q3map2_type="unvanquished" shaderpath="scripts" shaders="quake3" texturetypes="tga jpg png pcx bmp webp crn dds" type="unvanquished" unknowngamename="Custom Unvanquished modification"/>
<game archivetypes="dpk" basegame="pkg" basegamename="Unvanquished" brushtypes="quake3" engine_linux="daemon" engine_macos="daemon.app" engine_win32="daemon.exe" enginepath_linux="/usr/lib/unvanquished/" enginepath_macos="/Applications/Unvanquished/" enginepath_win32="C:/Program Files/Unvanquished/" entities="quake3" entityclass="quake3" entityclasstype="def" index="1" maptypes="mapq3" modeltypes="iqm md5mesh md3 ase lwo obj 3ds picoterrain" name="Unvanquished" patchtypes="quake3" prefix=".unvanquished" q3map2_type="unvanquished" shaderpath="scripts" shaders="quake3" texturetypes="tga jpg png pcx bmp webp crn dds" type="unvanquished" unknowngamename="Custom Unvanquished modification"/>

@@ -132,10 +132,8 @@ def print_file(gamefile, editor):

if "home" in game.keys():
l0 = game["home"]
if "linux" in l0.keys():
l1 = l0["linux"]
if "legacy" in l1.keys():
attrib["prefix"] = l1["legacy"]
if "legacy" in l0.keys():
attrib["prefix"] = l0["legacy"]

if "entity" in ent.keys():
l0 = ent["entity"]
@@ -16,5 +16,4 @@ engine:
dir: "C:/Program Files/Unvanquished/"
name: "daemon.exe"
home:
linux:
legacy: ".local/share/unvanquished"
legacy: ".unvanquished"

0 comments on commit 9762b1f

Please sign in to comment.
You can’t perform that action at this time.