Skip to content

Commit da1149c

Browse files
committed
document
1 parent 7c20466 commit da1149c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/androidbuild/tools.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,12 +418,14 @@ fn getAndroidSDKPath(allocator: std.mem.Allocator) error{OutOfMemory}![]const u8
418418
.windows => {
419419
// First, see if SdkPath in the registry is set
420420
// - Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Android Studio - "SdkPath"
421-
// - Computer\KHEY_CURRENT_USER\SOFTWARE\Android Studio - "SdkPath"
421+
// - Computer\KHEY_CURRENT_USER\SOFTWARE\Android Studio - "SdkPath"
422422
const android_studio_sdk_path: []const u8 = blk: {
423423
for ([_]windows.HKEY{ windows.HKEY_CURRENT_USER, windows.HKEY_LOCAL_MACHINE }) |hkey| {
424424
const key = RegistryWtf8.openKey(hkey, "SOFTWARE", .{}) catch |err| switch (err) {
425425
error.KeyNotFound => continue,
426426
};
427+
// NOTE(jae): 2025-05-25 - build.txt file says "AI-243.24978.46.2431.13208083"
428+
// For my install, "SdkPath" is an empty string, so this may not be used anymore.
427429
const sdk_path = key.getString(allocator, "Android Studio", "SdkPath") catch |err| switch (err) {
428430
error.StringNotFound, error.ValueNameNotFound, error.NotAString => continue,
429431
error.OutOfMemory => return error.OutOfMemory,

0 commit comments

Comments
 (0)