# edit the paths in here
# how to call the mingw tools
-MINGW_EXEC_PREFIX = /home/divverent/mingw/bin/i386-mingw32-
+MINGW_EXEC_PREFIX = i586-mingw32msvc-
# where the dependencies package is extracted
-RADIANT_DEPENDENCIES_PREFIX = /home/divverent/radiant-deps-mingw32/
+RADIANT_DEPENDENCIES_PREFIX = $(HOME)/radiant-deps-mingw32/
# run the prefix fixing tool
IGNORETHIS := $(shell cd $(RADIANT_DEPENDENCIES_PREFIX) && ./fixprefix.sh)
m_file << name << "=";
const char* key = global_keys_find(accelerator.key);
+
if(!string_empty(key))
{
m_file << key;
int modifiers = 0;
const char* last = value + string_length(value);
const char* keyEnd = stringrange_find(value, last, '+');
+
for(const char* modifier = keyEnd; modifier != last;)
{
const char* next = stringrange_find(modifier + 1, last, '+');
// strBuff has been cleaned of it's modifiers .. switch between a regular key and a virtual one
// based on length
- if(keyEnd - value == 1) // most often case.. deal with first
+ if(keyEnd - value == 1 && std::isalpha(value[0])) // most often case.. deal with first
{
accelerator.key = std::toupper(value[0]);
++m_count;