Author Topic: Result of load  (Read 6520 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: 5115
  • 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 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1791
    • 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: 5115
  • 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 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10829
  • 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: 5115
  • O Rly?
    • View Profile
Re: Result of load
« Reply #6 on: 2008-Oct-27 »
yepp
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard