mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
[code] Prevent script name extension edition.
Change-Id: I4ac8d032fd88b853670afeebaecc8d6fd5ef981d
This commit is contained in:
@@ -77,7 +77,7 @@ void ConsoleController::removeExtensionIfAny(char * name) {
|
||||
if (nameLength<4) {
|
||||
return;
|
||||
}
|
||||
if (strcmp(&name[nameLength-3], ".py") == 0) {
|
||||
if (strcmp(&name[nameLength-3], ScriptStore::k_scriptExtension) == 0) {
|
||||
name[nameLength-3] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user