Subversion Repositories tpanel

Rev

Rev 446 | Rev 475 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 446 Rev 462
Line 116... Line 116...
116
 
116
 
117
    if (!fs::exists(regular))
117
    if (!fs::exists(regular))
118
        createDemoPage();
118
        createDemoPage();
119
}
119
}
120
 
120
 
-
 
121
bool TTPInit::testForTp5()
-
 
122
{
-
 
123
    DECL_TRACER("TTPInit::testForTp5()");
-
 
124
 
-
 
125
    if (mPath.empty())
-
 
126
        return false;
-
 
127
 
-
 
128
    return fs::exists(mPath + "/G5Apps.xma");
-
 
129
}
-
 
130
 
121
bool TTPInit::createPanelConfigs()
131
bool TTPInit::createPanelConfigs()
122
{
132
{
123
    DECL_TRACER("TTPInit::createPanelConfigs()");
133
    DECL_TRACER("TTPInit::createPanelConfigs()");
124
 
134
 
125
    if (!fs::exists(mPath + "/__system/prj.xma"))
135
    if (!fs::exists(mPath + "/__system/prj.xma"))
Line 2089... Line 2099...
2089
    {
2099
    {
2090
        MSG_ERROR("Got no path to create the directory structure!");
2100
        MSG_ERROR("Got no path to create the directory structure!");
2091
        return false;
2101
        return false;
2092
    }
2102
    }
2093
 
2103
 
-
 
2104
    string testPath;
-
 
2105
 
-
 
2106
    if (mIsTP5)
-
 
2107
        testPath = "/__system/graphics/borders/BvlDblIM_b.png";
-
 
2108
    else
2094
    if (!fs::exists(mPath + "/__system/graphics/fonts/arial.ttf"))
2109
        testPath = "/__system/graphics/fonts/arial.ttf";
-
 
2110
 
-
 
2111
    if (!fs::exists(testPath))
2095
        mDirStructureCreated = false;
2112
        mDirStructureCreated = false;
2096
 
2113
 
2097
    if (mDirStructureCreated)
2114
    if (mDirStructureCreated)
2098
        return true;
2115
        return true;
2099
 
2116
 
Line 2135... Line 2152...
2135
    pfad = mPath + "/__system/graphics";
2152
    pfad = mPath + "/__system/graphics";
2136
 
2153
 
2137
    if (!_makeDir(pfad))
2154
    if (!_makeDir(pfad))
2138
        return false;
2155
        return false;
2139
 
2156
 
-
 
2157
    if (!mIsTP5)
-
 
2158
    {
2140
    pfad = mPath + "/__system/graphics/fonts";
2159
        pfad = mPath + "/__system/graphics/fonts";
2141
 
2160
 
2142
    if (!_makeDir(pfad))
2161
        if (!_makeDir(pfad))
2143
        return false;
2162
            return false;
-
 
2163
    }
2144
 
2164
 
2145
    pfad = mPath + "/__system/graphics/images";
2165
    pfad = mPath + "/__system/graphics/images";
2146
 
2166
 
2147
    if (!_makeDir(pfad))
2167
    if (!_makeDir(pfad))
2148
        return false;
2168
        return false;
2149
 
2169
 
-
 
2170
    if (!mIsTP5)
-
 
2171
    {
2150
    pfad = mPath + "/__system/graphics/sounds";
2172
        pfad = mPath + "/__system/graphics/sounds";
2151
 
2173
 
2152
    if (!_makeDir(pfad))
2174
        if (!_makeDir(pfad))
2153
        return false;
2175
            return false;
-
 
2176
    }
2154
 
2177
 
2155
    pfad = mPath + "/__system/graphics/cursors";
2178
    pfad = mPath + "/__system/graphics/cursors";
2156
 
2179
 
2157
    if (!_makeDir(pfad))
2180
    if (!_makeDir(pfad))
2158
        return false;
2181
        return false;