Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

KoduConfig.cc

Go to the documentation of this file.
00001 /**
00002  * @file KoduConfig.cc
00003  *
00004  * @author med
00005  * @author asf
00006  */
00007 
00008 #include <cstring>
00009 #include <string>
00010 #include <unistd.h>
00011 #include "Kodu/KoduConfig.h"
00012 #include "Shared/Config.h"
00013 
00014 using namespace std;
00015 
00016 unsigned int
00017 KoduConfig::loadFile(const char* filename) {
00018     int ret = plist::Dictionary::loadFile((config->getFileSystemRoot()+"/"+string(filename)).c_str());
00019     if (!ret) return ret;
00020 
00021     this->kodu_type = KoduType::INVALID;
00022 
00023     for (unsigned int i = 0; i < KoduType::NUM_TYPES; i++) {
00024         if (this->type == KoduType::strs[i]) {
00025             this->kodu_type = (KoduType::player_type)i;
00026         }
00027     }
00028 
00029     return ret;
00030 }

Tekkotsu v5.1CVS
Generated Mon May 9 04:58:43 2016 by Doxygen 1.6.3