mirror of
https://github.com/autc04/Retro68.git
synced 2025-02-21 09:29:36 +00:00
LoadSeg: assert to MacsBug when loading CODE fails
This commit is contained in:
parent
12270f7caa
commit
5639d39ae7
@ -67,6 +67,7 @@ pascal void* Retro68LoadSegment(uint8_t *p)
|
|||||||
|
|
||||||
// TODO: UseResFile?
|
// TODO: UseResFile?
|
||||||
Handle CODE = GetResource('CODE', id);
|
Handle CODE = GetResource('CODE', id);
|
||||||
|
assert(CODE);
|
||||||
HLock(CODE);
|
HLock(CODE);
|
||||||
|
|
||||||
uint8_t *base = StripAddressCompat((uint8_t *)*CODE);
|
uint8_t *base = StripAddressCompat((uint8_t *)*CODE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user