This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Object | |
class_name ResourceUtils | |
# ResourceLoader is unreliable when it comes to cache. | |
# Sub-resources get cached regardless of the argument passed to load function. | |
# This is a workaround that generates a new file on a fly, | |
# while making sure that there is no cache record for it. | |
# This file is then used to load the resource, after which | |
# the resource takes over the original path. | |
static func load_fresh(resource_path : String) -> Resource: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### usage ./convert.sh game | |
## where game is baseName of the export | |
if [ ! "$1" ]; then | |
read -p 'Game name: ' game | |
else | |
game="$1" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GodotLogger by Spooner | |
# ====================== | |
# | |
# logger.gd is a simple logging system. It allows for more formatted logging, | |
# logging levels and logging to a file. | |
# | |
# Installation | |
# ------------ | |
# | |
# Place this file somewhere (for example, 'res://root/logger.gd') |