Rev 7175 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7175 | Rev 7176 | ||
---|---|---|---|
Line 495... | Line 495... | ||
495 | } |
495 | } |
496 | } |
496 | } |
Line 497... | Line 497... | ||
497 | 497 | ||
498 | void ExitInHiddenMode() |
498 | void ExitInHiddenMode() |
- | 499 | { |
|
499 | { |
500 | status = ST_EXIT; //send message to second process about exit |
500 | uFMOD_StopSong(); |
501 | uFMOD_StopSong(); |
501 | StopBuffer(hBuff); |
502 | StopBuffer(hBuff); |
502 | DestroyBuffer(hBuff); |
503 | DestroyBuffer(hBuff); |
503 | exit(); |
504 | exit(); |
Line 704... | Line 705... | ||
704 | return 0; |
705 | return 0; |
705 | } |
706 | } |
Line 706... | Line 707... | ||
706 | 707 | ||
707 | if (!LoadFile(full_filename)) |
708 | if (!LoadFile(full_filename)) |
708 | return 0; |
709 | return 0; |
Line 709... | Line 710... | ||
709 | tid=create_thread(thread_proc, 0, 4096); |
710 | if (!hidden) tid=create_thread(thread_proc, 0, 4096); |
710 | 711 | ||
711 | while(1) |
712 | while(1) |
712 | { delay(10); |
713 | { delay(10); |