| 59 | #endif |
| 60 | |
| 61 | StringArray SystemStats::getDeviceIdentifiers() |
| 62 | { |
| 63 | StringArray ids; |
| 64 | |
| 65 | #if JUCE_WINDOWS |
| 66 | File f (File::getSpecialLocation (File::windowsSystemDirectory)); |
| 67 | #else |
| 68 | File f ("~"); |
| 69 | #endif |
| 70 | if (auto num = f.getFileIdentifier()) |
| 71 | { |
| 72 | ids.add (String::toHexString ((int64) num)); |
| 73 | } |
| 74 | else |
| 75 | { |
| 76 | for (auto& address : MACAddress::getAllAddresses()) |
| 77 | ids.add (address.toString()); |
| 78 | } |
| 79 | |
| 80 | jassert (! ids.isEmpty()); // Failed to create any IDs! |
| 81 | return ids; |
| 82 | } |
| 83 | |
| 84 | //============================================================================== |
| 85 | struct CPUInformation |
nothing calls this directly
no test coverage detected