Q3map2:
* code fixes * packer: !FAIL! msg for missing ingame resources, ~fail for the rest * bumped stack size to 4Mb to fix crash for huge skies, using old shaders with fairly useless q3map_surfacelight + q3map_lightsubdivide < 999 combo Radiant: binds... * F5: run first in the list or recently invoked build option * F11: fullscreen misc... * opening *.map, sent via cmd line: enabled for non win32 too * fix: textures find/replace wnd better default pos, size * fix: crash in CSG::Subtract * fix crash: main wnd maximized + 'start on primary monitor' off + monitors > 1 * correct save/restore of main wnd pos/size and maximized/fullscreened states * scale widgets consistently along with main wnd, while using regular layout
This commit is contained in:
@@ -180,6 +180,20 @@ bool portable_app_setup(){
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
char* openCmdMap;
|
||||
|
||||
void cmdMap(){
|
||||
openCmdMap = NULL;
|
||||
for ( int i = 1; i < g_argc; ++i )
|
||||
{
|
||||
//if ( !stricmp( g_argv[i] + strlen(g_argv[i]) - 4, ".map" ) ){
|
||||
if( string_equal_suffix_nocase( g_argv[i], ".map" ) ){
|
||||
openCmdMap = g_argv[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if defined( POSIX )
|
||||
|
||||
#include <stdlib.h>
|
||||
@@ -251,24 +265,13 @@ void environment_init( int argc, char* argv[] ){
|
||||
home_path = home.c_str();
|
||||
}
|
||||
gamedetect();
|
||||
cmdMap();
|
||||
}
|
||||
|
||||
#elif defined( WIN32 )
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
char* openCmdMap;
|
||||
|
||||
void cmdMap(){
|
||||
openCmdMap = NULL;
|
||||
for ( int i = 1; i < g_argc; ++i )
|
||||
{
|
||||
if ( !stricmp( g_argv[i] + strlen(g_argv[i]) - 4, ".map" ) ){
|
||||
openCmdMap = g_argv[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void environment_init( int argc, char* argv[] ){
|
||||
args_init( argc, argv );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user