minor tweaks (could not find app icon, and CMakeInstall directives)

main
Martin Felis 2011-04-19 14:37:32 +02:00
parent 57d283ad48
commit b0d6d5baa6
3 changed files with 7 additions and 2 deletions

View File

@ -93,3 +93,7 @@ INSTALL (DIRECTORY ${DATA_DIR}
INSTALL (FILES ${DATA_FILES}
DESTINATION share/fysxasteroids
)
INSTALL (FILES fysxasteroids.desktop fysxasteroidseditor.desktop
DESTINATION /usr/share/applications
)

View File

@ -144,9 +144,9 @@ int main (int argc, char* argv[]) {
// Load the icon
Uint32 colorkey;
SDL_Surface *image = NULL;
image = SDL_LoadBMP("./data/textures/icon.bmp");
image = SDL_LoadBMP(Engine::GetResourceFullPath("/data/textures/icon.bmp").c_str());
if (!image)
Engine::LogWarning("Could not load icon: ./data/textures/icon.bmp");
Engine::LogWarning("Could not load icon: data/textures/icon.bmp");
else
SDL_WM_SetIcon(image,NULL);

View File

@ -272,6 +272,7 @@ bool Cmd_Exec (const std::vector<std::string> args) {
}
exec_file.close();
LogDebug ("exec success for file %s", full_path.c_str());
return true;
}