emit error on non ASCII home or radiant path
This commit is contained in:
parent
bd8a597016
commit
24bed23fdd
|
|
@ -88,6 +88,7 @@
|
||||||
#include "environment.h"
|
#include "environment.h"
|
||||||
#include "referencecache.h"
|
#include "referencecache.h"
|
||||||
#include "stacktrace.h"
|
#include "stacktrace.h"
|
||||||
|
#include "error.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
@ -328,6 +329,10 @@ void streams_init(){
|
||||||
|
|
||||||
void paths_init(){
|
void paths_init(){
|
||||||
const char* home = environment_get_home_path();
|
const char* home = environment_get_home_path();
|
||||||
|
|
||||||
|
if( !g_str_is_ascii( home ) )
|
||||||
|
Error( "Home path is not ASCII: %s", home );
|
||||||
|
|
||||||
Q_mkdir( home );
|
Q_mkdir( home );
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -340,6 +345,9 @@ void paths_init(){
|
||||||
|
|
||||||
g_strAppPath = environment_get_app_path();
|
g_strAppPath = environment_get_app_path();
|
||||||
|
|
||||||
|
if( !g_str_is_ascii( g_strAppPath.c_str() ) )
|
||||||
|
Error( "Radiant path is not ASCII: %s", g_strAppPath.c_str() );
|
||||||
|
|
||||||
// radiant is installed in the parent dir of "tools/"
|
// radiant is installed in the parent dir of "tools/"
|
||||||
// NOTE: this is not very easy for debugging
|
// NOTE: this is not very easy for debugging
|
||||||
// maybe add options to lookup in several places?
|
// maybe add options to lookup in several places?
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user