MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / getDeviceIdentifiers

Method getDeviceIdentifiers

JUCE/modules/juce_core/system/juce_SystemStats.cpp:61–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59#endif
60
61StringArray 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//==============================================================================
85struct CPUInformation

Callers

nothing calls this directly

Calls 5

toHexStringFunction · 0.85
getFileIdentifierMethod · 0.45
addMethod · 0.45
toStringMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected