Fix for hot-reload (raylib shared required on odin compiler)
This commit is contained in:
parent
1755dac070
commit
c9a10c3b41
@ -36,8 +36,8 @@ startup :: proc( persistent, transient, temp : ^ mem.Arena )
|
||||
state := cast(^State) memory.persistent; using state
|
||||
|
||||
// Anything allocated by default is considered transient.
|
||||
context.allocator = mem.arena_allocator( transient )
|
||||
context.temp_allocator = mem.arena_allocator( temp )
|
||||
// context.allocator = mem.arena_allocator( transient )
|
||||
// context.temp_allocator = mem.arena_allocator( temp )
|
||||
|
||||
// Rough setup of window with rl stuff
|
||||
screen_width = 1280
|
||||
@ -125,7 +125,7 @@ render :: proc()
|
||||
draw_text( "Monitor : %v", rl.GetMonitorName(0) )
|
||||
draw_text( "Screen Width : %v", rl.GetScreenWidth() )
|
||||
draw_text( "Screen Height: %v", rl.GetScreenHeight() )
|
||||
// draw_text( "HOT RELOAD BITCHES" )
|
||||
draw_text( "HOT RELOAD BITCHES" )
|
||||
|
||||
draw_debug_text_y = 50
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ main :: proc()
|
||||
// Wait for pdb to unlock (linker may still be writting)
|
||||
for ; sectr.is_file_locked( "sectr.pdb" ); {
|
||||
}
|
||||
time.sleep( time.Second * 10 )
|
||||
time.sleep( time.Millisecond )
|
||||
|
||||
sectr_api = load_sectr_api( version_id )
|
||||
if sectr_api.lib_version == 0 {
|
||||
|
@ -83,7 +83,7 @@ push-location $path_root
|
||||
write-host 'Skipping sectr_host build, process is active'
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
$should_build = check-ModuleForChanges $module_host
|
||||
if ( -not( $should_build)) {
|
||||
write-host 'Skipping sectr_host build, module up to date'
|
||||
|
Loading…
Reference in New Issue
Block a user