platform: added basic riscv support

This commit is contained in:
jeefo 2025-11-13 15:41:30 +03:00
commit bc67453b6c
No known key found for this signature in database
GPG key ID: D696786B81B667C8
3 changed files with 14 additions and 8 deletions

View file

@ -827,6 +827,9 @@ void Game::constructCSBinaryName (StringArray &libs) {
else if (plat.ppc) {
suffix = "_ppc64le";
}
else if (plat.riscv) {
suffix = "_riscv64d";
}
else {
suffix = "_amd64";
}
@ -844,12 +847,12 @@ void Game::constructCSBinaryName (StringArray &libs) {
// build base names
if (plat.android) {
// only "libcs" with suffix (no "mp", and must have "lib" prefix)
libs.insert (0, "libcs" + suffix);
libs.push ("libcs" + suffix);
}
else {
// Standard: "mp" and "cs" with suffix
libs.insert (0, "cs" + suffix);
libs.insert (0, "mp" + suffix);
libs.push ("cs" + suffix);
libs.push ("mp" + suffix);
}
}