Rev 7750 | Rev 7806 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7750 | Rev 7773 | ||
---|---|---|---|
Line 659... | Line 659... | ||
659 | $int 0x40; |
659 | $int 0x40; |
660 | DrawBar(x+17,y+10,2,2,color); |
660 | DrawBar(x+17,y+10,2,2,color); |
661 | DrawBar(x+37,y+10,2,2,color); |
661 | DrawBar(x+37,y+10,2,2,color); |
662 | } |
662 | } |
Line 663... | Line -... | ||
663 | - | ||
664 | :void __path_name__(dword BUF,PATH) |
- | |
665 | { |
- | |
666 | dword beg = PATH; |
- | |
667 | dword pos = PATH; |
- | |
668 | dword sav = PATH; |
- | |
669 | dword i; |
- | |
670 | while(DSBYTE[pos]) |
- | |
671 | { |
- | |
672 | if(DSBYTE[pos]=='/')sav = pos; |
- | |
673 | pos++; |
- | |
674 | } |
- | |
675 | i = sav-beg; |
- | |
676 | while(i) |
- | |
677 | { |
- | |
678 | DSBYTE[BUF] = DSBYTE[beg]; |
- | |
679 | beg++; |
- | |
680 | BUF++; |
- | |
681 | i--; |
- | |
682 | } |
- | |
683 | /*while(DSBYTE[beg]) |
- | |
684 | { |
- | |
685 | DSBYTE[BUF1] = DSBYTE[beg]; |
- | |
686 | beg++; |
- | |
687 | BUF1++; |
- | |
688 | }*/ |
- | |
689 | //DSBYTE[BUF1] = 0; |
- | |
690 | DSBYTE[BUF] = 0; |
- | |
691 | } |
- | |
692 | char __BUF_DIR__[4096]; |
- | |
693 | :struct SELF |
- | |
694 | { |
- | |
695 | dword dir; |
- | |
696 | dword file; |
- | |
697 | dword path; |
- | |
698 | } self; |
- | |
699 | 663 | ||
700 | dword __generator; // random number generator - äëÿ ãåíåðàöèè ñëó÷àéíûõ ÷èñåë |
- | |
701 | - | ||
Line 702... | Line 664... | ||
702 | :dword program_path_length; |
664 | dword __generator; // random number generator init |
703 | 665 | ||
704 | //The initialization of the initial data before running |
666 | //The initialization of the initial data before running |
705 | void ______INIT______() |
- | |
706 | { |
- | |
707 | //if (program_path[0]!='/') I_Path++; |
- | |
708 | - | ||
709 | self.dir = #__BUF_DIR__; |
- | |
710 | self.file = 0; |
- | |
711 | self.path = I_Path; |
- | |
712 | __path_name__(#__BUF_DIR__,I_Path); |
667 | void ______INIT______() |
713 | 668 | { |
|
714 | skin_height = GetSkinHeight(); |
669 | skin_height = GetSkinHeight(); |
715 | screen.width = GetScreenWidth()+1; |
- | |
716 | screen.height = GetScreenHeight()+1; |
670 | screen.width = GetScreenWidth()+1; |
717 | - | ||
718 | __generator = GetStartTime(); |
671 | screen.height = GetScreenHeight()+1; |
719 | - | ||
720 | mem_init(); |
- | |
721 | 672 | __generator = GetStartTime(); |
|
722 | - | ||
723 | main(); |
673 | mem_init(); |
724 | ExitProcess(); |
674 | main(); |
725 | } |
675 | } |
Line 726... | Line 676... | ||
726 | ______STOP______: |
676 | ______STOP______: |
Line 731... | Line 681... | ||
731 | #endif |
681 | #endif |
Line 732... | Line 682... | ||
732 | 682 | ||
733 | #ifndef INCLUDE_DEBUG_H |
683 | #ifndef INCLUDE_DEBUG_H |
734 | #include "../lib/debug.h" |
684 | #include "../lib/debug.h" |
735 | #endif16; |
685 | #endif |
- | 686 | ||
- | 687 | #ifndef INCLUDE_IPC_H |
|
- | 688 | #include "../lib/ipc.h" |
|
- | 689 | #endif16; |
|
736 | ><16; |
690 | ><16; |