2 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/internal/system/common/system-settings.h>
30 namespace SystemSettings
32 std::string GetResourcePath()
34 // "DALI_APPLICATION_PACKAGE" is used by Windows specifically to get the already configured Application package path.
35 const char* winEnvironmentVariable = "DALI_APPLICATION_PACKAGE";
36 char* value = getenv(winEnvironmentVariable);
37 std::string resourcePath;
43 if(resourcePath.back() != '/')
51 std::string GetDataPath()
53 const char* winEnvironmentVariable = "DALI_APPLICATION_DATA_DIR";
54 char* value = getenv(winEnvironmentVariable);
64 } // namespace SystemSettings
66 } // namespace Adaptor
68 } // namespace Internal