Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CHALLANGE ! Dangerous Maze
#10
You could try this. It basically switches the slashes based on OS.

Code: (Select All)
FUNCTION osFix$ (in AS STRING)
  DIM AS LONG iter
  DIM AS STRING char, fixed
  fixed = in
  FOR iter = 1 TO LEN(in)
    char = MID$(in, iter, 1)
    IF INSTR(, _OS$, "[WINDOWS]") THEN
      IF char = "/" THEN
        MID$(fixed, iter) = "\"
      END IF
    ELSE
      IF INSTR(, _OS$, "[LINUX]") OR INSTR(, _OS$, "[MACOSX]") THEN
        IF char = "\" THEN
          MID$(fixed, iter) = "/"
        END IF
      END IF
    END IF
  NEXT
  osFix = fixed
END FUNCTION

Just tack the function at the bottom somewhere. And add the osFix function where files are being interacted with.

Code: (Select All)
uni_bord = _LOADIMAGE(osFix$("need\menu\bord\uni_bord.jpg"), 32)

I haven't thoroughly tested this but, it worked on my system.
Reply


Messages In This Thread
CHALLANGE ! Dangerous Maze - by MasterGy - 12-03-2023, 06:15 PM
RE: CHALLANGE ! Dangerous Maze - by mnrvovrfc - 12-03-2023, 07:40 PM
RE: CHALLANGE ! Dangerous Maze - by justsomeguy - 12-04-2023, 03:56 AM
RE: CHALLANGE ! Dangerous Maze - by MasterGy - 12-04-2023, 03:19 PM
RE: CHALLANGE ! Dangerous Maze - by justsomeguy - 12-04-2023, 05:47 PM
RE: CHALLANGE ! Dangerous Maze - by MasterGy - 12-04-2023, 06:12 PM
RE: CHALLANGE ! Dangerous Maze - by TerryRitchie - 12-04-2023, 06:12 PM
RE: CHALLANGE ! Dangerous Maze - by MasterGy - 12-04-2023, 06:14 PM
RE: CHALLANGE ! Dangerous Maze - by TerryRitchie - 12-04-2023, 06:20 PM
RE: CHALLANGE ! Dangerous Maze - by justsomeguy - 12-04-2023, 07:04 PM
RE: CHALLANGE ! Dangerous Maze - by mnrvovrfc - 12-04-2023, 07:24 PM
RE: CHALLANGE ! Dangerous Maze - by MasterGy - 12-04-2023, 08:37 PM
RE: CHALLANGE ! Dangerous Maze - by justsomeguy - 12-04-2023, 09:26 PM
RE: CHALLANGE ! Dangerous Maze - by MasterGy - 12-28-2023, 11:36 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)