Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CHALLANGE ! Dangerous Maze
#13
For those who are running old versions of QB64.

Code: (Select All)
PRINT osFix("need\menu\bord\uni_bord.jpg")

FUNCTION osFix$ (in AS STRING)
    DIM iter AS LONG
    DIM char AS STRING
    DIM fixed AS STRING
    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
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



Users browsing this thread: 1 Guest(s)