23 lines
504 B
Odin
23 lines
504 B
Odin
package main
|
|
|
|
import rl "libraries/raylib"
|
|
import "libraries/back"
|
|
import "core:log"
|
|
|
|
main :: proc() {
|
|
// exe_path := os.args[0]
|
|
// exe_dir := filepath.dir(string(exe_path))
|
|
// os.set_working_directory(exe_dir)
|
|
rl.ChangeDirectory(rl.GetApplicationDirectory())
|
|
back.register_segfault_handler()
|
|
context.assertion_failure_proc = back.assertion_failure_proc
|
|
register_illegal_instruction_handler()
|
|
|
|
context.logger = log.create_console_logger()
|
|
|
|
init()
|
|
for should_run() {
|
|
update()
|
|
}
|
|
shutdown()
|
|
}
|