Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 817 Bytes

extra.rst

File metadata and controls

32 lines (22 loc) · 817 Bytes

Extra

This module has some extra functions that are not in the SteamWorks API but may be useful to deal with it.

List of Functions

  • extra.parseUint64

Function Reference

extra.parseUint64 (str)

param string str

The string to convert to uint64.

returns

(uint64) The parsed number. 0 if the string was invalid.

see

64-bit-integers

Converts a string to a 64-bit integer that can be used with this library.

Example:

local function saveMyId()
    -- This is highly useless since your ID won't change, but you get the point.
    writeFile('my_id.txt', tostring(Steam.user.getSteamID()))
end

local function readMyId()
    return Steam.extra.parseUint64(readFile('my_id.txt'))
end