Remove unnedded code in the application interface

This commit is contained in:
Edouard Dupin 2012-05-13 09:44:18 +02:00
parent 8e4e0a52b6
commit 4676ea0a63
2 changed files with 3 additions and 22 deletions

View File

@ -35,7 +35,6 @@ LOCAL_CFLAGS := -D__PLATFORM__Android \
-D__MODE__Touch \
-DETK_DEBUG_LEVEL=1 \
-DAPPL_DEBUG_LEVEL=1 \
-DMODE_RELEASE \
-DPROJECT_NAME="\"$(LOCAL_MODULE)\""
endif

View File

@ -63,27 +63,9 @@ void APP_Init(void)
#endif
#endif
ewol::ChangeSize(800, 600);
etk::InitDefaultFolder(PROJECT_NAME);
char cCurrentPath[FILENAME_MAX];
// set the default Path of the application :
#ifdef __PLATFORM__Linux
etk::UString homedir;
#ifdef MODE_RELEASE
homedir = "/usr/share/"PROJECT_NAME"/";
#else
if (!getcwd(cCurrentPath, FILENAME_MAX)) {
homedir = "./assets/";
} else {
cCurrentPath[FILENAME_MAX - 1] = '\0';
homedir = cCurrentPath;
homedir += "/assets/";
}
#endif
// TODO : Remove the Utf8Data
etk::SetBaseFolderData(homedir.Utf8Data());
etk::SetBaseFolderDataUser("~/."PROJECT_NAME"/");
etk::SetBaseFolderCache("/tmp/"PROJECT_NAME"/");
#endif
ewol::SetFontFolder("Font");
#ifdef __PLATFORM__Android
@ -109,7 +91,7 @@ void APP_Init(void)
HighlightManager::Init();
HighlightManager::loadLanguages();
char cCurrentPath[FILENAME_MAX];
// get the curent program folder
if (!getcwd(cCurrentPath, FILENAME_MAX)) {
return ;