From 1f56d71f190c67325bdc413dfbc6c8e4b8284d98 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 19 Mar 2012 20:44:07 +0200 Subject: [PATCH] Rework directory structure --- share/{server => }/builtin.lua | 0 .../games/mesetint/mods/bucket/depends.txt | 0 .../games/mesetint/mods/bucket/init.lua | 0 .../mesetint/mods/bucket/textures/bucket.png | Bin .../mods/bucket/textures/bucket_lava.png | Bin .../mods/bucket/textures/bucket_water.png | Bin .../games/mesetint/mods/default/init.lua | 0 .../mesetint/mods/default/textures/crack.png | Bin .../mods/default/textures/default_apple.png | Bin .../mods/default/textures/default_book.png | Bin .../default/textures/default_bookshelf.png | Bin .../mods/default/textures/default_brick.png | Bin .../default/textures/default_cactus_side.png | Bin .../default/textures/default_cactus_top.png | Bin .../default/textures/default_chest_front.png | Bin .../default/textures/default_chest_lock.png | Bin .../default/textures/default_chest_side.png | Bin .../default/textures/default_chest_top.png | Bin .../mods/default/textures/default_clay.png | Bin .../default/textures/default_clay_brick.png | Bin .../default/textures/default_clay_lump.png | Bin .../mods/default/textures/default_cloud.png | Bin .../default/textures/default_coal_lump.png | Bin .../mods/default/textures/default_cobble.png | Bin .../mods/default/textures/default_dirt.png | Bin .../mods/default/textures/default_fence.png | Bin .../textures/default_furnace_front.png | Bin .../default/textures/default_furnace_side.png | Bin .../mods/default/textures/default_glass.png | Bin .../mods/default/textures/default_grass.png | Bin .../textures/default_grass_footsteps.png | Bin .../default/textures/default_grass_side.png | Bin .../mods/default/textures/default_gravel.png | Bin .../default/textures/default_iron_lump.png | Bin .../default/textures/default_junglegrass.png | Bin .../default/textures/default_jungletree.png | Bin .../textures/default_jungletree_top.png | Bin .../mods/default/textures/default_ladder.png | Bin .../mods/default/textures/default_lava.png | Bin .../mods/default/textures/default_leaves.png | Bin .../mods/default/textures/default_mese.png | Bin .../default/textures/default_mineral_coal.png | Bin .../default/textures/default_mineral_iron.png | Bin .../default/textures/default_mossycobble.png | Bin .../mods/default/textures/default_nc_back.png | Bin .../default/textures/default_nc_front.png | Bin .../mods/default/textures/default_nc_rb.png | Bin .../mods/default/textures/default_nc_side.png | Bin .../mods/default/textures/default_paper.png | Bin .../mods/default/textures/default_papyrus.png | Bin .../mods/default/textures/default_rail.png | Bin .../textures/default_rail_crossing.png | Bin .../default/textures/default_rail_curved.png | Bin .../textures/default_rail_t_junction.png | Bin .../mods/default/textures/default_sand.png | Bin .../default/textures/default_sandstone.png | Bin .../mods/default/textures/default_sapling.png | Bin .../textures/default_scorched_stuff.png | Bin .../default/textures/default_sign_wall.png | Bin .../default/textures/default_steel_block.png | Bin .../default/textures/default_steel_ingot.png | Bin .../mods/default/textures/default_stick.png | Bin .../mods/default/textures/default_stone.png | Bin .../default/textures/default_tnt_bottom.png | Bin .../default/textures/default_tnt_side.png | Bin .../mods/default/textures/default_tnt_top.png | Bin .../textures/default_tool_mesepick.png | Bin .../textures/default_tool_steelaxe.png | Bin .../textures/default_tool_steelpick.png | Bin .../textures/default_tool_steelshovel.png | Bin .../textures/default_tool_steelsword.png | Bin .../textures/default_tool_stoneaxe.png | Bin .../textures/default_tool_stonepick.png | Bin .../textures/default_tool_stoneshovel.png | Bin .../textures/default_tool_stonesword.png | Bin .../default/textures/default_tool_woodaxe.png | Bin .../textures/default_tool_woodpick.png | Bin .../textures/default_tool_woodshovel.png | Bin .../textures/default_tool_woodsword.png | Bin .../mods/default/textures/default_torch.png | Bin .../textures/default_torch_on_ceiling.png | Bin .../textures/default_torch_on_floor.png | Bin .../mods/default/textures/default_tree.png | Bin .../default/textures/default_tree_top.png | Bin .../mods/default/textures/default_water.png | Bin .../mods/default/textures/default_wood.png | Bin .../mesetint/mods/default/textures/heart.png | Bin .../mesetint/mods/default/textures/player.png | Bin .../mods/default/textures/player_back.png | Bin .../mods/default/textures/treeprop.png | Bin .../mods/default/textures/wieldhand.png | Bin .../mesetint/mods/experimental/depends.txt | 0 .../games/mesetint/mods/experimental/init.lua | 0 .../textures/experimental_dummyball.png | Bin .../mods/give_initial_stuff/depends.txt | 0 .../mesetint/mods/give_initial_stuff/init.lua | 0 .../games/mesetint/mods/legacy/depends.txt | 0 .../games/mesetint/mods/legacy/init.lua | 0 .../mods/legacy/textures/apple_iron.png | Bin .../mods/legacy/textures/cooked_rat.png | Bin .../mods/legacy/textures/dungeon_master.png | Bin .../mods/legacy/textures/fireball.png | Bin .../mesetint/mods/legacy/textures/firefly.png | Bin .../mesetint/mods/legacy/textures/oerkki1.png | Bin .../mods/legacy/textures/oerkki1_damaged.png | Bin .../mesetint/mods/legacy/textures/rat.png | Bin src/main.cpp | 11 +++++--- src/server.cpp | 6 +---- src/server.h | 3 --- src/subgame.cpp | 24 +++++++----------- 110 files changed, 18 insertions(+), 26 deletions(-) rename share/{server => }/builtin.lua (100%) rename share/{server => }/games/mesetint/mods/bucket/depends.txt (100%) rename share/{server => }/games/mesetint/mods/bucket/init.lua (100%) rename share/{server => }/games/mesetint/mods/bucket/textures/bucket.png (100%) rename share/{server => }/games/mesetint/mods/bucket/textures/bucket_lava.png (100%) rename share/{server => }/games/mesetint/mods/bucket/textures/bucket_water.png (100%) rename share/{server => }/games/mesetint/mods/default/init.lua (100%) rename share/{server => }/games/mesetint/mods/default/textures/crack.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_apple.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_book.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_bookshelf.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_brick.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_cactus_side.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_cactus_top.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_chest_front.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_chest_lock.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_chest_side.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_chest_top.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_clay.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_clay_brick.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_clay_lump.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_cloud.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_coal_lump.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_cobble.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_dirt.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_fence.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_furnace_front.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_furnace_side.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_glass.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_grass.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_grass_footsteps.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_grass_side.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_gravel.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_iron_lump.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_junglegrass.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_jungletree.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_jungletree_top.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_ladder.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_lava.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_leaves.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_mese.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_mineral_coal.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_mineral_iron.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_mossycobble.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_nc_back.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_nc_front.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_nc_rb.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_nc_side.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_paper.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_papyrus.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_rail.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_rail_crossing.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_rail_curved.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_rail_t_junction.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_sand.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_sandstone.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_sapling.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_scorched_stuff.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_sign_wall.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_steel_block.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_steel_ingot.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_stick.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_stone.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tnt_bottom.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tnt_side.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tnt_top.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tool_mesepick.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tool_steelaxe.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tool_steelpick.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tool_steelshovel.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tool_steelsword.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tool_stoneaxe.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tool_stonepick.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tool_stoneshovel.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tool_stonesword.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tool_woodaxe.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tool_woodpick.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tool_woodshovel.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tool_woodsword.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_torch.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_torch_on_ceiling.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_torch_on_floor.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tree.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_tree_top.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_water.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/default_wood.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/heart.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/player.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/player_back.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/treeprop.png (100%) rename share/{server => }/games/mesetint/mods/default/textures/wieldhand.png (100%) rename share/{server => }/games/mesetint/mods/experimental/depends.txt (100%) rename share/{server => }/games/mesetint/mods/experimental/init.lua (100%) rename share/{server => }/games/mesetint/mods/experimental/textures/experimental_dummyball.png (100%) rename share/{server => }/games/mesetint/mods/give_initial_stuff/depends.txt (100%) rename share/{server => }/games/mesetint/mods/give_initial_stuff/init.lua (100%) rename share/{server => }/games/mesetint/mods/legacy/depends.txt (100%) rename share/{server => }/games/mesetint/mods/legacy/init.lua (100%) rename share/{server => }/games/mesetint/mods/legacy/textures/apple_iron.png (100%) rename share/{server => }/games/mesetint/mods/legacy/textures/cooked_rat.png (100%) rename share/{server => }/games/mesetint/mods/legacy/textures/dungeon_master.png (100%) rename share/{server => }/games/mesetint/mods/legacy/textures/fireball.png (100%) rename share/{server => }/games/mesetint/mods/legacy/textures/firefly.png (100%) rename share/{server => }/games/mesetint/mods/legacy/textures/oerkki1.png (100%) rename share/{server => }/games/mesetint/mods/legacy/textures/oerkki1_damaged.png (100%) rename share/{server => }/games/mesetint/mods/legacy/textures/rat.png (100%) diff --git a/share/server/builtin.lua b/share/builtin.lua similarity index 100% rename from share/server/builtin.lua rename to share/builtin.lua diff --git a/share/server/games/mesetint/mods/bucket/depends.txt b/share/games/mesetint/mods/bucket/depends.txt similarity index 100% rename from share/server/games/mesetint/mods/bucket/depends.txt rename to share/games/mesetint/mods/bucket/depends.txt diff --git a/share/server/games/mesetint/mods/bucket/init.lua b/share/games/mesetint/mods/bucket/init.lua similarity index 100% rename from share/server/games/mesetint/mods/bucket/init.lua rename to share/games/mesetint/mods/bucket/init.lua diff --git a/share/server/games/mesetint/mods/bucket/textures/bucket.png b/share/games/mesetint/mods/bucket/textures/bucket.png similarity index 100% rename from share/server/games/mesetint/mods/bucket/textures/bucket.png rename to share/games/mesetint/mods/bucket/textures/bucket.png diff --git a/share/server/games/mesetint/mods/bucket/textures/bucket_lava.png b/share/games/mesetint/mods/bucket/textures/bucket_lava.png similarity index 100% rename from share/server/games/mesetint/mods/bucket/textures/bucket_lava.png rename to share/games/mesetint/mods/bucket/textures/bucket_lava.png diff --git a/share/server/games/mesetint/mods/bucket/textures/bucket_water.png b/share/games/mesetint/mods/bucket/textures/bucket_water.png similarity index 100% rename from share/server/games/mesetint/mods/bucket/textures/bucket_water.png rename to share/games/mesetint/mods/bucket/textures/bucket_water.png diff --git a/share/server/games/mesetint/mods/default/init.lua b/share/games/mesetint/mods/default/init.lua similarity index 100% rename from share/server/games/mesetint/mods/default/init.lua rename to share/games/mesetint/mods/default/init.lua diff --git a/share/server/games/mesetint/mods/default/textures/crack.png b/share/games/mesetint/mods/default/textures/crack.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/crack.png rename to share/games/mesetint/mods/default/textures/crack.png diff --git a/share/server/games/mesetint/mods/default/textures/default_apple.png b/share/games/mesetint/mods/default/textures/default_apple.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_apple.png rename to share/games/mesetint/mods/default/textures/default_apple.png diff --git a/share/server/games/mesetint/mods/default/textures/default_book.png b/share/games/mesetint/mods/default/textures/default_book.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_book.png rename to share/games/mesetint/mods/default/textures/default_book.png diff --git a/share/server/games/mesetint/mods/default/textures/default_bookshelf.png b/share/games/mesetint/mods/default/textures/default_bookshelf.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_bookshelf.png rename to share/games/mesetint/mods/default/textures/default_bookshelf.png diff --git a/share/server/games/mesetint/mods/default/textures/default_brick.png b/share/games/mesetint/mods/default/textures/default_brick.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_brick.png rename to share/games/mesetint/mods/default/textures/default_brick.png diff --git a/share/server/games/mesetint/mods/default/textures/default_cactus_side.png b/share/games/mesetint/mods/default/textures/default_cactus_side.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_cactus_side.png rename to share/games/mesetint/mods/default/textures/default_cactus_side.png diff --git a/share/server/games/mesetint/mods/default/textures/default_cactus_top.png b/share/games/mesetint/mods/default/textures/default_cactus_top.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_cactus_top.png rename to share/games/mesetint/mods/default/textures/default_cactus_top.png diff --git a/share/server/games/mesetint/mods/default/textures/default_chest_front.png b/share/games/mesetint/mods/default/textures/default_chest_front.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_chest_front.png rename to share/games/mesetint/mods/default/textures/default_chest_front.png diff --git a/share/server/games/mesetint/mods/default/textures/default_chest_lock.png b/share/games/mesetint/mods/default/textures/default_chest_lock.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_chest_lock.png rename to share/games/mesetint/mods/default/textures/default_chest_lock.png diff --git a/share/server/games/mesetint/mods/default/textures/default_chest_side.png b/share/games/mesetint/mods/default/textures/default_chest_side.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_chest_side.png rename to share/games/mesetint/mods/default/textures/default_chest_side.png diff --git a/share/server/games/mesetint/mods/default/textures/default_chest_top.png b/share/games/mesetint/mods/default/textures/default_chest_top.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_chest_top.png rename to share/games/mesetint/mods/default/textures/default_chest_top.png diff --git a/share/server/games/mesetint/mods/default/textures/default_clay.png b/share/games/mesetint/mods/default/textures/default_clay.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_clay.png rename to share/games/mesetint/mods/default/textures/default_clay.png diff --git a/share/server/games/mesetint/mods/default/textures/default_clay_brick.png b/share/games/mesetint/mods/default/textures/default_clay_brick.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_clay_brick.png rename to share/games/mesetint/mods/default/textures/default_clay_brick.png diff --git a/share/server/games/mesetint/mods/default/textures/default_clay_lump.png b/share/games/mesetint/mods/default/textures/default_clay_lump.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_clay_lump.png rename to share/games/mesetint/mods/default/textures/default_clay_lump.png diff --git a/share/server/games/mesetint/mods/default/textures/default_cloud.png b/share/games/mesetint/mods/default/textures/default_cloud.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_cloud.png rename to share/games/mesetint/mods/default/textures/default_cloud.png diff --git a/share/server/games/mesetint/mods/default/textures/default_coal_lump.png b/share/games/mesetint/mods/default/textures/default_coal_lump.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_coal_lump.png rename to share/games/mesetint/mods/default/textures/default_coal_lump.png diff --git a/share/server/games/mesetint/mods/default/textures/default_cobble.png b/share/games/mesetint/mods/default/textures/default_cobble.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_cobble.png rename to share/games/mesetint/mods/default/textures/default_cobble.png diff --git a/share/server/games/mesetint/mods/default/textures/default_dirt.png b/share/games/mesetint/mods/default/textures/default_dirt.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_dirt.png rename to share/games/mesetint/mods/default/textures/default_dirt.png diff --git a/share/server/games/mesetint/mods/default/textures/default_fence.png b/share/games/mesetint/mods/default/textures/default_fence.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_fence.png rename to share/games/mesetint/mods/default/textures/default_fence.png diff --git a/share/server/games/mesetint/mods/default/textures/default_furnace_front.png b/share/games/mesetint/mods/default/textures/default_furnace_front.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_furnace_front.png rename to share/games/mesetint/mods/default/textures/default_furnace_front.png diff --git a/share/server/games/mesetint/mods/default/textures/default_furnace_side.png b/share/games/mesetint/mods/default/textures/default_furnace_side.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_furnace_side.png rename to share/games/mesetint/mods/default/textures/default_furnace_side.png diff --git a/share/server/games/mesetint/mods/default/textures/default_glass.png b/share/games/mesetint/mods/default/textures/default_glass.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_glass.png rename to share/games/mesetint/mods/default/textures/default_glass.png diff --git a/share/server/games/mesetint/mods/default/textures/default_grass.png b/share/games/mesetint/mods/default/textures/default_grass.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_grass.png rename to share/games/mesetint/mods/default/textures/default_grass.png diff --git a/share/server/games/mesetint/mods/default/textures/default_grass_footsteps.png b/share/games/mesetint/mods/default/textures/default_grass_footsteps.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_grass_footsteps.png rename to share/games/mesetint/mods/default/textures/default_grass_footsteps.png diff --git a/share/server/games/mesetint/mods/default/textures/default_grass_side.png b/share/games/mesetint/mods/default/textures/default_grass_side.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_grass_side.png rename to share/games/mesetint/mods/default/textures/default_grass_side.png diff --git a/share/server/games/mesetint/mods/default/textures/default_gravel.png b/share/games/mesetint/mods/default/textures/default_gravel.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_gravel.png rename to share/games/mesetint/mods/default/textures/default_gravel.png diff --git a/share/server/games/mesetint/mods/default/textures/default_iron_lump.png b/share/games/mesetint/mods/default/textures/default_iron_lump.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_iron_lump.png rename to share/games/mesetint/mods/default/textures/default_iron_lump.png diff --git a/share/server/games/mesetint/mods/default/textures/default_junglegrass.png b/share/games/mesetint/mods/default/textures/default_junglegrass.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_junglegrass.png rename to share/games/mesetint/mods/default/textures/default_junglegrass.png diff --git a/share/server/games/mesetint/mods/default/textures/default_jungletree.png b/share/games/mesetint/mods/default/textures/default_jungletree.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_jungletree.png rename to share/games/mesetint/mods/default/textures/default_jungletree.png diff --git a/share/server/games/mesetint/mods/default/textures/default_jungletree_top.png b/share/games/mesetint/mods/default/textures/default_jungletree_top.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_jungletree_top.png rename to share/games/mesetint/mods/default/textures/default_jungletree_top.png diff --git a/share/server/games/mesetint/mods/default/textures/default_ladder.png b/share/games/mesetint/mods/default/textures/default_ladder.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_ladder.png rename to share/games/mesetint/mods/default/textures/default_ladder.png diff --git a/share/server/games/mesetint/mods/default/textures/default_lava.png b/share/games/mesetint/mods/default/textures/default_lava.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_lava.png rename to share/games/mesetint/mods/default/textures/default_lava.png diff --git a/share/server/games/mesetint/mods/default/textures/default_leaves.png b/share/games/mesetint/mods/default/textures/default_leaves.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_leaves.png rename to share/games/mesetint/mods/default/textures/default_leaves.png diff --git a/share/server/games/mesetint/mods/default/textures/default_mese.png b/share/games/mesetint/mods/default/textures/default_mese.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_mese.png rename to share/games/mesetint/mods/default/textures/default_mese.png diff --git a/share/server/games/mesetint/mods/default/textures/default_mineral_coal.png b/share/games/mesetint/mods/default/textures/default_mineral_coal.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_mineral_coal.png rename to share/games/mesetint/mods/default/textures/default_mineral_coal.png diff --git a/share/server/games/mesetint/mods/default/textures/default_mineral_iron.png b/share/games/mesetint/mods/default/textures/default_mineral_iron.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_mineral_iron.png rename to share/games/mesetint/mods/default/textures/default_mineral_iron.png diff --git a/share/server/games/mesetint/mods/default/textures/default_mossycobble.png b/share/games/mesetint/mods/default/textures/default_mossycobble.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_mossycobble.png rename to share/games/mesetint/mods/default/textures/default_mossycobble.png diff --git a/share/server/games/mesetint/mods/default/textures/default_nc_back.png b/share/games/mesetint/mods/default/textures/default_nc_back.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_nc_back.png rename to share/games/mesetint/mods/default/textures/default_nc_back.png diff --git a/share/server/games/mesetint/mods/default/textures/default_nc_front.png b/share/games/mesetint/mods/default/textures/default_nc_front.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_nc_front.png rename to share/games/mesetint/mods/default/textures/default_nc_front.png diff --git a/share/server/games/mesetint/mods/default/textures/default_nc_rb.png b/share/games/mesetint/mods/default/textures/default_nc_rb.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_nc_rb.png rename to share/games/mesetint/mods/default/textures/default_nc_rb.png diff --git a/share/server/games/mesetint/mods/default/textures/default_nc_side.png b/share/games/mesetint/mods/default/textures/default_nc_side.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_nc_side.png rename to share/games/mesetint/mods/default/textures/default_nc_side.png diff --git a/share/server/games/mesetint/mods/default/textures/default_paper.png b/share/games/mesetint/mods/default/textures/default_paper.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_paper.png rename to share/games/mesetint/mods/default/textures/default_paper.png diff --git a/share/server/games/mesetint/mods/default/textures/default_papyrus.png b/share/games/mesetint/mods/default/textures/default_papyrus.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_papyrus.png rename to share/games/mesetint/mods/default/textures/default_papyrus.png diff --git a/share/server/games/mesetint/mods/default/textures/default_rail.png b/share/games/mesetint/mods/default/textures/default_rail.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_rail.png rename to share/games/mesetint/mods/default/textures/default_rail.png diff --git a/share/server/games/mesetint/mods/default/textures/default_rail_crossing.png b/share/games/mesetint/mods/default/textures/default_rail_crossing.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_rail_crossing.png rename to share/games/mesetint/mods/default/textures/default_rail_crossing.png diff --git a/share/server/games/mesetint/mods/default/textures/default_rail_curved.png b/share/games/mesetint/mods/default/textures/default_rail_curved.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_rail_curved.png rename to share/games/mesetint/mods/default/textures/default_rail_curved.png diff --git a/share/server/games/mesetint/mods/default/textures/default_rail_t_junction.png b/share/games/mesetint/mods/default/textures/default_rail_t_junction.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_rail_t_junction.png rename to share/games/mesetint/mods/default/textures/default_rail_t_junction.png diff --git a/share/server/games/mesetint/mods/default/textures/default_sand.png b/share/games/mesetint/mods/default/textures/default_sand.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_sand.png rename to share/games/mesetint/mods/default/textures/default_sand.png diff --git a/share/server/games/mesetint/mods/default/textures/default_sandstone.png b/share/games/mesetint/mods/default/textures/default_sandstone.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_sandstone.png rename to share/games/mesetint/mods/default/textures/default_sandstone.png diff --git a/share/server/games/mesetint/mods/default/textures/default_sapling.png b/share/games/mesetint/mods/default/textures/default_sapling.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_sapling.png rename to share/games/mesetint/mods/default/textures/default_sapling.png diff --git a/share/server/games/mesetint/mods/default/textures/default_scorched_stuff.png b/share/games/mesetint/mods/default/textures/default_scorched_stuff.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_scorched_stuff.png rename to share/games/mesetint/mods/default/textures/default_scorched_stuff.png diff --git a/share/server/games/mesetint/mods/default/textures/default_sign_wall.png b/share/games/mesetint/mods/default/textures/default_sign_wall.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_sign_wall.png rename to share/games/mesetint/mods/default/textures/default_sign_wall.png diff --git a/share/server/games/mesetint/mods/default/textures/default_steel_block.png b/share/games/mesetint/mods/default/textures/default_steel_block.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_steel_block.png rename to share/games/mesetint/mods/default/textures/default_steel_block.png diff --git a/share/server/games/mesetint/mods/default/textures/default_steel_ingot.png b/share/games/mesetint/mods/default/textures/default_steel_ingot.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_steel_ingot.png rename to share/games/mesetint/mods/default/textures/default_steel_ingot.png diff --git a/share/server/games/mesetint/mods/default/textures/default_stick.png b/share/games/mesetint/mods/default/textures/default_stick.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_stick.png rename to share/games/mesetint/mods/default/textures/default_stick.png diff --git a/share/server/games/mesetint/mods/default/textures/default_stone.png b/share/games/mesetint/mods/default/textures/default_stone.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_stone.png rename to share/games/mesetint/mods/default/textures/default_stone.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tnt_bottom.png b/share/games/mesetint/mods/default/textures/default_tnt_bottom.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tnt_bottom.png rename to share/games/mesetint/mods/default/textures/default_tnt_bottom.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tnt_side.png b/share/games/mesetint/mods/default/textures/default_tnt_side.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tnt_side.png rename to share/games/mesetint/mods/default/textures/default_tnt_side.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tnt_top.png b/share/games/mesetint/mods/default/textures/default_tnt_top.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tnt_top.png rename to share/games/mesetint/mods/default/textures/default_tnt_top.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tool_mesepick.png b/share/games/mesetint/mods/default/textures/default_tool_mesepick.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tool_mesepick.png rename to share/games/mesetint/mods/default/textures/default_tool_mesepick.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tool_steelaxe.png b/share/games/mesetint/mods/default/textures/default_tool_steelaxe.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tool_steelaxe.png rename to share/games/mesetint/mods/default/textures/default_tool_steelaxe.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tool_steelpick.png b/share/games/mesetint/mods/default/textures/default_tool_steelpick.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tool_steelpick.png rename to share/games/mesetint/mods/default/textures/default_tool_steelpick.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tool_steelshovel.png b/share/games/mesetint/mods/default/textures/default_tool_steelshovel.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tool_steelshovel.png rename to share/games/mesetint/mods/default/textures/default_tool_steelshovel.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tool_steelsword.png b/share/games/mesetint/mods/default/textures/default_tool_steelsword.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tool_steelsword.png rename to share/games/mesetint/mods/default/textures/default_tool_steelsword.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tool_stoneaxe.png b/share/games/mesetint/mods/default/textures/default_tool_stoneaxe.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tool_stoneaxe.png rename to share/games/mesetint/mods/default/textures/default_tool_stoneaxe.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tool_stonepick.png b/share/games/mesetint/mods/default/textures/default_tool_stonepick.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tool_stonepick.png rename to share/games/mesetint/mods/default/textures/default_tool_stonepick.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tool_stoneshovel.png b/share/games/mesetint/mods/default/textures/default_tool_stoneshovel.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tool_stoneshovel.png rename to share/games/mesetint/mods/default/textures/default_tool_stoneshovel.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tool_stonesword.png b/share/games/mesetint/mods/default/textures/default_tool_stonesword.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tool_stonesword.png rename to share/games/mesetint/mods/default/textures/default_tool_stonesword.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tool_woodaxe.png b/share/games/mesetint/mods/default/textures/default_tool_woodaxe.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tool_woodaxe.png rename to share/games/mesetint/mods/default/textures/default_tool_woodaxe.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tool_woodpick.png b/share/games/mesetint/mods/default/textures/default_tool_woodpick.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tool_woodpick.png rename to share/games/mesetint/mods/default/textures/default_tool_woodpick.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tool_woodshovel.png b/share/games/mesetint/mods/default/textures/default_tool_woodshovel.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tool_woodshovel.png rename to share/games/mesetint/mods/default/textures/default_tool_woodshovel.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tool_woodsword.png b/share/games/mesetint/mods/default/textures/default_tool_woodsword.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tool_woodsword.png rename to share/games/mesetint/mods/default/textures/default_tool_woodsword.png diff --git a/share/server/games/mesetint/mods/default/textures/default_torch.png b/share/games/mesetint/mods/default/textures/default_torch.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_torch.png rename to share/games/mesetint/mods/default/textures/default_torch.png diff --git a/share/server/games/mesetint/mods/default/textures/default_torch_on_ceiling.png b/share/games/mesetint/mods/default/textures/default_torch_on_ceiling.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_torch_on_ceiling.png rename to share/games/mesetint/mods/default/textures/default_torch_on_ceiling.png diff --git a/share/server/games/mesetint/mods/default/textures/default_torch_on_floor.png b/share/games/mesetint/mods/default/textures/default_torch_on_floor.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_torch_on_floor.png rename to share/games/mesetint/mods/default/textures/default_torch_on_floor.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tree.png b/share/games/mesetint/mods/default/textures/default_tree.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tree.png rename to share/games/mesetint/mods/default/textures/default_tree.png diff --git a/share/server/games/mesetint/mods/default/textures/default_tree_top.png b/share/games/mesetint/mods/default/textures/default_tree_top.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_tree_top.png rename to share/games/mesetint/mods/default/textures/default_tree_top.png diff --git a/share/server/games/mesetint/mods/default/textures/default_water.png b/share/games/mesetint/mods/default/textures/default_water.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_water.png rename to share/games/mesetint/mods/default/textures/default_water.png diff --git a/share/server/games/mesetint/mods/default/textures/default_wood.png b/share/games/mesetint/mods/default/textures/default_wood.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/default_wood.png rename to share/games/mesetint/mods/default/textures/default_wood.png diff --git a/share/server/games/mesetint/mods/default/textures/heart.png b/share/games/mesetint/mods/default/textures/heart.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/heart.png rename to share/games/mesetint/mods/default/textures/heart.png diff --git a/share/server/games/mesetint/mods/default/textures/player.png b/share/games/mesetint/mods/default/textures/player.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/player.png rename to share/games/mesetint/mods/default/textures/player.png diff --git a/share/server/games/mesetint/mods/default/textures/player_back.png b/share/games/mesetint/mods/default/textures/player_back.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/player_back.png rename to share/games/mesetint/mods/default/textures/player_back.png diff --git a/share/server/games/mesetint/mods/default/textures/treeprop.png b/share/games/mesetint/mods/default/textures/treeprop.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/treeprop.png rename to share/games/mesetint/mods/default/textures/treeprop.png diff --git a/share/server/games/mesetint/mods/default/textures/wieldhand.png b/share/games/mesetint/mods/default/textures/wieldhand.png similarity index 100% rename from share/server/games/mesetint/mods/default/textures/wieldhand.png rename to share/games/mesetint/mods/default/textures/wieldhand.png diff --git a/share/server/games/mesetint/mods/experimental/depends.txt b/share/games/mesetint/mods/experimental/depends.txt similarity index 100% rename from share/server/games/mesetint/mods/experimental/depends.txt rename to share/games/mesetint/mods/experimental/depends.txt diff --git a/share/server/games/mesetint/mods/experimental/init.lua b/share/games/mesetint/mods/experimental/init.lua similarity index 100% rename from share/server/games/mesetint/mods/experimental/init.lua rename to share/games/mesetint/mods/experimental/init.lua diff --git a/share/server/games/mesetint/mods/experimental/textures/experimental_dummyball.png b/share/games/mesetint/mods/experimental/textures/experimental_dummyball.png similarity index 100% rename from share/server/games/mesetint/mods/experimental/textures/experimental_dummyball.png rename to share/games/mesetint/mods/experimental/textures/experimental_dummyball.png diff --git a/share/server/games/mesetint/mods/give_initial_stuff/depends.txt b/share/games/mesetint/mods/give_initial_stuff/depends.txt similarity index 100% rename from share/server/games/mesetint/mods/give_initial_stuff/depends.txt rename to share/games/mesetint/mods/give_initial_stuff/depends.txt diff --git a/share/server/games/mesetint/mods/give_initial_stuff/init.lua b/share/games/mesetint/mods/give_initial_stuff/init.lua similarity index 100% rename from share/server/games/mesetint/mods/give_initial_stuff/init.lua rename to share/games/mesetint/mods/give_initial_stuff/init.lua diff --git a/share/server/games/mesetint/mods/legacy/depends.txt b/share/games/mesetint/mods/legacy/depends.txt similarity index 100% rename from share/server/games/mesetint/mods/legacy/depends.txt rename to share/games/mesetint/mods/legacy/depends.txt diff --git a/share/server/games/mesetint/mods/legacy/init.lua b/share/games/mesetint/mods/legacy/init.lua similarity index 100% rename from share/server/games/mesetint/mods/legacy/init.lua rename to share/games/mesetint/mods/legacy/init.lua diff --git a/share/server/games/mesetint/mods/legacy/textures/apple_iron.png b/share/games/mesetint/mods/legacy/textures/apple_iron.png similarity index 100% rename from share/server/games/mesetint/mods/legacy/textures/apple_iron.png rename to share/games/mesetint/mods/legacy/textures/apple_iron.png diff --git a/share/server/games/mesetint/mods/legacy/textures/cooked_rat.png b/share/games/mesetint/mods/legacy/textures/cooked_rat.png similarity index 100% rename from share/server/games/mesetint/mods/legacy/textures/cooked_rat.png rename to share/games/mesetint/mods/legacy/textures/cooked_rat.png diff --git a/share/server/games/mesetint/mods/legacy/textures/dungeon_master.png b/share/games/mesetint/mods/legacy/textures/dungeon_master.png similarity index 100% rename from share/server/games/mesetint/mods/legacy/textures/dungeon_master.png rename to share/games/mesetint/mods/legacy/textures/dungeon_master.png diff --git a/share/server/games/mesetint/mods/legacy/textures/fireball.png b/share/games/mesetint/mods/legacy/textures/fireball.png similarity index 100% rename from share/server/games/mesetint/mods/legacy/textures/fireball.png rename to share/games/mesetint/mods/legacy/textures/fireball.png diff --git a/share/server/games/mesetint/mods/legacy/textures/firefly.png b/share/games/mesetint/mods/legacy/textures/firefly.png similarity index 100% rename from share/server/games/mesetint/mods/legacy/textures/firefly.png rename to share/games/mesetint/mods/legacy/textures/firefly.png diff --git a/share/server/games/mesetint/mods/legacy/textures/oerkki1.png b/share/games/mesetint/mods/legacy/textures/oerkki1.png similarity index 100% rename from share/server/games/mesetint/mods/legacy/textures/oerkki1.png rename to share/games/mesetint/mods/legacy/textures/oerkki1.png diff --git a/share/server/games/mesetint/mods/legacy/textures/oerkki1_damaged.png b/share/games/mesetint/mods/legacy/textures/oerkki1_damaged.png similarity index 100% rename from share/server/games/mesetint/mods/legacy/textures/oerkki1_damaged.png rename to share/games/mesetint/mods/legacy/textures/oerkki1_damaged.png diff --git a/share/server/games/mesetint/mods/legacy/textures/rat.png b/share/games/mesetint/mods/legacy/textures/rat.png similarity index 100% rename from share/server/games/mesetint/mods/legacy/textures/rat.png rename to share/games/mesetint/mods/legacy/textures/rat.png diff --git a/src/main.cpp b/src/main.cpp index d08f8841..35595e5a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1033,8 +1033,13 @@ int main(int argc, char *argv[]) // No specific world was commanded // Check if the world is found from the default directory, and if // not, see if the legacy world directory exists. - world_path = porting::path_user + DIR_DELIM + "server" + DIR_DELIM + "worlds" + DIR_DELIM + "world"; - std::string legacy_world_path = porting::path_user+DIR_DELIM+".."+DIR_DELIM+"world"; + world_path = porting::path_user + DIR_DELIM + "worlds" + DIR_DELIM + "world"; +#ifdef RUN_IN_PLACE + std::string legacy_world_path = porting::path_user + DIR_DELIM + + ".." + DIR_DELIM + "world"; +#else + std::string legacy_world_path = porting::path_user + DIR_DELIM + "world"; +#endif if(!fs::PathExists(world_path) && fs::PathExists(legacy_world_path)){ errorstream<<"Warning: Using legacy world directory \"" < m_async_fatal_error; diff --git a/src/subgame.cpp b/src/subgame.cpp index d3453019..b4ae3185 100644 --- a/src/subgame.cpp +++ b/src/subgame.cpp @@ -27,14 +27,13 @@ SubgameSpec findSubgame(const std::string &id) { if(id == "") return SubgameSpec(); - std::string share_server = porting::path_share + DIR_DELIM + "server"; - std::string user_server = porting::path_user + DIR_DELIM + "server"; + std::string share = porting::path_share; + std::string user = porting::path_user; // Find game directory - std::string game_path = - user_server + DIR_DELIM + "games" + DIR_DELIM + id; + std::string game_path = user + DIR_DELIM + "games" + DIR_DELIM + id; bool user_game = true; // Game is in user's directory if(!fs::PathExists(game_path)){ - game_path = share_server + DIR_DELIM + "games" + DIR_DELIM + id; + game_path = share + DIR_DELIM + "games" + DIR_DELIM + id; user_game = false; } if(!fs::PathExists(game_path)) @@ -42,10 +41,8 @@ SubgameSpec findSubgame(const std::string &id) // Find addon directories std::set addon_paths; if(!user_game) - addon_paths.insert(share_server + DIR_DELIM + "addons" - + DIR_DELIM + id); - addon_paths.insert(user_server + DIR_DELIM + "addons" - + DIR_DELIM + id); + addon_paths.insert(share + DIR_DELIM + "addons" + DIR_DELIM + id); + addon_paths.insert(user + DIR_DELIM + "addons" + DIR_DELIM + id); // TODO: Read proper name from game_path/game.conf std::string game_name = id; return SubgameSpec(id, game_path, addon_paths, game_name); @@ -55,10 +52,8 @@ std::set getAvailableGameIds() { std::set gameids; std::set gamespaths; - gamespaths.insert(porting::path_share + DIR_DELIM + "server" - + DIR_DELIM + "games"); - gamespaths.insert(porting::path_user + DIR_DELIM + "server" - + DIR_DELIM + "games"); + gamespaths.insert(porting::path_share + DIR_DELIM + "games"); + gamespaths.insert(porting::path_user + DIR_DELIM + "games"); for(std::set::const_iterator i = gamespaths.begin(); i != gamespaths.end(); i++){ std::vector dirlist = fs::GetDirListing(*i); @@ -105,8 +100,7 @@ std::vector getAvailableWorlds() { std::vector worlds; std::set worldspaths; - worldspaths.insert(porting::path_user + DIR_DELIM + "server" - + DIR_DELIM + "worlds"); + worldspaths.insert(porting::path_user + DIR_DELIM + "worlds"); infostream<<"Searching worlds..."<::const_iterator i = worldspaths.begin(); i != worldspaths.end(); i++){ -- 2.30.2