Skip to content

Commit

Permalink
batch commit 08/06/2012 - 20:53:10.77
Browse files Browse the repository at this point in the history
  • Loading branch information
skn3 committed Jun 8, 2012
1 parent d93ab31 commit 45adca0
Show file tree
Hide file tree
Showing 9 changed files with 1,914 additions and 1,762 deletions.
Binary file modified .bmx/systemex.bmx.debug.win32.x86.o
Binary file not shown.
3,054 changes: 1,581 additions & 1,473 deletions .bmx/systemex.bmx.debug.win32.x86.s

Large diffs are not rendered by default.

Binary file modified .bmx/systemex.bmx.release.win32.x86.o
Binary file not shown.
584 changes: 304 additions & 280 deletions .bmx/systemex.bmx.release.win32.x86.s

Large diffs are not rendered by default.

30 changes: 25 additions & 5 deletions systemex.bmx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ SuperStrict

?Win32
'imports
Import brl.system
Import brl.keycodes
Import brl.bank
Import "systemex.win.c"
Expand Down Expand Up @@ -659,17 +660,20 @@ Function GetTempDirectory:String(resetCache:Int=False)
cache = ""

'create buffer to recieve path
Local size:Int = 2048
Local charSize:Int = 2
Local chars:Int = 2048
Local size:Int = chars*charSize
Local bank:TBank = CreateBank(size)

'attempt to recieve the path
Local realSize:Int = skn3_getTempPath(size,bank.Buf())
Local realSize:Int = skn3_getTempPath(chars,bank.Buf())

'check if the buffer was too small
If realSize > size-2
If realSize > size-charSize
'resize bank
size = realSize+2
bank.Resize(size*2)
size = realSize+charSize
chars = realSize/charSize
bank.Resize(size*charSize)

'call the buffer again
realSize = skn3_getTempPath(size,bank.Buf())
Expand Down Expand Up @@ -698,4 +702,20 @@ Function GetTempDirectory:String(resetCache:Int=False)
'return cache
Return cache
?
End Function

Rem
bbdoc: Keep the system alive. <b>[Win Mac]</b>
about:
<b>Supported Platforms</b>
<ul>
<li>Windows</li>
<li>Mac</li>
</ul>
<b>Info</b>
<p>this will use the built in system driver to give some processing time back to the os. This is useful if you are performing a long operation and don't want your application to appear as if it has crashed.</p>
End Rem
Function KeepSystemAlive()
' --- shortcut for keeping the system alive ---
If Driver Driver.Poll()
End Function
Binary file modified systemex.debug.win32.x86.a
Binary file not shown.
4 changes: 2 additions & 2 deletions systemex.debug.win32.x86.i
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
ModuleInfo "History: 1.00"
ModuleInfo "History: Initial Release To Public"
import brl.blitz
import brl.keycodes
import brl.bank
import brl.system
WINDOWS_UNKNOWN%=0
WINDOWS_2000%=1
WINDOWS_XP%=2
Expand All @@ -18,3 +17,4 @@ TranslateKey%(Code%)="skn3_systemex_TranslateKey"
IsKeyDown%(Code%)="skn3_systemex_IsKeyDown"
GetOsVersion%()="skn3_systemex_GetOsVersion"
GetTempDirectory$(resetCache%=0)="skn3_systemex_GetTempDirectory"
KeepSystemAlive%()="skn3_systemex_KeepSystemAlive"
Binary file modified systemex.release.win32.x86.a
Binary file not shown.
4 changes: 2 additions & 2 deletions systemex.release.win32.x86.i
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
ModuleInfo "History: 1.00"
ModuleInfo "History: Initial Release To Public"
import brl.blitz
import brl.keycodes
import brl.bank
import brl.system
WINDOWS_UNKNOWN%=0
WINDOWS_2000%=1
WINDOWS_XP%=2
Expand All @@ -18,3 +17,4 @@ TranslateKey%(Code%)="skn3_systemex_TranslateKey"
IsKeyDown%(Code%)="skn3_systemex_IsKeyDown"
GetOsVersion%()="skn3_systemex_GetOsVersion"
GetTempDirectory$(resetCache%=0)="skn3_systemex_GetTempDirectory"
KeepSystemAlive%()="skn3_systemex_KeepSystemAlive"

0 comments on commit 45adca0

Please sign in to comment.