MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / Resources_Create

Function Resources_Create

Source/PreRelease/Resources.cpp:106–287  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Main

Source from the content-addressed store, hash-verified

104//---------------------------------------------------------------------------
105// Main
106ZenLib::Ztring Resources_Create()
107{
108 Ztring Out;
109 Ztring Result;
110 Ztring Contents;
111
112 //Load header
113 Result=Resources_Create_Load(L"../Source/Resource/Text/_.1.txt", Contents);
114 if (!Result.empty())
115 return Result;
116 Out+=Contents;
117
118 //Load datas
119 Result=Resources_Create_Item(L"Language", L"DefaultLanguage", L"Translation", Contents);
120 if (!Result.empty())
121 return Result;
122 Out+=Contents;
123
124 Result=Resources_Create_Item(L"DataBase", L"Format", L"InfoMap", Contents);
125 if (!Result.empty())
126 return Result;
127 Out+=Contents;
128
129 Result=Resources_Create_Item(L"DataBase", L"CodecID_General_Mpeg4", L"InfoMap", Contents);
130 if (!Result.empty())
131 return Result;
132 Out+=Contents;
133
134 Result=Resources_Create_Item(L"DataBase", L"CodecID_Video_Matroska", L"InfoMap", Contents);
135 if (!Result.empty())
136 return Result;
137 Out+=Contents;
138
139 Result=Resources_Create_Item(L"DataBase", L"CodecID_Video_Mpeg4", L"InfoMap", Contents);
140 if (!Result.empty())
141 return Result;
142 Out+=Contents;
143
144 Result=Resources_Create_Item(L"DataBase", L"CodecID_Video_Real", L"InfoMap", Contents);
145 if (!Result.empty())
146 return Result;
147 Out+=Contents;
148
149 Result=Resources_Create_Item(L"DataBase", L"CodecID_Video_Riff", L"InfoMap", Contents);
150 if (!Result.empty())
151 return Result;
152 Out+=Contents;
153
154 Result=Resources_Create_Item(L"DataBase", L"CodecID_Audio_Matroska", L"InfoMap", Contents);
155 if (!Result.empty())
156 return Result;
157 Out+=Contents;
158
159 Result=Resources_Create_Item(L"DataBase", L"CodecID_Audio_Mpeg4", L"InfoMap", Contents);
160 if (!Result.empty())
161 return Result;
162 Out+=Contents;
163

Callers 3

mainFunction · 0.85
ResourcesMethod · 0.85

Calls 4

Resources_Create_LoadFunction · 0.85
Resources_Create_ItemFunction · 0.85
Resources_Create_SaveFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected