]> git.sesse.net Git - casparcg/commitdiff
* Renamed fonts-path to font-path and thumbnails-path to thumbnail-path and changed...
authorHelge Norberg <helge.norberg@svt.se>
Tue, 3 Nov 2015 15:04:05 +0000 (16:04 +0100)
committerHelge Norberg <helge.norberg@svt.se>
Tue, 3 Nov 2015 15:04:05 +0000 (16:04 +0100)
22 files changed:
common/env.cpp
common/os/windows/system_info.cpp
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/AdvancedTemplate1.as [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/AdvancedTemplate1.as with 100% similarity]
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/AdvancedTemplate1.fla [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/AdvancedTemplate1.fla with 100% similarity]
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/AdvancedTemplate1.ft [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/AdvancedTemplate1.ft with 100% similarity]
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/AdvancedTemplate2.as [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/AdvancedTemplate2.as with 100% similarity]
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/AdvancedTemplate2.fla [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/AdvancedTemplate2.fla with 100% similarity]
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/AdvancedTemplate2.ft [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/AdvancedTemplate2.ft with 100% similarity]
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/ExamplePack1.crx [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/ExamplePack1.crx with 100% similarity]
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/LICENSE.TXT [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/LICENSE.TXT with 100% similarity]
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/README.txt [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/README.txt with 100% similarity]
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/SimpleTemplate1.fla [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/SimpleTemplate1.fla with 100% similarity]
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/SimpleTemplate1.ft [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/SimpleTemplate1.ft with 100% similarity]
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/SimpleTemplate2.fla [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/SimpleTemplate2.fla with 100% similarity]
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/SimpleTemplate2.ft [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/SimpleTemplate2.ft with 100% similarity]
deploy/general/server/template/CasparCG_Flash_Templates_Example_Pack_1/time.png [moved from deploy/general/server/templates/CasparCG_Flash_Templates_Example_Pack_1/time.png with 100% similarity]
deploy/general/server/template/caspar_text.ft [moved from deploy/general/server/templates/caspar_text.ft with 100% similarity]
deploy/general/server/template/frame.ft [moved from deploy/general/server/templates/frame.ft with 100% similarity]
deploy/general/server/template/ntsc-test-30.ft [moved from deploy/general/server/templates/ntsc-test-30.ft with 100% similarity]
deploy/general/server/template/ntsc-test-60.ft [moved from deploy/general/server/templates/ntsc-test-60.ft with 100% similarity]
deploy/general/server/template/phone.ft [moved from deploy/general/server/templates/phone.ft with 100% similarity]
shell/casparcg.config

index db8429fde792cb80f9007ea1373f6a7e43ccc4e2..1ce341d46f349cf33805e96592640d3c41cb6f38 100644 (file)
@@ -70,8 +70,8 @@ void configure(const std::wstring& filename)
                log                     = paths.get(L"log-path", initialPath + L"/log/");
                ftemplate       = boost::filesystem::complete(paths.get(L"template-path", initialPath + L"/template/")).wstring();
                data            = paths.get(L"data-path", initialPath + L"/data/");
-               font            = paths.get(L"fonts-path", initialPath + L"/fonts/");
-               thumbnails      = paths.get(L"thumbnails-path", initialPath + L"/data/");
+               font            = paths.get(L"font-path", initialPath + L"/font/");
+               thumbnails      = paths.get(L"thumbnail-path", initialPath + L"/thumbnail/");
        }
        catch(...)
        {
index d87b72a65067e2497f37be64249df4cd91d10e0f..f1b6bd067c164092c0ab3a64226ee4071e2a5332 100644 (file)
@@ -86,42 +86,4 @@ std::wstring os_description()
        return win_product_name() + L" " + win_sp_version();
 }
 
-
-/*static std::map<std::wstring, std::wstring> enumerate_fonts()
-{
-       std::map<std::wstring, std::wstring> result;
-       const DWORD max_str_length = 32766;
-
-       HKEY hkey; 
-       if(RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts"), 0, KEY_QUERY_VALUE, &hkey) == ERROR_SUCCESS)
-       {
-               int index = 0;
-               do
-               {
-                       DWORD name_length = max_str_length;
-                       wchar_t name[max_str_length];
-
-                       DWORD value_length = max_str_length;
-                       wchar_t value[max_str_length];
-
-                       long code = RegEnumValueW(hkey, index, name, &name_length, NULL, NULL, (PBYTE)value, &value_length);
-                       if(code == ERROR_SUCCESS)
-                       {
-                               std::wstring name_str(name);
-                               name_str = name_str.substr(0, name_str.find_last_of(L' '));     //the font names are formated like this: "AGaramondPro-Italic (OpenType)". We need to strip away the '(OpenType)'-part
-                               result.insert(std::pair<std::wstring, std::wstring>(name_str, std::wstring(value)));
-                       }
-                       else if(code == ERROR_NO_MORE_ITEMS)
-                               break;
-               }
-               while(++index);
-               //if(RegQueryValueEx(hkey, TEXT("SystemProductName"), NULL, &dwType, (PBYTE)&p_name_str, &dwSize) == ERROR_SUCCESS)             
-               //      system_product_name = p_name_str;               
-                
-               RegCloseKey(hkey);
-       }
-
-       return result;
-}*/
-
 }
index 2384d2f7f479830a64a8d160d84336b0d7cc180a..060b82ecd743ecb58ad21de561744330d59781e2 100644 (file)
@@ -4,9 +4,9 @@
     <media-path>media/</media-path>\r
     <log-path>log/</log-path>\r
     <data-path>data/</data-path>\r
-    <template-path>templates/</template-path>\r
-    <thumbnails-path>thumbnails/</thumbnails-path>\r
-    <fonts-path>fonts/</fonts-path>\r
+    <template-path>template/</template-path>\r
+    <thumbnail-path>thumbnail/</thumbnail-path>\r
+    <font-path>font/</font-path>\r
   </paths>\r
   <flash>\r
     <buffer-depth>4</buffer-depth>\r