This commit is contained in:
2025-08-28 19:18:56 +02:00
parent 0a02ea353a
commit 66d2ef2d97
4 changed files with 49 additions and 14 deletions

View File

@@ -38,7 +38,7 @@ fn do() ! {
if os.args.len == 2 {
mypath := os.args[1]
if mypath.to_lower().ends_with('.hero') {
if mypath.to_lower().ends_with('.hero') || mypath.to_lower().ends_with('.heroscript') || mypath.to_lower().ends_with('.hs') {
// hero was called from a file
playcmds_do(mypath)!
return
@@ -94,7 +94,7 @@ fn do() ! {
fn main() {
do() or {
$dbg;
// $dbg;
eprintln('Error: ${err}')
print_backtrace()
exit(1)