BASIC

Author Topic: Result of load  (Read 4857 times)

MrTAToad

  • Guest
Result of load
« on: 2008-Oct-26 »
Would be nice if LOADSPRITE/MUSIC/SOUND etc etc returned TRUE if everything loaded okay, and FALSE if there was a problem
Saves having to get the sprites/bitmap size to see if there was a problem

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5021
  • O Rly?
    • View Profile
Re: Result of load
« Reply #1 on: 2008-Oct-27 »
OK = DOESFILEEXIST(file$) ;)
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1774
    • View Profile
    • Homepage
Re: Result of load
« Reply #2 on: 2008-Oct-27 »
Doesn't tell you if it's a corrupt file :-)

MrTAToad

  • Guest
Re: Result of load
« Reply #3 on: 2008-Oct-27 »
Indeed - a BMP file many not be a BMP file :)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5021
  • O Rly?
    • View Profile
Re: Result of load
« Reply #4 on: 2008-Oct-27 »
Thats right  :|
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10713
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Result of load
« Reply #5 on: 2008-Oct-27 »
LOADSPRITE, GETSPRITESIZE ?

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5021
  • O Rly?
    • View Profile
Re: Result of load
« Reply #6 on: 2008-Oct-27 »
yepp
I <3 DGArray's :D

PC:
AMD Ryzen 7 1700 @3.9GHz, 16GB HyperX Fury 3000MHz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard