Skip to content

opdev1004/sdrm

Repository files navigation

Unofficial Steam DRM (SDRM) DEPRECATED

Unofficial steam drm for node.js desktop apps

📢 Notice

This package is deprecated, if you are looking for DRM, Just use steamwork.js (NPM)

🛠 Build

node-gyp build

or

node-gyp rebuild

⚔ Requirement

Module requirement

Prop Requirement
Node.js It has not been tested. But i believe it would work with version 12+. However a published package is built with Node.js version 16+.
OS Windows 10+. A published package is built and tested in Windows 10. Please try build a sdrm module yourself for other OS. You can try publishing a sdrm module with the name like "sdrm-mac", "sdrm-linux" so other people can find it.
.dll file steam_api64.dll from steam sdk. It does not come withe the npm package.

Build requirement

Prop Requirement
Build tool node-gyp and anything that is needed for building NAPI

📖 Example

This example will be the case where filename is just name of dll file eg."steam_api64.dll"

For development, steam_api64.dll can be placed next to package.json.

For production, place steam_api64.dll next to .exe file.

In general:

// it will throw error if it fails.
// or it may return boolean true/false
try
{
    // SDRM(filename;file path as a string, app id number)
    SDRM("steam_api64.dll", 00000000);
    // it will throw error if it fails.
}
catch(e)
{
    console.log(e);
}

Electron.js:

app.on('ready',()=>{
    try
    {
        // SDRM(filename;file path as a string, app id number)
        SDRM("steam_api64.dll", 00000000);
        // it will throw error if it fails.
        createWindow();
    }
    catch(e)
    {
        console.log(e);
        if (process.platform !== 'darwin') app.quit();
        // or just app.quit() without if statement.
    }
});

👨‍💻 Author

Victor Chanil Park

💯 License

MIT, See LICENSE.

Releases

No releases published

Sponsor this project

 

Packages

No packages published