Screenshooter - small fix for autoshoot.

git-svn-id: svn://kolibrios.org@1610 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79) 2010-09-08 20:00:04 +00:00
parent a1a5d05aea
commit 725380fded
2 changed files with 29 additions and 5 deletions

View File

@ -0,0 +1,13 @@
#!/bin/bash
# This script does for linux the same as build.bat for DOS,
# it compiles the KoOS kernel, hopefully ;-)
echo "lang fix ru"
echo "lang fix ru" > lang.inc
fasm -m 16384 scrshoot.asm scrshoot
rm -f lang.inc
exit 0

View File

@ -379,8 +379,15 @@ shoot:
@@: @@:
pop dword [scr_buf.size] pop dword [scr_buf.size]
draw_status shooted_ok cmp [autoshoot_flag],1
jne .2
bt dword [ch5.flags],1 ; →<>腑⑭ <20> <20><EFBFBD><E28992><EFBFBD><EFBFBD>⑤⑧<E291A4> ?
jnc @f
call save_file
@@:
draw_status shooted_ok
.2:
bt dword [flags],1 bt dword [flags],1
jnc @f jnc @f
ret ret
@ -388,7 +395,7 @@ shoot:
bt dword [ch2.flags],1 ; ¯®ª § âì ®ª­® ¯à¥¤¯à®á¬®âà  ? bt dword [ch2.flags],1 ; ¯®ª § âì ®ª­® ¯à¥¤¯à®á¬®âà  ?
jnc @f jnc @f
cmp [PrintScreen],0 cmp [PrintScreen],0
jne @f jne @f
call show_scr_window call show_scr_window
ret ret
@ -457,7 +464,7 @@ pusha
xor ebx,ebx xor ebx,ebx
inc ebx inc ebx
mov ecx,scr_window mov ecx,scr_window
mov edx,i_end_tread-1000 mov edx,i_end_tread-512
mcall mcall
@@: @@:
popa popa
@ -503,7 +510,7 @@ start_autoshoot:
xor ebx,ebx xor ebx,ebx
inc ebx inc ebx
mov ecx,autoshoot mov ecx,autoshoot
mov edx,i_end_tread-512 mov edx,i_end_tread
mcall mcall
@@: @@:
ret ret
@ -515,6 +522,7 @@ ret
;--- 横« ¯®â®ª   ¢â®áꥬª¨ --- ;--- 横« ¯®â®ª   ¢â®áꥬª¨ ---
autoshoot: autoshoot:
mov [autoshoot_flag],1
mov ecx,[slot_n] mov ecx,[slot_n]
activ_window activ_window
.next: .next:
@ -528,7 +536,9 @@ autoshoot:
mcall mcall
call shoot call shoot
jmp autoshoot.next jmp autoshoot.next
.close:
mov [autoshoot_flag],0
jmp close
;--- ¯à®æ¥¤ãà  ¯à®à¨á®¢ª¨ áâப¨ á®áâ®ï­¨ï --- ;--- ¯à®æ¥¤ãà  ¯à®à¨á®¢ª¨ áâப¨ á®áâ®ï­¨ï ---
; (¤®«¦­  ¢ë§ë¢ âìáï ¯®â®ª®¬ £« ¢­®£® ®ª­ ) ; (¤®«¦­  ¢ë§ë¢ âìáï ¯®â®ª®¬ £« ¢­®£® ®ª­ )
dr_st: dr_st:
@ -892,6 +902,7 @@ sign_n_input:
db '2',0 db '2',0
PrintScreen db 0 PrintScreen db 0
autoshoot_flag db 0
app_ipc ipc_buffer 32 app_ipc ipc_buffer 32
align 4 align 4