Illegal instruction handler
This commit is contained in:
parent
e5fccefec0
commit
0545282292
5 changed files with 294 additions and 252 deletions
20
main_desktop.odin
Normal file
20
main_desktop.odin
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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.logger = log.create_console_logger()
|
||||
|
||||
init()
|
||||
for should_run() {
|
||||
update()
|
||||
}
|
||||
shutdown()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue