// editor builtin VFS
StringOutputStream editorGamePath( 256 );
- editorGamePath << GlobalRadiant().getAppPath() << DEFAULT_EDITORVFS_DIRNAME;
+ editorGamePath << GlobalRadiant().getDataPath() << DEFAULT_EDITORVFS_DIRNAME;
GlobalFileSystem().initDirectory( editorGamePath.c_str() );
+ globalOutputStream() << "engine path: " << enginepath << "\n";
+ globalOutputStream() << "home path: " << homepath << "\n";
+ globalOutputStream() << "base game: " << basegame << "\n";
+ globalOutputStream() << "game name: " << gamename << "\n";
+
// if we have a mod dir
if ( !string_equal( gamename, basegame ) ) {
- // ~/.<gameprefix>/<fs_game>
- if ( homepath && !g_disableHomePath ) {
- StringOutputStream userGamePath( 256 );
+ // if we have a home dir
+ if ( !string_equal( homepath, enginepath ) )
+ {
- if ( userRoot && !string_equal( globalRoot, userRoot ) && !g_disableHomePath ) {
+ // ~/.<gameprefix>/<fs_game>
- userGamePath << userRoot << gamename << '/';
++ if ( userRoot && !string_equal( globalRoot, homepath ) && !g_disableHomePath ) {
+ StringOutputStream userGamePath( 256 );
- GlobalFileSystem().initDirectory( userGamePath.c_str() );
- }
+ userGamePath << homepath << gamename << '/';
+ GlobalFileSystem().initDirectory( userGamePath.c_str() );
+ }
+ }
// <fs_basepath>/<fs_game>
if ( !g_disableEnginePath ) {
}
}
- // ~/.<gameprefix>/<fs_main>
- if ( homepath && !g_disableHomePath ) {
- StringOutputStream userBasePath( 256 );
+ // if we have a home dir
+ if ( !string_equal( homepath, enginepath ) )
+ {
- if ( userRoot && !string_equal( globalRoot, userRoot ) && !g_disableHomePath ) {
+ // ~/.<gameprefix>/<fs_main>
- userBasePath << userRoot << basegame << '/';
++ if ( userRoot && !string_equal( globalRoot, homepath ) && !g_disableHomePath ) {
+ StringOutputStream userBasePath( 256 );
- GlobalFileSystem().initDirectory( userBasePath.c_str() );
- }
+ userBasePath << homepath << basegame << '/';
+ GlobalFileSystem().initDirectory( userBasePath.c_str() );
+ }
+ }
// <fs_basepath>/<fs_main>
if ( !g_disableEnginePath ) {
}
#endif
}
- else if ( event->type == GDK_3BUTTON_PRESS ) {
+ else if ( event->type == GDK_2BUTTON_PRESS && event->button == 3 ) {
- ScopeDisableScreenUpdates disableScreenUpdates( TextureBrowser_getComonShadersDir(), "Loading Textures" );
- TextureBrowser_ShowDirectory( *textureBrowser, TextureBrowser_getComonShadersDir() );
+ ScopeDisableScreenUpdates disableScreenUpdates( TextureBrowser_getCommonShadersDir(), "Loading Textures" );
+ TextureBrowser_ShowDirectory( *textureBrowser, TextureBrowser_getCommonShadersDir() );
TextureBrowser_queueDraw( *textureBrowser );
}
return FALSE;