# This is a config file tamplate. To use it rename into noggit.conf and set your optiones#Edit this to your WoWFile!!!Path = C:WoW 3.3.5#Edit this to your Project-Directory and uncomment if you want to use it!ProjectPath = C:WoWModdingMyProject#Set this to the file where you will impor models from (the modelviewer log for example )ImportFile = C:UsersDanielDesktopProject1#The Far clipping value. Set to 2048, 3072, 4096 etc. for a further look. Higher values need more 3d power.#1024 is the standart value and will be taken if you do not set this value.FarZ=1024
4 - (Noggit.cpp:130): Noggit Studio - SDL 1.11727 - (Video.cpp:204): [Debug] GL: Version: 4.1.10834 Compatibility Profile Context1727 - (Video.cpp:205): [Debug] GL: Vendor: ATI Technologies Inc.1728 - (Video.cpp:206): [Debug] GL: Renderer: AMD Radeon HD 6320 Graphics
# This is a config file tamplate. To use it rename into noggit.conf and set your optiones#Edit this to your WoWFile!!!Path = C:WoW 3.3.5#Edit this to your Project-Directory and uncomment if you want to use it!#ProjectPath = C:WoWModdingMyProject#Set this to the file where you will impor models from (the modelviewer log for example )#ImportFile = C:UsersDanielDesktopProject1#The Far clipping value. Set to 2048, 3072, 4096 etc. for a further look. Higher values need more 3d power.#1024 is the standart value and will be taken if you do not set this value.FarZ=1024
if( !video.init( xres, yres, fullscreen, doAntiAliasing ) ) { LogError << "Initializing video failed." << std::endl; return -1; } SDL_WM_SetCaption( "Noggit Studio - " STRPRODUCTVER, "" ); std::string wowpath( getGamePath() ); if( wowpath == "" ) { return -1; } Log << "Game path: " << wowpath << std::endl;
bool Video::init( int xres_, int yres_, bool fullscreen_, bool doAntiAliasing_ ){[...] LogDebug << "GL: Version: " << glGetString( GL_VERSION ) << std::endl; LogDebug << "GL: Vendor: " << glGetString( GL_VENDOR ) << std::endl; LogDebug << "GL: Renderer: " << glGetString( GL_RENDERER ) << std::endl; return mSupportCompression;}
SDL_WM_SetCaption( "Noggit Studio - " STRPRODUCTVER, "" ); std::string wowpath( getGamePath() ); if( wowpath == "" ) { return -1; }
std::string getGamePath(){ if( !boost::filesystem::exists( "NoggIt.conf" ) ) { #ifdef _WIN32 HKEY key; DWORD t; const DWORD s( 1024 ); char temp[s]; memset(temp,0,s); LONG l = RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\Wow6432Node\Blizzard Entertainment\World of Warcraft",0,KEY_QUERY_VALUE,&key); if (l != ERROR_SUCCESS) l = RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\Blizzard Entertainment\World of Warcraft\PTR",0,KEY_QUERY_VALUE,&key); if (l != ERROR_SUCCESS) l = RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\Blizzard Entertainment\World of Warcraft",0,KEY_QUERY_VALUE,&key); if (l == ERROR_SUCCESS && RegQueryValueEx(key,"InstallPath",0,&t,(LPBYTE)temp,(LPDWORD)&s) == ERROR_SUCCESS) return temp; else return ""; RegCloseKey(key); #else return "/Applications/World of Warcraft/"; #endif } else { Log << "Using config file." << std::endl; return ConfigFile( "NoggIt.conf" ).read<std::string>( "Path" ); }}
Log << "Using config file." << std::endl;