diff options
-rw-r--r-- | .gitignore | 38 | ||||
-rw-r--r-- | CMakeLists.txt | 24 | ||||
-rw-r--r-- | builtin/builtin.lua (renamed from share/builtin/builtin.lua) | 0 | ||||
-rw-r--r-- | cmake/Modules/FindGettextLib.cmake | 2 | ||||
-rw-r--r-- | games/mesetint/mods/bucket/depends.txt (renamed from share/games/mesetint/mods/bucket/depends.txt) | 0 | ||||
-rw-r--r-- | games/mesetint/mods/bucket/init.lua (renamed from share/games/mesetint/mods/bucket/init.lua) | 0 | ||||
-rw-r--r-- | games/mesetint/mods/bucket/textures/bucket.png (renamed from share/games/mesetint/mods/bucket/textures/bucket.png) | bin | 329 -> 329 bytes | |||
-rw-r--r-- | games/mesetint/mods/bucket/textures/bucket_lava.png (renamed from share/games/mesetint/mods/bucket/textures/bucket_lava.png) | bin | 363 -> 363 bytes | |||
-rw-r--r-- | games/mesetint/mods/bucket/textures/bucket_water.png (renamed from share/games/mesetint/mods/bucket/textures/bucket_water.png) | bin | 369 -> 369 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/init.lua (renamed from share/games/mesetint/mods/default/init.lua) | 0 | ||||
-rw-r--r-- | games/mesetint/mods/default/textures/crack.png (renamed from share/games/mesetint/mods/default/textures/crack.png) | bin | 1076 -> 1076 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_apple.png (renamed from share/games/mesetint/mods/default/textures/default_apple.png) | bin | 203 -> 203 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_book.png (renamed from share/games/mesetint/mods/default/textures/default_book.png) | bin | 292 -> 292 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_bookshelf.png (renamed from share/games/mesetint/mods/default/textures/default_bookshelf.png) | bin | 597 -> 597 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_brick.png (renamed from share/games/mesetint/mods/default/textures/default_brick.png) | bin | 604 -> 604 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_cactus_side.png (renamed from share/games/mesetint/mods/default/textures/default_cactus_side.png) | bin | 279 -> 279 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_cactus_top.png (renamed from share/games/mesetint/mods/default/textures/default_cactus_top.png) | bin | 236 -> 236 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_chest_front.png (renamed from share/games/mesetint/mods/default/textures/default_chest_front.png) | bin | 167 -> 167 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_chest_lock.png (renamed from share/games/mesetint/mods/default/textures/default_chest_lock.png) | bin | 224 -> 224 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_chest_side.png (renamed from share/games/mesetint/mods/default/textures/default_chest_side.png) | bin | 151 -> 151 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_chest_top.png (renamed from share/games/mesetint/mods/default/textures/default_chest_top.png) | bin | 142 -> 142 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_clay.png (renamed from share/games/mesetint/mods/default/textures/default_clay.png) | bin | 613 -> 613 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_clay_brick.png (renamed from share/games/mesetint/mods/default/textures/default_clay_brick.png) | bin | 249 -> 249 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_clay_lump.png (renamed from share/games/mesetint/mods/default/textures/default_clay_lump.png) | bin | 210 -> 210 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_cloud.png (renamed from share/games/mesetint/mods/default/textures/default_cloud.png) | bin | 118 -> 118 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_coal_lump.png (renamed from share/games/mesetint/mods/default/textures/default_coal_lump.png) | bin | 933 -> 933 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_cobble.png (renamed from share/games/mesetint/mods/default/textures/default_cobble.png) | bin | 830 -> 830 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_dirt.png (renamed from share/games/mesetint/mods/default/textures/default_dirt.png) | bin | 1586 -> 1586 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_fence.png (renamed from share/games/mesetint/mods/default/textures/default_fence.png) | bin | 539 -> 539 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_furnace_front.png (renamed from share/games/mesetint/mods/default/textures/default_furnace_front.png) | bin | 246 -> 246 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_furnace_side.png (renamed from share/games/mesetint/mods/default/textures/default_furnace_side.png) | bin | 236 -> 236 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_glass.png (renamed from share/games/mesetint/mods/default/textures/default_glass.png) | bin | 978 -> 978 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_grass.png (renamed from share/games/mesetint/mods/default/textures/default_grass.png) | bin | 874 -> 874 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_grass_footsteps.png (renamed from share/games/mesetint/mods/default/textures/default_grass_footsteps.png) | bin | 856 -> 856 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_grass_side.png (renamed from share/games/mesetint/mods/default/textures/default_grass_side.png) | bin | 878 -> 878 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_gravel.png (renamed from share/games/mesetint/mods/default/textures/default_gravel.png) | bin | 591 -> 591 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_iron_lump.png (renamed from share/games/mesetint/mods/default/textures/default_iron_lump.png) | bin | 936 -> 936 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_junglegrass.png (renamed from share/games/mesetint/mods/default/textures/default_junglegrass.png) | bin | 672 -> 672 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_jungletree.png (renamed from share/games/mesetint/mods/default/textures/default_jungletree.png) | bin | 502 -> 502 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_jungletree_top.png (renamed from share/games/mesetint/mods/default/textures/default_jungletree_top.png) | bin | 507 -> 507 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_ladder.png (renamed from share/games/mesetint/mods/default/textures/default_ladder.png) | bin | 395 -> 395 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_lava.png (renamed from share/games/mesetint/mods/default/textures/default_lava.png) | bin | 357 -> 357 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_leaves.png (renamed from share/games/mesetint/mods/default/textures/default_leaves.png) | bin | 1689 -> 1689 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_mese.png (renamed from share/games/mesetint/mods/default/textures/default_mese.png) | bin | 203 -> 203 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_mineral_coal.png (renamed from share/games/mesetint/mods/default/textures/default_mineral_coal.png) | bin | 952 -> 952 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_mineral_iron.png (renamed from share/games/mesetint/mods/default/textures/default_mineral_iron.png) | bin | 1614 -> 1614 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_mossycobble.png (renamed from share/games/mesetint/mods/default/textures/default_mossycobble.png) | bin | 965 -> 965 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_nc_back.png (renamed from share/games/mesetint/mods/default/textures/default_nc_back.png) | bin | 303 -> 303 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_nc_front.png (renamed from share/games/mesetint/mods/default/textures/default_nc_front.png) | bin | 410 -> 410 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_nc_rb.png (renamed from share/games/mesetint/mods/default/textures/default_nc_rb.png) | bin | 203 -> 203 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_nc_side.png (renamed from share/games/mesetint/mods/default/textures/default_nc_side.png) | bin | 260 -> 260 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_paper.png (renamed from share/games/mesetint/mods/default/textures/default_paper.png) | bin | 242 -> 242 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_papyrus.png (renamed from share/games/mesetint/mods/default/textures/default_papyrus.png) | bin | 366 -> 366 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_rail.png (renamed from share/games/mesetint/mods/default/textures/default_rail.png) | bin | 507 -> 507 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_rail_crossing.png (renamed from share/games/mesetint/mods/default/textures/default_rail_crossing.png) | bin | 555 -> 555 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_rail_curved.png (renamed from share/games/mesetint/mods/default/textures/default_rail_curved.png) | bin | 545 -> 545 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_rail_t_junction.png (renamed from share/games/mesetint/mods/default/textures/default_rail_t_junction.png) | bin | 542 -> 542 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_sand.png (renamed from share/games/mesetint/mods/default/textures/default_sand.png) | bin | 1381 -> 1381 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_sandstone.png (renamed from share/games/mesetint/mods/default/textures/default_sandstone.png) | bin | 772 -> 772 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_sapling.png (renamed from share/games/mesetint/mods/default/textures/default_sapling.png) | bin | 502 -> 502 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_scorched_stuff.png (renamed from share/games/mesetint/mods/default/textures/default_scorched_stuff.png) | bin | 233 -> 233 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_sign_wall.png (renamed from share/games/mesetint/mods/default/textures/default_sign_wall.png) | bin | 489 -> 489 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_steel_block.png (renamed from share/games/mesetint/mods/default/textures/default_steel_block.png) | bin | 219 -> 219 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_steel_ingot.png (renamed from share/games/mesetint/mods/default/textures/default_steel_ingot.png) | bin | 207 -> 207 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_stick.png (renamed from share/games/mesetint/mods/default/textures/default_stick.png) | bin | 182 -> 182 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_stone.png (renamed from share/games/mesetint/mods/default/textures/default_stone.png) | bin | 806 -> 806 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tnt_bottom.png (renamed from share/games/mesetint/mods/default/textures/default_tnt_bottom.png) | bin | 161 -> 161 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tnt_side.png (renamed from share/games/mesetint/mods/default/textures/default_tnt_side.png) | bin | 186 -> 186 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tnt_top.png (renamed from share/games/mesetint/mods/default/textures/default_tnt_top.png) | bin | 264 -> 264 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tool_mesepick.png (renamed from share/games/mesetint/mods/default/textures/default_tool_mesepick.png) | bin | 252 -> 252 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tool_steelaxe.png (renamed from share/games/mesetint/mods/default/textures/default_tool_steelaxe.png) | bin | 927 -> 927 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tool_steelpick.png (renamed from share/games/mesetint/mods/default/textures/default_tool_steelpick.png) | bin | 271 -> 271 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tool_steelshovel.png (renamed from share/games/mesetint/mods/default/textures/default_tool_steelshovel.png) | bin | 216 -> 216 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tool_steelsword.png (renamed from share/games/mesetint/mods/default/textures/default_tool_steelsword.png) | bin | 291 -> 291 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tool_stoneaxe.png (renamed from share/games/mesetint/mods/default/textures/default_tool_stoneaxe.png) | bin | 931 -> 931 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tool_stonepick.png (renamed from share/games/mesetint/mods/default/textures/default_tool_stonepick.png) | bin | 262 -> 262 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tool_stoneshovel.png (renamed from share/games/mesetint/mods/default/textures/default_tool_stoneshovel.png) | bin | 203 -> 203 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tool_stonesword.png (renamed from share/games/mesetint/mods/default/textures/default_tool_stonesword.png) | bin | 301 -> 301 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tool_woodaxe.png (renamed from share/games/mesetint/mods/default/textures/default_tool_woodaxe.png) | bin | 927 -> 927 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tool_woodpick.png (renamed from share/games/mesetint/mods/default/textures/default_tool_woodpick.png) | bin | 245 -> 245 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tool_woodshovel.png (renamed from share/games/mesetint/mods/default/textures/default_tool_woodshovel.png) | bin | 203 -> 203 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tool_woodsword.png (renamed from share/games/mesetint/mods/default/textures/default_tool_woodsword.png) | bin | 255 -> 255 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_torch.png (renamed from share/games/mesetint/mods/default/textures/default_torch.png) | bin | 925 -> 925 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_torch_on_ceiling.png (renamed from share/games/mesetint/mods/default/textures/default_torch_on_ceiling.png) | bin | 913 -> 913 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_torch_on_floor.png (renamed from share/games/mesetint/mods/default/textures/default_torch_on_floor.png) | bin | 917 -> 917 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tree.png (renamed from share/games/mesetint/mods/default/textures/default_tree.png) | bin | 1445 -> 1445 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_tree_top.png (renamed from share/games/mesetint/mods/default/textures/default_tree_top.png) | bin | 1024 -> 1024 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_water.png (renamed from share/games/mesetint/mods/default/textures/default_water.png) | bin | 518 -> 518 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/default_wood.png (renamed from share/games/mesetint/mods/default/textures/default_wood.png) | bin | 1400 -> 1400 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/heart.png (renamed from share/games/mesetint/mods/default/textures/heart.png) | bin | 308 -> 308 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/player.png (renamed from share/games/mesetint/mods/default/textures/player.png) | bin | 212 -> 212 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/player_back.png (renamed from share/games/mesetint/mods/default/textures/player_back.png) | bin | 201 -> 201 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/treeprop.png (renamed from share/games/mesetint/mods/default/textures/treeprop.png) | bin | 1055 -> 1055 bytes | |||
-rw-r--r-- | games/mesetint/mods/default/textures/wieldhand.png (renamed from share/games/mesetint/mods/default/textures/wieldhand.png) | bin | 384 -> 384 bytes | |||
-rw-r--r-- | games/mesetint/mods/experimental/depends.txt (renamed from share/games/mesetint/mods/experimental/depends.txt) | 0 | ||||
-rw-r--r-- | games/mesetint/mods/experimental/init.lua (renamed from share/games/mesetint/mods/experimental/init.lua) | 0 | ||||
-rw-r--r-- | games/mesetint/mods/experimental/textures/experimental_dummyball.png (renamed from share/games/mesetint/mods/experimental/textures/experimental_dummyball.png) | bin | 838 -> 838 bytes | |||
-rw-r--r-- | games/mesetint/mods/give_initial_stuff/depends.txt (renamed from share/games/mesetint/mods/give_initial_stuff/depends.txt) | 0 | ||||
-rw-r--r-- | games/mesetint/mods/give_initial_stuff/init.lua (renamed from share/games/mesetint/mods/give_initial_stuff/init.lua) | 0 | ||||
-rw-r--r-- | games/mesetint/mods/legacy/depends.txt (renamed from share/games/mesetint/mods/legacy/depends.txt) | 0 | ||||
-rw-r--r-- | games/mesetint/mods/legacy/init.lua (renamed from share/games/mesetint/mods/legacy/init.lua) | 0 | ||||
-rw-r--r-- | games/mesetint/mods/legacy/textures/apple_iron.png (renamed from share/games/mesetint/mods/legacy/textures/apple_iron.png) | bin | 207 -> 207 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/cooked_rat.png (renamed from share/games/mesetint/mods/legacy/textures/cooked_rat.png) | bin | 239 -> 239 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/dungeon_master.png (renamed from share/games/mesetint/mods/legacy/textures/dungeon_master.png) | bin | 6636 -> 6636 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/fireball.png (renamed from share/games/mesetint/mods/legacy/textures/fireball.png) | bin | 603 -> 603 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/firefly.png (renamed from share/games/mesetint/mods/legacy/textures/firefly.png) | bin | 116 -> 116 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/oerkki1.png (renamed from share/games/mesetint/mods/legacy/textures/oerkki1.png) | bin | 250 -> 250 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/oerkki1_damaged.png (renamed from share/games/mesetint/mods/legacy/textures/oerkki1_damaged.png) | bin | 341 -> 341 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/rat.png (renamed from share/games/mesetint/mods/legacy/textures/rat.png) | bin | 920 -> 920 bytes | |||
-rw-r--r-- | src/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/main.cpp | 5 | ||||
-rw-r--r-- | src/porting.cpp | 23 | ||||
-rw-r--r-- | src/subgame.cpp | 5 | ||||
-rw-r--r-- | textures/base/pack/fontdejavusansmono.png (renamed from share/textures/base/pack/fontdejavusansmono.png) | bin | 9453 -> 9453 bytes | |||
-rw-r--r-- | textures/base/pack/fontlucida.png (renamed from share/textures/base/pack/fontlucida.png) | bin | 17284 -> 17284 bytes | |||
-rw-r--r-- | textures/base/pack/menubg.png (renamed from share/textures/base/pack/menubg.png) | bin | 1586 -> 1586 bytes | |||
-rw-r--r-- | textures/base/pack/menulogo.png (renamed from share/textures/base/pack/menulogo.png) | bin | 498 -> 498 bytes | |||
-rw-r--r-- | textures/base/pack/smoke_puff.png (renamed from share/textures/base/pack/smoke_puff.png) | bin | 2182 -> 2182 bytes | |||
-rw-r--r-- | textures/base/pack/sunrisebg.png (renamed from share/textures/base/pack/sunrisebg.png) | bin | 4652 -> 4652 bytes | |||
-rw-r--r-- | textures/base/pack/unknown_block.png (renamed from share/textures/base/pack/unknown_block.png) | bin | 582 -> 582 bytes | |||
-rw-r--r-- | textures/base/pack/unknown_item.png (renamed from share/textures/base/pack/unknown_item.png) | bin | 710 -> 710 bytes | |||
-rw-r--r-- | textures/base/pack/unknown_object.png (renamed from share/textures/base/pack/unknown_object.png) | bin | 489 -> 489 bytes |
122 files changed, 57 insertions, 43 deletions
diff --git a/.gitignore b/.gitignore index 1d89854f7..c386b77be 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,26 @@ +## Generic ignorable patterns and files *~ -map/* -world/* +.*.swp +*bak* +tags +*.vim + +## Non-static Minetest directories +bin/ +games/ +!games/mesetint +cache/ +textures/ +sounds/ +mods/ +worlds/ +world/ + +## Configuration/log files +minetest.conf +debug.txt + +## Build files CMakeFiles/* src/CMakeFiles/* src/Makefile @@ -10,19 +30,13 @@ src/jthread/CMakeFiles/* src/jthread/Makefile src/jthread/cmake_config.h src/jthread/cmake_install.cmake -.*.swp -minetest.conf -bin/ +src/jthread/libjthread.a +src/lua/build/ +src/lua/CMakeFiles/ CMakeCache.txt CPackConfig.cmake CPackSourceConfig.cmake Makefile cmake_install.cmake -src/jthread/libjthread.a -debug.txt -bin/debug.txt -minetestmapper/map.png locale/ -src/lua/build/ -src/lua/CMakeFiles/ -*bak* + diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ec8d7757..01d03a574 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,25 +49,29 @@ find_package(Irrlicht) # if(WIN32) - set(SHAREDIR "share") + set(SHAREDIR ".") set(BINDIR "bin") set(DOCDIR "doc") - set(EXAMPLE_CONF_DIR "user") + set(EXAMPLE_CONF_DIR ".") + set(LOCALEDIR "locale") elseif(APPLE) - # random placeholders + # Random placeholders; this isn't usually used and may not work + # See https://github.com/toabi/minetest-mac/ set(SHAREDIR "share/${PROJECT_NAME}") set(BINDIR "bin") set(DOCDIR "share/doc/${PROJECT_NAME}") set(EXAMPLE_CONF_DIR ${DOCDIR}) + set(LOCALEDIR "locale") elseif(UNIX) # Linux, BSD etc if(RUN_IN_PLACE) - set(SHAREDIR "share") + set(SHAREDIR ".") set(BINDIR "bin") set(DOCDIR "doc") - set(MANDIR "share/unix/man") - set(EXAMPLE_CONF_DIR ${DOCDIR}) - set(XDG_APPS_DIR "share/unix/applications") - set(ICONDIR "share/unix/icons") + set(EXAMPLE_CONF_DIR ".") + set(MANDIR "unix/man") + set(XDG_APPS_DIR "unix/applications") + set(ICONDIR "unix/icons") + set(LOCALEDIR "locale") else() set(SHAREDIR "share/${PROJECT_NAME}") set(BINDIR "bin") @@ -76,9 +80,13 @@ elseif(UNIX) # Linux, BSD etc set(EXAMPLE_CONF_DIR ${DOCDIR}) set(XDG_APPS_DIR "share/applications") set(ICONDIR "share/icons") + set(LOCALEDIR "share/locale") endif() endif() +install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/builtin" DESTINATION "${SHAREDIR}/") +install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/mesetint" DESTINATION "${SHAREDIR}/games/") + install(FILES "README.txt" DESTINATION "${DOCDIR}") install(FILES "minetest.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}") diff --git a/share/builtin/builtin.lua b/builtin/builtin.lua index 9b2bed33f..9b2bed33f 100644 --- a/share/builtin/builtin.lua +++ b/builtin/builtin.lua diff --git a/cmake/Modules/FindGettextLib.cmake b/cmake/Modules/FindGettextLib.cmake index 5779b6b64..bc7ea367f 100644 --- a/cmake/Modules/FindGettextLib.cmake +++ b/cmake/Modules/FindGettextLib.cmake @@ -59,7 +59,7 @@ ENDIF() IF(GETTEXT_FOUND) SET(GETTEXT_PO_PATH ${CMAKE_SOURCE_DIR}/po) SET(GETTEXT_MO_BUILD_PATH ${CMAKE_BINARY_DIR}/locale/<locale>/LC_MESSAGES) - SET(GETTEXT_MO_DEST_PATH ${DATADIR}/../locale/<locale>/LC_MESSAGES) + SET(GETTEXT_MO_DEST_PATH ${LOCALEDIR}/<locale>/LC_MESSAGES) FILE(GLOB GETTEXT_AVAILABLE_LOCALES RELATIVE ${GETTEXT_PO_PATH} "${GETTEXT_PO_PATH}/*") LIST(REMOVE_ITEM GETTEXT_AVAILABLE_LOCALES minetest.pot) MACRO(SET_MO_PATHS _buildvar _destvar _locale) diff --git a/share/games/mesetint/mods/bucket/depends.txt b/games/mesetint/mods/bucket/depends.txt index 3a7daa1d7..3a7daa1d7 100644 --- a/share/games/mesetint/mods/bucket/depends.txt +++ b/games/mesetint/mods/bucket/depends.txt diff --git a/share/games/mesetint/mods/bucket/init.lua b/games/mesetint/mods/bucket/init.lua index 8ed9da522..8ed9da522 100644 --- a/share/games/mesetint/mods/bucket/init.lua +++ b/games/mesetint/mods/bucket/init.lua diff --git a/share/games/mesetint/mods/bucket/textures/bucket.png b/games/mesetint/mods/bucket/textures/bucket.png Binary files differindex f165fd209..f165fd209 100644 --- a/share/games/mesetint/mods/bucket/textures/bucket.png +++ b/games/mesetint/mods/bucket/textures/bucket.png diff --git a/share/games/mesetint/mods/bucket/textures/bucket_lava.png b/games/mesetint/mods/bucket/textures/bucket_lava.png Binary files differindex 7cf27cd1f..7cf27cd1f 100644 --- a/share/games/mesetint/mods/bucket/textures/bucket_lava.png +++ b/games/mesetint/mods/bucket/textures/bucket_lava.png diff --git a/share/games/mesetint/mods/bucket/textures/bucket_water.png b/games/mesetint/mods/bucket/textures/bucket_water.png Binary files differindex f220ec51e..f220ec51e 100644 --- a/share/games/mesetint/mods/bucket/textures/bucket_water.png +++ b/games/mesetint/mods/bucket/textures/bucket_water.png diff --git a/share/games/mesetint/mods/default/init.lua b/games/mesetint/mods/default/init.lua index 7823db6b9..7823db6b9 100644 --- a/share/games/mesetint/mods/default/init.lua +++ b/games/mesetint/mods/default/init.lua diff --git a/share/games/mesetint/mods/default/textures/crack.png b/games/mesetint/mods/default/textures/crack.png Binary files differindex 499783982..499783982 100644 --- a/share/games/mesetint/mods/default/textures/crack.png +++ b/games/mesetint/mods/default/textures/crack.png diff --git a/share/games/mesetint/mods/default/textures/default_apple.png b/games/mesetint/mods/default/textures/default_apple.png Binary files differindex 9593f28f6..9593f28f6 100644 --- a/share/games/mesetint/mods/default/textures/default_apple.png +++ b/games/mesetint/mods/default/textures/default_apple.png diff --git a/share/games/mesetint/mods/default/textures/default_book.png b/games/mesetint/mods/default/textures/default_book.png Binary files differindex 176fb6aa9..176fb6aa9 100644 --- a/share/games/mesetint/mods/default/textures/default_book.png +++ b/games/mesetint/mods/default/textures/default_book.png diff --git a/share/games/mesetint/mods/default/textures/default_bookshelf.png b/games/mesetint/mods/default/textures/default_bookshelf.png Binary files differindex 5ecc50ff3..5ecc50ff3 100644 --- a/share/games/mesetint/mods/default/textures/default_bookshelf.png +++ b/games/mesetint/mods/default/textures/default_bookshelf.png diff --git a/share/games/mesetint/mods/default/textures/default_brick.png b/games/mesetint/mods/default/textures/default_brick.png Binary files differindex 32d77f347..32d77f347 100644 --- a/share/games/mesetint/mods/default/textures/default_brick.png +++ b/games/mesetint/mods/default/textures/default_brick.png diff --git a/share/games/mesetint/mods/default/textures/default_cactus_side.png b/games/mesetint/mods/default/textures/default_cactus_side.png Binary files differindex fc479fde6..fc479fde6 100644 --- a/share/games/mesetint/mods/default/textures/default_cactus_side.png +++ b/games/mesetint/mods/default/textures/default_cactus_side.png diff --git a/share/games/mesetint/mods/default/textures/default_cactus_top.png b/games/mesetint/mods/default/textures/default_cactus_top.png Binary files differindex f9e68df51..f9e68df51 100644 --- a/share/games/mesetint/mods/default/textures/default_cactus_top.png +++ b/games/mesetint/mods/default/textures/default_cactus_top.png diff --git a/share/games/mesetint/mods/default/textures/default_chest_front.png b/games/mesetint/mods/default/textures/default_chest_front.png Binary files differindex c5628af94..c5628af94 100644 --- a/share/games/mesetint/mods/default/textures/default_chest_front.png +++ b/games/mesetint/mods/default/textures/default_chest_front.png diff --git a/share/games/mesetint/mods/default/textures/default_chest_lock.png b/games/mesetint/mods/default/textures/default_chest_lock.png Binary files differindex ae038fae5..ae038fae5 100644 --- a/share/games/mesetint/mods/default/textures/default_chest_lock.png +++ b/games/mesetint/mods/default/textures/default_chest_lock.png diff --git a/share/games/mesetint/mods/default/textures/default_chest_side.png b/games/mesetint/mods/default/textures/default_chest_side.png Binary files differindex 916dd784d..916dd784d 100644 --- a/share/games/mesetint/mods/default/textures/default_chest_side.png +++ b/games/mesetint/mods/default/textures/default_chest_side.png diff --git a/share/games/mesetint/mods/default/textures/default_chest_top.png b/games/mesetint/mods/default/textures/default_chest_top.png Binary files differindex 58c79674d..58c79674d 100644 --- a/share/games/mesetint/mods/default/textures/default_chest_top.png +++ b/games/mesetint/mods/default/textures/default_chest_top.png diff --git a/share/games/mesetint/mods/default/textures/default_clay.png b/games/mesetint/mods/default/textures/default_clay.png Binary files differindex 3557429d8..3557429d8 100644 --- a/share/games/mesetint/mods/default/textures/default_clay.png +++ b/games/mesetint/mods/default/textures/default_clay.png diff --git a/share/games/mesetint/mods/default/textures/default_clay_brick.png b/games/mesetint/mods/default/textures/default_clay_brick.png Binary files differindex e36648e48..e36648e48 100644 --- a/share/games/mesetint/mods/default/textures/default_clay_brick.png +++ b/games/mesetint/mods/default/textures/default_clay_brick.png diff --git a/share/games/mesetint/mods/default/textures/default_clay_lump.png b/games/mesetint/mods/default/textures/default_clay_lump.png Binary files differindex be0bab9d7..be0bab9d7 100644 --- a/share/games/mesetint/mods/default/textures/default_clay_lump.png +++ b/games/mesetint/mods/default/textures/default_clay_lump.png diff --git a/share/games/mesetint/mods/default/textures/default_cloud.png b/games/mesetint/mods/default/textures/default_cloud.png Binary files differindex 24091a377..24091a377 100644 --- a/share/games/mesetint/mods/default/textures/default_cloud.png +++ b/games/mesetint/mods/default/textures/default_cloud.png diff --git a/share/games/mesetint/mods/default/textures/default_coal_lump.png b/games/mesetint/mods/default/textures/default_coal_lump.png Binary files differindex bad901efa..bad901efa 100644 --- a/share/games/mesetint/mods/default/textures/default_coal_lump.png +++ b/games/mesetint/mods/default/textures/default_coal_lump.png diff --git a/share/games/mesetint/mods/default/textures/default_cobble.png b/games/mesetint/mods/default/textures/default_cobble.png Binary files differindex 7d0447419..7d0447419 100644 --- a/share/games/mesetint/mods/default/textures/default_cobble.png +++ b/games/mesetint/mods/default/textures/default_cobble.png diff --git a/share/games/mesetint/mods/default/textures/default_dirt.png b/games/mesetint/mods/default/textures/default_dirt.png Binary files differindex 7cb9c89a6..7cb9c89a6 100644 --- a/share/games/mesetint/mods/default/textures/default_dirt.png +++ b/games/mesetint/mods/default/textures/default_dirt.png diff --git a/share/games/mesetint/mods/default/textures/default_fence.png b/games/mesetint/mods/default/textures/default_fence.png Binary files differindex 0b99f0eb5..0b99f0eb5 100644 --- a/share/games/mesetint/mods/default/textures/default_fence.png +++ b/games/mesetint/mods/default/textures/default_fence.png diff --git a/share/games/mesetint/mods/default/textures/default_furnace_front.png b/games/mesetint/mods/default/textures/default_furnace_front.png Binary files differindex 1620a27c3..1620a27c3 100644 --- a/share/games/mesetint/mods/default/textures/default_furnace_front.png +++ b/games/mesetint/mods/default/textures/default_furnace_front.png diff --git a/share/games/mesetint/mods/default/textures/default_furnace_side.png b/games/mesetint/mods/default/textures/default_furnace_side.png Binary files differindex 63cb162fe..63cb162fe 100644 --- a/share/games/mesetint/mods/default/textures/default_furnace_side.png +++ b/games/mesetint/mods/default/textures/default_furnace_side.png diff --git a/share/games/mesetint/mods/default/textures/default_glass.png b/games/mesetint/mods/default/textures/default_glass.png Binary files differindex ade0196fe..ade0196fe 100644 --- a/share/games/mesetint/mods/default/textures/default_glass.png +++ b/games/mesetint/mods/default/textures/default_glass.png diff --git a/share/games/mesetint/mods/default/textures/default_grass.png b/games/mesetint/mods/default/textures/default_grass.png Binary files differindex 3610bb2bc..3610bb2bc 100644 --- a/share/games/mesetint/mods/default/textures/default_grass.png +++ b/games/mesetint/mods/default/textures/default_grass.png diff --git a/share/games/mesetint/mods/default/textures/default_grass_footsteps.png b/games/mesetint/mods/default/textures/default_grass_footsteps.png Binary files differindex 57e063d8c..57e063d8c 100644 --- a/share/games/mesetint/mods/default/textures/default_grass_footsteps.png +++ b/games/mesetint/mods/default/textures/default_grass_footsteps.png diff --git a/share/games/mesetint/mods/default/textures/default_grass_side.png b/games/mesetint/mods/default/textures/default_grass_side.png Binary files differindex 4f4f680be..4f4f680be 100644 --- a/share/games/mesetint/mods/default/textures/default_grass_side.png +++ b/games/mesetint/mods/default/textures/default_grass_side.png diff --git a/share/games/mesetint/mods/default/textures/default_gravel.png b/games/mesetint/mods/default/textures/default_gravel.png Binary files differindex f08666ad9..f08666ad9 100644 --- a/share/games/mesetint/mods/default/textures/default_gravel.png +++ b/games/mesetint/mods/default/textures/default_gravel.png diff --git a/share/games/mesetint/mods/default/textures/default_iron_lump.png b/games/mesetint/mods/default/textures/default_iron_lump.png Binary files differindex edb931018..edb931018 100644 --- a/share/games/mesetint/mods/default/textures/default_iron_lump.png +++ b/games/mesetint/mods/default/textures/default_iron_lump.png diff --git a/share/games/mesetint/mods/default/textures/default_junglegrass.png b/games/mesetint/mods/default/textures/default_junglegrass.png Binary files differindex eea87c07c..eea87c07c 100644 --- a/share/games/mesetint/mods/default/textures/default_junglegrass.png +++ b/games/mesetint/mods/default/textures/default_junglegrass.png diff --git a/share/games/mesetint/mods/default/textures/default_jungletree.png b/games/mesetint/mods/default/textures/default_jungletree.png Binary files differindex ccd20ac74..ccd20ac74 100644 --- a/share/games/mesetint/mods/default/textures/default_jungletree.png +++ b/games/mesetint/mods/default/textures/default_jungletree.png diff --git a/share/games/mesetint/mods/default/textures/default_jungletree_top.png b/games/mesetint/mods/default/textures/default_jungletree_top.png Binary files differindex 2a9b51373..2a9b51373 100644 --- a/share/games/mesetint/mods/default/textures/default_jungletree_top.png +++ b/games/mesetint/mods/default/textures/default_jungletree_top.png diff --git a/share/games/mesetint/mods/default/textures/default_ladder.png b/games/mesetint/mods/default/textures/default_ladder.png Binary files differindex 11056359d..11056359d 100644 --- a/share/games/mesetint/mods/default/textures/default_ladder.png +++ b/games/mesetint/mods/default/textures/default_ladder.png diff --git a/share/games/mesetint/mods/default/textures/default_lava.png b/games/mesetint/mods/default/textures/default_lava.png Binary files differindex cb02ada13..cb02ada13 100644 --- a/share/games/mesetint/mods/default/textures/default_lava.png +++ b/games/mesetint/mods/default/textures/default_lava.png diff --git a/share/games/mesetint/mods/default/textures/default_leaves.png b/games/mesetint/mods/default/textures/default_leaves.png Binary files differindex 7a25126e9..7a25126e9 100644 --- a/share/games/mesetint/mods/default/textures/default_leaves.png +++ b/games/mesetint/mods/default/textures/default_leaves.png diff --git a/share/games/mesetint/mods/default/textures/default_mese.png b/games/mesetint/mods/default/textures/default_mese.png Binary files differindex 4c876cdc5..4c876cdc5 100644 --- a/share/games/mesetint/mods/default/textures/default_mese.png +++ b/games/mesetint/mods/default/textures/default_mese.png diff --git a/share/games/mesetint/mods/default/textures/default_mineral_coal.png b/games/mesetint/mods/default/textures/default_mineral_coal.png Binary files differindex 3ff9692fb..3ff9692fb 100644 --- a/share/games/mesetint/mods/default/textures/default_mineral_coal.png +++ b/games/mesetint/mods/default/textures/default_mineral_coal.png diff --git a/share/games/mesetint/mods/default/textures/default_mineral_iron.png b/games/mesetint/mods/default/textures/default_mineral_iron.png Binary files differindex 51b15d95d..51b15d95d 100644 --- a/share/games/mesetint/mods/default/textures/default_mineral_iron.png +++ b/games/mesetint/mods/default/textures/default_mineral_iron.png diff --git a/share/games/mesetint/mods/default/textures/default_mossycobble.png b/games/mesetint/mods/default/textures/default_mossycobble.png Binary files differindex fad1b33ff..fad1b33ff 100644 --- a/share/games/mesetint/mods/default/textures/default_mossycobble.png +++ b/games/mesetint/mods/default/textures/default_mossycobble.png diff --git a/share/games/mesetint/mods/default/textures/default_nc_back.png b/games/mesetint/mods/default/textures/default_nc_back.png Binary files differindex f09f41658..f09f41658 100644 --- a/share/games/mesetint/mods/default/textures/default_nc_back.png +++ b/games/mesetint/mods/default/textures/default_nc_back.png diff --git a/share/games/mesetint/mods/default/textures/default_nc_front.png b/games/mesetint/mods/default/textures/default_nc_front.png Binary files differindex cad9edab1..cad9edab1 100644 --- a/share/games/mesetint/mods/default/textures/default_nc_front.png +++ b/games/mesetint/mods/default/textures/default_nc_front.png diff --git a/share/games/mesetint/mods/default/textures/default_nc_rb.png b/games/mesetint/mods/default/textures/default_nc_rb.png Binary files differindex 7ebc9930d..7ebc9930d 100644 --- a/share/games/mesetint/mods/default/textures/default_nc_rb.png +++ b/games/mesetint/mods/default/textures/default_nc_rb.png diff --git a/share/games/mesetint/mods/default/textures/default_nc_side.png b/games/mesetint/mods/default/textures/default_nc_side.png Binary files differindex f954045fb..f954045fb 100644 --- a/share/games/mesetint/mods/default/textures/default_nc_side.png +++ b/games/mesetint/mods/default/textures/default_nc_side.png diff --git a/share/games/mesetint/mods/default/textures/default_paper.png b/games/mesetint/mods/default/textures/default_paper.png Binary files differindex ae5c06bc6..ae5c06bc6 100644 --- a/share/games/mesetint/mods/default/textures/default_paper.png +++ b/games/mesetint/mods/default/textures/default_paper.png diff --git a/share/games/mesetint/mods/default/textures/default_papyrus.png b/games/mesetint/mods/default/textures/default_papyrus.png Binary files differindex bf0dec7fe..bf0dec7fe 100644 --- a/share/games/mesetint/mods/default/textures/default_papyrus.png +++ b/games/mesetint/mods/default/textures/default_papyrus.png diff --git a/share/games/mesetint/mods/default/textures/default_rail.png b/games/mesetint/mods/default/textures/default_rail.png Binary files differindex 18176d9f3..18176d9f3 100644 --- a/share/games/mesetint/mods/default/textures/default_rail.png +++ b/games/mesetint/mods/default/textures/default_rail.png diff --git a/share/games/mesetint/mods/default/textures/default_rail_crossing.png b/games/mesetint/mods/default/textures/default_rail_crossing.png Binary files differindex 984640577..984640577 100644 --- a/share/games/mesetint/mods/default/textures/default_rail_crossing.png +++ b/games/mesetint/mods/default/textures/default_rail_crossing.png diff --git a/share/games/mesetint/mods/default/textures/default_rail_curved.png b/games/mesetint/mods/default/textures/default_rail_curved.png Binary files differindex 62afa3d2b..62afa3d2b 100644 --- a/share/games/mesetint/mods/default/textures/default_rail_curved.png +++ b/games/mesetint/mods/default/textures/default_rail_curved.png diff --git a/share/games/mesetint/mods/default/textures/default_rail_t_junction.png b/games/mesetint/mods/default/textures/default_rail_t_junction.png Binary files differindex 9985f63cd..9985f63cd 100644 --- a/share/games/mesetint/mods/default/textures/default_rail_t_junction.png +++ b/games/mesetint/mods/default/textures/default_rail_t_junction.png diff --git a/share/games/mesetint/mods/default/textures/default_sand.png b/games/mesetint/mods/default/textures/default_sand.png Binary files differindex 15101a7eb..15101a7eb 100644 --- a/share/games/mesetint/mods/default/textures/default_sand.png +++ b/games/mesetint/mods/default/textures/default_sand.png diff --git a/share/games/mesetint/mods/default/textures/default_sandstone.png b/games/mesetint/mods/default/textures/default_sandstone.png Binary files differindex c4759b4d0..c4759b4d0 100644 --- a/share/games/mesetint/mods/default/textures/default_sandstone.png +++ b/games/mesetint/mods/default/textures/default_sandstone.png diff --git a/share/games/mesetint/mods/default/textures/default_sapling.png b/games/mesetint/mods/default/textures/default_sapling.png Binary files differindex 73f502306..73f502306 100644 --- a/share/games/mesetint/mods/default/textures/default_sapling.png +++ b/games/mesetint/mods/default/textures/default_sapling.png diff --git a/share/games/mesetint/mods/default/textures/default_scorched_stuff.png b/games/mesetint/mods/default/textures/default_scorched_stuff.png Binary files differindex 9ced2fbe8..9ced2fbe8 100644 --- a/share/games/mesetint/mods/default/textures/default_scorched_stuff.png +++ b/games/mesetint/mods/default/textures/default_scorched_stuff.png diff --git a/share/games/mesetint/mods/default/textures/default_sign_wall.png b/games/mesetint/mods/default/textures/default_sign_wall.png Binary files differindex 06eac1ee9..06eac1ee9 100644 --- a/share/games/mesetint/mods/default/textures/default_sign_wall.png +++ b/games/mesetint/mods/default/textures/default_sign_wall.png diff --git a/share/games/mesetint/mods/default/textures/default_steel_block.png b/games/mesetint/mods/default/textures/default_steel_block.png Binary files differindex 8e2020081..8e2020081 100644 --- a/share/games/mesetint/mods/default/textures/default_steel_block.png +++ b/games/mesetint/mods/default/textures/default_steel_block.png diff --git a/share/games/mesetint/mods/default/textures/default_steel_ingot.png b/games/mesetint/mods/default/textures/default_steel_ingot.png Binary files differindex f6c9414e7..f6c9414e7 100644 --- a/share/games/mesetint/mods/default/textures/default_steel_ingot.png +++ b/games/mesetint/mods/default/textures/default_steel_ingot.png diff --git a/share/games/mesetint/mods/default/textures/default_stick.png b/games/mesetint/mods/default/textures/default_stick.png Binary files differindex 2d31797f0..2d31797f0 100644 --- a/share/games/mesetint/mods/default/textures/default_stick.png +++ b/games/mesetint/mods/default/textures/default_stick.png diff --git a/share/games/mesetint/mods/default/textures/default_stone.png b/games/mesetint/mods/default/textures/default_stone.png Binary files differindex cad0dbe2b..cad0dbe2b 100644 --- a/share/games/mesetint/mods/default/textures/default_stone.png +++ b/games/mesetint/mods/default/textures/default_stone.png diff --git a/share/games/mesetint/mods/default/textures/default_tnt_bottom.png b/games/mesetint/mods/default/textures/default_tnt_bottom.png Binary files differindex 8ba2fca0b..8ba2fca0b 100644 --- a/share/games/mesetint/mods/default/textures/default_tnt_bottom.png +++ b/games/mesetint/mods/default/textures/default_tnt_bottom.png diff --git a/share/games/mesetint/mods/default/textures/default_tnt_side.png b/games/mesetint/mods/default/textures/default_tnt_side.png Binary files differindex d9a2bc4eb..d9a2bc4eb 100644 --- a/share/games/mesetint/mods/default/textures/default_tnt_side.png +++ b/games/mesetint/mods/default/textures/default_tnt_side.png diff --git a/share/games/mesetint/mods/default/textures/default_tnt_top.png b/games/mesetint/mods/default/textures/default_tnt_top.png Binary files differindex a84ffc9af..a84ffc9af 100644 --- a/share/games/mesetint/mods/default/textures/default_tnt_top.png +++ b/games/mesetint/mods/default/textures/default_tnt_top.png diff --git a/share/games/mesetint/mods/default/textures/default_tool_mesepick.png b/games/mesetint/mods/default/textures/default_tool_mesepick.png Binary files differindex a1f3812e0..a1f3812e0 100644 --- a/share/games/mesetint/mods/default/textures/default_tool_mesepick.png +++ b/games/mesetint/mods/default/textures/default_tool_mesepick.png diff --git a/share/games/mesetint/mods/default/textures/default_tool_steelaxe.png b/games/mesetint/mods/default/textures/default_tool_steelaxe.png Binary files differindex 0ad23c93b..0ad23c93b 100644 --- a/share/games/mesetint/mods/default/textures/default_tool_steelaxe.png +++ b/games/mesetint/mods/default/textures/default_tool_steelaxe.png diff --git a/share/games/mesetint/mods/default/textures/default_tool_steelpick.png b/games/mesetint/mods/default/textures/default_tool_steelpick.png Binary files differindex 7982dafeb..7982dafeb 100644 --- a/share/games/mesetint/mods/default/textures/default_tool_steelpick.png +++ b/games/mesetint/mods/default/textures/default_tool_steelpick.png diff --git a/share/games/mesetint/mods/default/textures/default_tool_steelshovel.png b/games/mesetint/mods/default/textures/default_tool_steelshovel.png Binary files differindex ed8413846..ed8413846 100644 --- a/share/games/mesetint/mods/default/textures/default_tool_steelshovel.png +++ b/games/mesetint/mods/default/textures/default_tool_steelshovel.png diff --git a/share/games/mesetint/mods/default/textures/default_tool_steelsword.png b/games/mesetint/mods/default/textures/default_tool_steelsword.png Binary files differindex a74581238..a74581238 100644 --- a/share/games/mesetint/mods/default/textures/default_tool_steelsword.png +++ b/games/mesetint/mods/default/textures/default_tool_steelsword.png diff --git a/share/games/mesetint/mods/default/textures/default_tool_stoneaxe.png b/games/mesetint/mods/default/textures/default_tool_stoneaxe.png Binary files differindex 698ac918f..698ac918f 100644 --- a/share/games/mesetint/mods/default/textures/default_tool_stoneaxe.png +++ b/games/mesetint/mods/default/textures/default_tool_stoneaxe.png diff --git a/share/games/mesetint/mods/default/textures/default_tool_stonepick.png b/games/mesetint/mods/default/textures/default_tool_stonepick.png Binary files differindex b34de6f32..b34de6f32 100644 --- a/share/games/mesetint/mods/default/textures/default_tool_stonepick.png +++ b/games/mesetint/mods/default/textures/default_tool_stonepick.png diff --git a/share/games/mesetint/mods/default/textures/default_tool_stoneshovel.png b/games/mesetint/mods/default/textures/default_tool_stoneshovel.png Binary files differindex ba5243101..ba5243101 100644 --- a/share/games/mesetint/mods/default/textures/default_tool_stoneshovel.png +++ b/games/mesetint/mods/default/textures/default_tool_stoneshovel.png diff --git a/share/games/mesetint/mods/default/textures/default_tool_stonesword.png b/games/mesetint/mods/default/textures/default_tool_stonesword.png Binary files differindex 8f8191f92..8f8191f92 100644 --- a/share/games/mesetint/mods/default/textures/default_tool_stonesword.png +++ b/games/mesetint/mods/default/textures/default_tool_stonesword.png diff --git a/share/games/mesetint/mods/default/textures/default_tool_woodaxe.png b/games/mesetint/mods/default/textures/default_tool_woodaxe.png Binary files differindex 3daa4af72..3daa4af72 100644 --- a/share/games/mesetint/mods/default/textures/default_tool_woodaxe.png +++ b/games/mesetint/mods/default/textures/default_tool_woodaxe.png diff --git a/share/games/mesetint/mods/default/textures/default_tool_woodpick.png b/games/mesetint/mods/default/textures/default_tool_woodpick.png Binary files differindex ea728cca3..ea728cca3 100644 --- a/share/games/mesetint/mods/default/textures/default_tool_woodpick.png +++ b/games/mesetint/mods/default/textures/default_tool_woodpick.png diff --git a/share/games/mesetint/mods/default/textures/default_tool_woodshovel.png b/games/mesetint/mods/default/textures/default_tool_woodshovel.png Binary files differindex 649ab4c38..649ab4c38 100644 --- a/share/games/mesetint/mods/default/textures/default_tool_woodshovel.png +++ b/games/mesetint/mods/default/textures/default_tool_woodshovel.png diff --git a/share/games/mesetint/mods/default/textures/default_tool_woodsword.png b/games/mesetint/mods/default/textures/default_tool_woodsword.png Binary files differindex d6c6be325..d6c6be325 100644 --- a/share/games/mesetint/mods/default/textures/default_tool_woodsword.png +++ b/games/mesetint/mods/default/textures/default_tool_woodsword.png diff --git a/share/games/mesetint/mods/default/textures/default_torch.png b/games/mesetint/mods/default/textures/default_torch.png Binary files differindex 7a953c222..7a953c222 100644 --- a/share/games/mesetint/mods/default/textures/default_torch.png +++ b/games/mesetint/mods/default/textures/default_torch.png diff --git a/share/games/mesetint/mods/default/textures/default_torch_on_ceiling.png b/games/mesetint/mods/default/textures/default_torch_on_ceiling.png Binary files differindex 6965d380e..6965d380e 100644 --- a/share/games/mesetint/mods/default/textures/default_torch_on_ceiling.png +++ b/games/mesetint/mods/default/textures/default_torch_on_ceiling.png diff --git a/share/games/mesetint/mods/default/textures/default_torch_on_floor.png b/games/mesetint/mods/default/textures/default_torch_on_floor.png Binary files differindex 76d1dd5ac..76d1dd5ac 100644 --- a/share/games/mesetint/mods/default/textures/default_torch_on_floor.png +++ b/games/mesetint/mods/default/textures/default_torch_on_floor.png diff --git a/share/games/mesetint/mods/default/textures/default_tree.png b/games/mesetint/mods/default/textures/default_tree.png Binary files differindex 65abfc243..65abfc243 100644 --- a/share/games/mesetint/mods/default/textures/default_tree.png +++ b/games/mesetint/mods/default/textures/default_tree.png diff --git a/share/games/mesetint/mods/default/textures/default_tree_top.png b/games/mesetint/mods/default/textures/default_tree_top.png Binary files differindex 2cdd94f80..2cdd94f80 100644 --- a/share/games/mesetint/mods/default/textures/default_tree_top.png +++ b/games/mesetint/mods/default/textures/default_tree_top.png diff --git a/share/games/mesetint/mods/default/textures/default_water.png b/games/mesetint/mods/default/textures/default_water.png Binary files differindex e5f8cdc25..e5f8cdc25 100644 --- a/share/games/mesetint/mods/default/textures/default_water.png +++ b/games/mesetint/mods/default/textures/default_water.png diff --git a/share/games/mesetint/mods/default/textures/default_wood.png b/games/mesetint/mods/default/textures/default_wood.png Binary files differindex 57c1d7c12..57c1d7c12 100644 --- a/share/games/mesetint/mods/default/textures/default_wood.png +++ b/games/mesetint/mods/default/textures/default_wood.png diff --git a/share/games/mesetint/mods/default/textures/heart.png b/games/mesetint/mods/default/textures/heart.png Binary files differindex 6bc183e04..6bc183e04 100644 --- a/share/games/mesetint/mods/default/textures/heart.png +++ b/games/mesetint/mods/default/textures/heart.png diff --git a/share/games/mesetint/mods/default/textures/player.png b/games/mesetint/mods/default/textures/player.png Binary files differindex 90adf9747..90adf9747 100644 --- a/share/games/mesetint/mods/default/textures/player.png +++ b/games/mesetint/mods/default/textures/player.png diff --git a/share/games/mesetint/mods/default/textures/player_back.png b/games/mesetint/mods/default/textures/player_back.png Binary files differindex 530aa7519..530aa7519 100644 --- a/share/games/mesetint/mods/default/textures/player_back.png +++ b/games/mesetint/mods/default/textures/player_back.png diff --git a/share/games/mesetint/mods/default/textures/treeprop.png b/games/mesetint/mods/default/textures/treeprop.png Binary files differindex 77ea4d6d4..77ea4d6d4 100644 --- a/share/games/mesetint/mods/default/textures/treeprop.png +++ b/games/mesetint/mods/default/textures/treeprop.png diff --git a/share/games/mesetint/mods/default/textures/wieldhand.png b/games/mesetint/mods/default/textures/wieldhand.png Binary files differindex c4549e5ed..c4549e5ed 100644 --- a/share/games/mesetint/mods/default/textures/wieldhand.png +++ b/games/mesetint/mods/default/textures/wieldhand.png diff --git a/share/games/mesetint/mods/experimental/depends.txt b/games/mesetint/mods/experimental/depends.txt index 3a7daa1d7..3a7daa1d7 100644 --- a/share/games/mesetint/mods/experimental/depends.txt +++ b/games/mesetint/mods/experimental/depends.txt diff --git a/share/games/mesetint/mods/experimental/init.lua b/games/mesetint/mods/experimental/init.lua index 364eeb10c..364eeb10c 100644 --- a/share/games/mesetint/mods/experimental/init.lua +++ b/games/mesetint/mods/experimental/init.lua diff --git a/share/games/mesetint/mods/experimental/textures/experimental_dummyball.png b/games/mesetint/mods/experimental/textures/experimental_dummyball.png Binary files differindex 084676552..084676552 100644 --- a/share/games/mesetint/mods/experimental/textures/experimental_dummyball.png +++ b/games/mesetint/mods/experimental/textures/experimental_dummyball.png diff --git a/share/games/mesetint/mods/give_initial_stuff/depends.txt b/games/mesetint/mods/give_initial_stuff/depends.txt index 3a7daa1d7..3a7daa1d7 100644 --- a/share/games/mesetint/mods/give_initial_stuff/depends.txt +++ b/games/mesetint/mods/give_initial_stuff/depends.txt diff --git a/share/games/mesetint/mods/give_initial_stuff/init.lua b/games/mesetint/mods/give_initial_stuff/init.lua index 9cf6b51b5..9cf6b51b5 100644 --- a/share/games/mesetint/mods/give_initial_stuff/init.lua +++ b/games/mesetint/mods/give_initial_stuff/init.lua diff --git a/share/games/mesetint/mods/legacy/depends.txt b/games/mesetint/mods/legacy/depends.txt index 3a7daa1d7..3a7daa1d7 100644 --- a/share/games/mesetint/mods/legacy/depends.txt +++ b/games/mesetint/mods/legacy/depends.txt diff --git a/share/games/mesetint/mods/legacy/init.lua b/games/mesetint/mods/legacy/init.lua index 7f9088ce0..7f9088ce0 100644 --- a/share/games/mesetint/mods/legacy/init.lua +++ b/games/mesetint/mods/legacy/init.lua diff --git a/share/games/mesetint/mods/legacy/textures/apple_iron.png b/games/mesetint/mods/legacy/textures/apple_iron.png Binary files differindex 2dffdf014..2dffdf014 100644 --- a/share/games/mesetint/mods/legacy/textures/apple_iron.png +++ b/games/mesetint/mods/legacy/textures/apple_iron.png diff --git a/share/games/mesetint/mods/legacy/textures/cooked_rat.png b/games/mesetint/mods/legacy/textures/cooked_rat.png Binary files differindex daad3be0d..daad3be0d 100644 --- a/share/games/mesetint/mods/legacy/textures/cooked_rat.png +++ b/games/mesetint/mods/legacy/textures/cooked_rat.png diff --git a/share/games/mesetint/mods/legacy/textures/dungeon_master.png b/games/mesetint/mods/legacy/textures/dungeon_master.png Binary files differindex 3457c8228..3457c8228 100644 --- a/share/games/mesetint/mods/legacy/textures/dungeon_master.png +++ b/games/mesetint/mods/legacy/textures/dungeon_master.png diff --git a/share/games/mesetint/mods/legacy/textures/fireball.png b/games/mesetint/mods/legacy/textures/fireball.png Binary files differindex 523142850..523142850 100644 --- a/share/games/mesetint/mods/legacy/textures/fireball.png +++ b/games/mesetint/mods/legacy/textures/fireball.png diff --git a/share/games/mesetint/mods/legacy/textures/firefly.png b/games/mesetint/mods/legacy/textures/firefly.png Binary files differindex 40df7fa1c..40df7fa1c 100644 --- a/share/games/mesetint/mods/legacy/textures/firefly.png +++ b/games/mesetint/mods/legacy/textures/firefly.png diff --git a/share/games/mesetint/mods/legacy/textures/oerkki1.png b/games/mesetint/mods/legacy/textures/oerkki1.png Binary files differindex 33cbac9e7..33cbac9e7 100644 --- a/share/games/mesetint/mods/legacy/textures/oerkki1.png +++ b/games/mesetint/mods/legacy/textures/oerkki1.png diff --git a/share/games/mesetint/mods/legacy/textures/oerkki1_damaged.png b/games/mesetint/mods/legacy/textures/oerkki1_damaged.png Binary files differindex 9b777387c..9b777387c 100644 --- a/share/games/mesetint/mods/legacy/textures/oerkki1_damaged.png +++ b/games/mesetint/mods/legacy/textures/oerkki1_damaged.png diff --git a/share/games/mesetint/mods/legacy/textures/rat.png b/games/mesetint/mods/legacy/textures/rat.png Binary files differindex d1a0e2ae2..d1a0e2ae2 100644 --- a/share/games/mesetint/mods/legacy/textures/rat.png +++ b/games/mesetint/mods/legacy/textures/rat.png diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 448f2f6b8..16ab45c5c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -313,7 +313,8 @@ endif() if(BUILD_CLIENT) install(TARGETS ${PROJECT_NAME} DESTINATION ${BINDIR}) - install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../share/" DESTINATION ${SHAREDIR}) + #install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../sounds/base/pack" DESTINATION "${SHAREDIR}/sounds/base/") + install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../textures/base/pack" DESTINATION "${SHAREDIR}/textures/base/") if(USE_GETTEXT) foreach(LOCALE ${GETTEXT_AVAILABLE_LOCALES}) diff --git a/src/main.cpp b/src/main.cpp index 35595e5aa..75ff569aa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1034,12 +1034,7 @@ int main(int argc, char *argv[]) // 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 + "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 \"" <<legacy_world_path<<"\""<<std::endl; diff --git a/src/porting.cpp b/src/porting.cpp index 92615d77a..522afa9ef 100644 --- a/src/porting.cpp +++ b/src/porting.cpp @@ -123,8 +123,9 @@ void signal_handler_init(void) Path mangler */ -std::string path_share = ".." DIR_DELIM "share"; -std::string path_user = ".." DIR_DELIM "user"; +// Default to RUN_IN_PLACE style relative paths +std::string path_share = ".."; +std::string path_user = ".."; std::string getDataPath(const char *subpath) { @@ -167,8 +168,8 @@ void initializePaths() assert(len < buflen); pathRemoveFile(buf, '\\'); - path_share = std::string(buf) + "\\..\\share"; - path_user = std::string(buf) + "\\..\\user"; + path_share = std::string(buf) + "\\.."; + path_user = std::string(buf) + "\\.."; /* Linux @@ -183,8 +184,8 @@ void initializePaths() pathRemoveFile(buf, '/'); - path_share = std::string(buf) + "/../share"; - path_user = std::string(buf) + "/../user"; + path_share = std::string(buf) + "/.."; + path_user = std::string(buf) + "/.."; /* OS X @@ -194,8 +195,8 @@ void initializePaths() //TODO: Get path of executable. This assumes working directory is bin/ dstream<<"WARNING: Relative path not properly supported on OS X and FreeBSD" <<std::endl; - path_share = std::string("../share"); - path_user = std::string("../user"); + path_share = std::string(".."); + path_user = std::string(".."); #endif @@ -222,8 +223,8 @@ void initializePaths() assert(len < buflen); pathRemoveFile(buf, '\\'); - // Use ".\bin\..\share" - path_share = std::string(buf) + "\\..\\share"; + // Use ".\bin\.." + path_share = std::string(buf) + "\\.."; // Use "C:\Documents and Settings\user\Application Data\<PROJECT_NAME>" len = GetEnvironmentVariable("APPDATA", buf, buflen); @@ -247,7 +248,7 @@ void initializePaths() //path_share = std::string(INSTALL_PREFIX) + "/share/" + PROJECT_NAME; if (!fs::PathExists(path_share)) { dstream<<"WARNING: system-wide share not found at \""<<path_share<<"\""; - path_share = std::string(buf) + "/../share"; + path_share = std::string(buf) + "/.."; dstream<<"WARNING: Using \""<<path_share<<"\" instead."<<std::endl; } diff --git a/src/subgame.cpp b/src/subgame.cpp index b4ae3185e..e55f1bc97 100644 --- a/src/subgame.cpp +++ b/src/subgame.cpp @@ -124,12 +124,7 @@ std::vector<WorldSpec> getAvailableWorlds() } // Check old world location do{ -#ifdef RUN_IN_PLACE - std::string fullpath = porting::path_user + DIR_DELIM + ".." - + DIR_DELIM + "world"; -#else std::string fullpath = porting::path_user + DIR_DELIM + "world"; -#endif if(!fs::PathExists(fullpath)) break; std::string name = "Old World"; diff --git a/share/textures/base/pack/fontdejavusansmono.png b/textures/base/pack/fontdejavusansmono.png Binary files differindex 416a74f8a..416a74f8a 100644 --- a/share/textures/base/pack/fontdejavusansmono.png +++ b/textures/base/pack/fontdejavusansmono.png diff --git a/share/textures/base/pack/fontlucida.png b/textures/base/pack/fontlucida.png Binary files differindex c63fa02b7..c63fa02b7 100644 --- a/share/textures/base/pack/fontlucida.png +++ b/textures/base/pack/fontlucida.png diff --git a/share/textures/base/pack/menubg.png b/textures/base/pack/menubg.png Binary files differindex 7cb9c89a6..7cb9c89a6 100644 --- a/share/textures/base/pack/menubg.png +++ b/textures/base/pack/menubg.png diff --git a/share/textures/base/pack/menulogo.png b/textures/base/pack/menulogo.png Binary files differindex 76595c48d..76595c48d 100644 --- a/share/textures/base/pack/menulogo.png +++ b/textures/base/pack/menulogo.png diff --git a/share/textures/base/pack/smoke_puff.png b/textures/base/pack/smoke_puff.png Binary files differindex e346d204c..e346d204c 100644 --- a/share/textures/base/pack/smoke_puff.png +++ b/textures/base/pack/smoke_puff.png diff --git a/share/textures/base/pack/sunrisebg.png b/textures/base/pack/sunrisebg.png Binary files differindex d8b010ebb..d8b010ebb 100644 --- a/share/textures/base/pack/sunrisebg.png +++ b/textures/base/pack/sunrisebg.png diff --git a/share/textures/base/pack/unknown_block.png b/textures/base/pack/unknown_block.png Binary files differindex a27cb8ca9..a27cb8ca9 100644 --- a/share/textures/base/pack/unknown_block.png +++ b/textures/base/pack/unknown_block.png diff --git a/share/textures/base/pack/unknown_item.png b/textures/base/pack/unknown_item.png Binary files differindex 35cabf0ad..35cabf0ad 100644 --- a/share/textures/base/pack/unknown_item.png +++ b/textures/base/pack/unknown_item.png diff --git a/share/textures/base/pack/unknown_object.png b/textures/base/pack/unknown_object.png Binary files differindex 4d6a98d56..4d6a98d56 100644 --- a/share/textures/base/pack/unknown_object.png +++ b/textures/base/pack/unknown_object.png |