Index: source/graphics/TextureManager.cpp =================================================================== --- source/graphics/TextureManager.cpp +++ source/graphics/TextureManager.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2023 Wildfire Games. +/* Copyright (C) 2024 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -806,7 +806,7 @@ files.push_back(f); p = p / GetWstringFromWpath(*it); } - return m_TextureConverter.ComputeSettings(GetWstringFromWpath(srcPath.leaf()), files); + return m_TextureConverter.ComputeSettings(GetWstringFromWpath(srcPath.filename()), files); } /** Index: source/lib/file/file_system.cpp =================================================================== --- source/lib/file/file_system.cpp +++ source/lib/file/file_system.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2023 Wildfire Games. +/* Copyright (C) 2024 Wildfire Games. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -229,7 +229,7 @@ try { if(override_if_exists) - fs::copy_file(fs::path(path.string()), fs::path(newPath.string()), boost::filesystem::copy_option::overwrite_if_exists); + fs::copy_file(fs::path(path.string()), fs::path(newPath.string()), boost::filesystem::copy_options::overwrite_existing); else fs::copy_file(fs::path(path.string()), fs::path(newPath.string())); }